Get intensities along polyline
Posted by Greg on
URL: http://imagej.273.s1.nabble.com/Get-intensities-along-polyline-tp5018818.html
Hello,
I want to get the intensities along a PolygonRoi, which is of polyline subtype. There seems to be no getPixels() method or alike as for straight lines?! With the GUI, the Plot Profile command readily plots the intensities along arbitrary line selections, what would be the best way to do it programmatically (e.g. with jython or java script)?
I guess I could manually get the x- and y-coordinates of the polyline, and then call the getPixelInterpolated(x,y) method of the actual ImageProcessor, I wonder if there is some already some convenience function for that?
Thx,
Gregor
PS: I guess the answer is already somewhere hidden in this forum but I can't find it