Drawing the Maximum across line width

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Drawing the Maximum across line width

ERIC
Dear all,

Is there a way to draw the maximum pixel value across a line ?
As I undertstood the plot profile functon gives the average and the
straighten function draws all the width of the line.
Thanks

--

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/
Reply | Threaded
Open this post in threaded view
|

Re: Drawing the Maximum across line width

Jerome Mutterer-3
Dear Eric,
The straightened image has the maximum values, so it can be resliced
into a 1-pixel line stack. This stack can be projected using the
maximum intensity projection mode. This yields a line with maximums
across the original line, that you can plot.

run("Straighten...");
run("Reslice [/]...", "output=1.000 start=Top avoid");
run("Z Project...", "projection=[Max Intensity]");
makeLine(0,0,getWidth,0);
run("Plot Profile");

Sincerely,
Jerome.


On 3 April 2012 11:57, Eric Denarier <[hidden email]> wrote:

>
> Dear all,
>
> Is there a way to draw the maximum pixel value across a line ?
> As I undertstood the plot profile functon gives the average and the straighten function draws all the width of the line.
> Thanks
>
> --
>
> 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/
Reply | Threaded
Open this post in threaded view
|

Re: Drawing the Maximum across line width

ERIC
Thanks a lot Jerome,
It works perfectly for what we need. However there is a difference in
straighten behavior when using single images or stacks.

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 03/04/2012 13:20, Jerome Mutterer a écrit :

> Dear Eric,
> The straightened image has the maximum values, so it can be resliced
> into a 1-pixel line stack. This stack can be projected using the
> maximum intensity projection mode. This yields a line with maximums
> across the original line, that you can plot.
>
> run("Straighten...");
> run("Reslice [/]...", "output=1.000 start=Top avoid");
> run("Z Project...", "projection=[Max Intensity]");
> makeLine(0,0,getWidth,0);
> run("Plot Profile");
>
> Sincerely,
> Jerome.
>
>
> On 3 April 2012 11:57, Eric Denarier<[hidden email]>  wrote:
>> Dear all,
>>
>> Is there a way to draw the maximum pixel value across a line ?
>> As I undertstood the plot profile functon gives the average and the straighten function draws all the width of the line.
>> Thanks
>>
>> --
>>
>> 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/