[scikit-image] Image intensity measure.regionprops

Cedric Espenel cedric.espenel at gmail.com
Fri Jul 14 01:23:01 EDT 2017


Hi scikit-image users/devs,

I'm using skimage.measure.regionprops and I'm little bit confused about a
result I get with it.

I'm working with a zstack of a microscopy image that I have segmented/label
and I'm trying to get the mean intensity of the labeled region:

region_props = measure.regionprops(label_image, intensity_image)
>

If now I do:

for prop in region_prop:

print('x', prop.mean_intensity)
>>
> print('y', np.mean(prop.intensity_image))
>>
>
prop.mean_intensity and np.mean(prop.intensity_image) give me different
value, which confuse me. Can someone help me understand why I'm getting
something different?

Thank you in advance for your help.

Sincerely,

Cedric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20170713/a71e1fe4/attachment.html>


More information about the scikit-image mailing list