getPixel value at centroid (X,Y)

Hi,

I've centroid coordaintes of "segmented spots" calculated using "Image Segment Features". How can get the intensity value (from a greyscale image) at the centroid of the spot object? This appears to be trivial but I'm not able to wrap my head around it.

Best,

Reddy

 

Hi Reddy,

do you want the average intensity of your spot or per centroid intensity?

(a) You can use the Image Segment Feature node for that

(b) is trivial with the scripting integration we are about to beta-release  in July (I can show it to you) or you can get around it with some tricks, which are not too obvious (I can post a workflow for that later if you want).

We should add a node "Positions to Labeling" or something like this for convenience!

Best,

Christian

 

Christian,

 

I need the latter (case - b). I'll wait for the July release.

 

Best,

Reddy

Hello Reddy,

I created a small workflow which builds 1x1 pixel labels from a list of x-y-coordinates.

 

Best,

Tim

1 Like

Hi Tim,

 

Thanks a lot. This is really helpful.

 

Reddy