Posted by
Michael Schmid on
Nov 10, 2018; 7:10pm
URL: http://imagej.273.s1.nabble.com/Line-profile-seems-to-filter-data-tp5021433p5021438.html
On 2018-11-09 22:59, Mark Senko wrote:
> If I draw a line with a width greater than 1 and generate a profile
> plot, the peaks in my data are progressively suppressed the further
> towards the right I am on the plot. It's almost as if there is a
> running average filter that gets wider as I move along the data set.
> The suppression shows up when the points are listed.
> Generating a profile from a rectangle of the same size does not show
> this effect. Has anyone else seen this?
>
Hi Mark,
sorry, I can't confirm this. Here is my test macro:
newImage("Untitled", "32-bit black", 1024, 1024, 1);
run("Macro...", "code=v=v+50*sin(x/2+y/50)");
makeLine(26, 326, 1002, 364, 20);
run("Plot Profile");
It shows the same amplitude of the sine wave from left to right.
These are my (Profile) Plot options:
run("Plots...", "width=500 height=400 font=12 draw minimum=0 maximum=0
interpolate sub-pixel");
Do you have a sample image that you could post somewhere?
Best also specify the line coordinates and width that you are using, and
which options you have (e.g. use the macro recorder to record the
Edit>Options>Plots dialog)
Michael
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html