Posted by
Krs5 on
May 20, 2013; 8:08am
URL: http://imagej.273.s1.nabble.com/macro-to-plot-multi-color-profiles-tp5002959p5003053.html
Hi Michael,
Thanks for that, I have added the code to the macro which can be found at
http://www.le.ac.uk/biochem/microscopy/macros.html.
Best wishes
Kees
-----Original Message-----
From: ImageJ Interest Group [mailto:
[hidden email]] On Behalf Of Michael Epping
Sent: 15 May 2013 13:15
To:
[hidden email]
Subject: Re: macro to plot multi color profiles
Dear Kees,
I have the clue to solve the problem with only two more lines of code.
> getLine(x1, y1, x2, y2, lineWidth);
> dx = (x2-x1)*vw; dy = (y2-y1)*vh;
> Plot.setLimits(0,sqrt(dx*dx+dy*dy),intensityBottom,intensityTop);
This will even work for images with vw!=vh.
Best regards
Michael
Am 14.05.2013 10:50, schrieb Straatman, Kees R. (Dr.):
> Dear Michael,
>
> Thanks for letting me know. I thought that getProfile handled scaled images like run("Plot Profile") but does not seem to be the case. I think I have found an easy way around this. The new macro can be found at:
http://www.le.ac.uk/biochem/microscopy/macros/plot_multicolour4-1.ijm. Let me know if there are other (or new) problems with the macro.
>
> Best wishes
>
> Kees
>
> -----Original Message-----
> From: ImageJ Interest Group [mailto:
[hidden email]] On Behalf Of Michael Epping
> Sent: 13 May 2013 08:30
> To:
[hidden email]
> Subject: Re: macro to plot multi color profiles
>
> Hello Kees,
>
> thanks for sharing your macro with us. I would suggest to change it a bit. The line
>
> > Plot.create("multi Channel Plot", "Distance("+unit+")", "Intensity");
>
> could be misleading. It adds the unit to the x-axis label, but you still plot intensity against pixels. The best way is to scale the x-coordinates by using the VoxelSize. But this will make the macro much more complex.
>
> Best regards
>
> Michael
>
> Am 09.05.2013 10:31, schrieb Straatman, Kees R. (Dr.):
>> Dear list,
>>
>> There have been several questions about plotting colour profiles in the past and I have written a macro that can profile up to 7 colours (red, green, blue, cyan, magenta, yellow and grey) and will handle different types of images. It also allows you to choose the channels you want to plot (by channel number).
>>
>> You can download it from:
>>
http://www.le.ac.uk/biochem/microscopy/macros/plot_multicolour4.ijm>>
>> Best wishes
>>
>> Kees
>>
>> --
>> ImageJ mailing list:
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--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html