Using regionprops in Python
问题 I am trying to analyze greyscale TIFF stacks, in which a given frame will look like this. I filter it (using Gaussian blur), and then binarize it (using Otsu's method for threshold). MATLAB code, which works great: image_conncomp = bwconncomp(image_binary); # entire stack is held in image_binary for i=1:image_conncomp.NumObjects object_size = length(image_conncomp.PixelIdxList{i}); end Each white spot in the example image is picked up, and its volume (in pixels) is pretty accurately given by