Float object has no attribute 'ndim'




I made a macro but I keep getting this error when it reaches to ImageMath step, this error pops up:

float object has no attribute ‘ndim’

Is this a bug or am I missing something?

EduAnalysis.cppipe (16.3 KB)



I can’t test this without the images, but I’m nearly certain it’s because in both of your ImageMath steps you’re taking a single number (Intensity_MedianIntensity_channel) and subtracting it by an image (channel). Did you perhaps mean to have it the other way around and be subtracting the median intensity from the image?


I have 60 sets of images such that each sets consists of 3 different images taken from 3 different channels. I thought that on the ImageMath steps, I am calculating a median intensity of a single image in a single set (either origTnnT or origPH3). Then subtract the measured intensity from that image itself. If that is not the case, how do I correct it?

Edit: I just switched the order of the measurements in the ImageMath steps and it worked. Thank you!

I have the images but each one is 121 mb.