Hi David,
if you are talking about the values of the PlotWindow try this:
boolean averageHorizontally = false; // true
PlotProfile profile = new PlotProfile(imp, averageHorizontally );
double[] data = profile.getProfile();
Plot plot = profile .getProfile();
PlotWindow pw = plot.show();
float[] fX = pw.getXValues();
float[] fY = pw.getYValues();
pw.close();
Regards,
Peter
On 07.12.2015 23:00, davek604 wrote:
> Hello
> I'm cuurently writing a plugin which involves some processing of data
> extracted from a plot profile. Unfortunately I can't figure out how to get
> the raw data values out of the profile into an array. The code I'm trying is
> below.
>
> ProfilePlot theplot = new ProfilePlot();
> theplot.getPlot();
> double thedata[] = theplot.getProfile();
>
> Any help appreciated
>
> Regards
>
> David
>
>
>
> --
> View this message in context:
http://imagej.1557.x6.nabble.com/Plot-Profile-Data-tp5015167.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