Re: Maxima in a plot profile

Posted by ERIC on
URL: http://imagej.273.s1.nabble.com/Maxima-in-a-plot-profile-tp5003690p5003692.html

Thanks Jerome,
That was the problem.
But I have an other one : If I draw a segmented line and
Edit/Selection/Straigthen, it makes a curve that doesn't overlay the
original line. Can it be fix ?

Eric Denarier
Grenoble Institut des Neurosciences
Inserm U836
Chemin Fortuné Ferrini
38700 La Tronche
France


Tél :33 (0)4 56 52 05 38
Fax :33 (0)4 56 52 06 57

http://neurosciences.ujf-grenoble.fr/

Le 28/06/2013 09:49, Jerome Mutterer a écrit :

> Hi Eric,
>
> You must have Edit > Options > Profile Plot Options > Interpolate line
> profiles option checked.
> Uncheck it if you want uninterpolated pixel values.
>
> The pixel values along a line are retrieved like this:
> https://github.com/fiji/imagej1/blob/master/ij/gui/Line.java#L394
>
> For 1 pixel wide lines like yours the interpolation code is there:
> https://github.com/fiji/imagej1/blob/master/ij/process/ImageProcessor.java#L962
>
> and finally calls the getInterpolatedValue(x,y) method here:
> https://github.com/fiji/imagej1/blob/master/ij/process/ImageProcessor.java#L1694
>
> Sincerely,
>
> Jerome.
>
> On 28 June 2013 08:44, Eric Denarier <[hidden email]> wrote:
>
>> Dear All,
>> I would like to know how the values are calculated in a plot profile :
>> I have a small image (Stack-2.tif) in which I draw a line over the pixel
>> of maximum intensity (value : 2068).
>> The line is traced
>>   If I use Analyze/Plot Profile and list the values from a 1 pixel width
>> line the maximum is 1921.58 (Values on the left of plot profile.png). On
>> the right it's with a width of 3 pixels.
>> How does the values are calculated ? How can I get the real max value ( in
>> this case 2068) of a line across a picture ?
>>
>> Thanks for your comment
>>
>> -- ich
>>
>> Eric Denarier
>> Grenoble Institut des Neurosciences
>> Inserm U836
>> Chemin Fortuné Ferrini
>> 38700 La Tronche
>> France
>>
>>
>> Tél :33 (0)4 56 52 05 38
>> Fax :33 (0)4 56 52 06 57
>>
>> http://neurosciences.ujf-**grenoble.fr/<http://neurosciences.ujf-grenoble.fr/>
>>
>>
>> --
>> ImageJ mailing list: http://imagej.nih.gov/ij/list.**html<http://imagej.nih.gov/ij/list.html>
>>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html