Posted by
lechristophe on
URL: http://imagej.273.s1.nabble.com/Get-intensities-along-polyline-tp5018818p5018819.html
hi Greg,
I get the intensity profile from lines or segmented lines in my
autocorrelation javascript available here:
https://github.com/cleterrier/Process_Profiles/blob/master/Autocorrelation_.jsThe relevant lines are 80 to 92: it activates the roi from the ROI manager
on the image plus, gets the profile plot then gets the Y values form the
plot.
rm.select(imp, r);
var profPlot = new ProfilePlot(imp);
var rawY = profPlot.getProfile();
Hope this helps,
Christophe
--
Christophe Leterrier
NeuroCyto lab
NICN CNRS UMR 7259
Aix Marseille University, France
On Thu, Jun 1, 2017 at 11:50 AM, Greg <
[hidden email]> wrote:
> 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
>
>
>
> --
> View this message in context:
http://imagej.1557.x6.nabble.
> com/Get-intensities-along-polyline-tp5018818.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html