Login  Register

Re: Problem with Maximum intensity projection

Posted by vischer on Mar 23, 2018; 9:26am
URL: http://imagej.273.s1.nabble.com/Problem-with-Maximum-intensity-projection-tp5020309p5020311.html

Hi Parijat

The macro below works if your stack contains integers.
It adds the slice information as fractional part.
The first part of the macro creates a demo stack:
e.g. the maximum of the top left square is 190 and occurs in slice#9 (1-based)


random("seed", 0);
newImage("Demo", "8-bit random", 20, 20, 10);
run("Scale...", "x=30 y=30 interpolation=None average create process");
//demo image: in top left square, max intensity=190 and occurs in slice#9 (1-based)

run("32-bit");
run("Macro...", "code=v+0.01*z stack");
run("Z Project...", "projection=[Max Intensity]");
run("Macro...", "code=[round(v%1 * 100 +1)]");//(1-based)
run("Fire");



       



On 23. Mar 2018, at 8:09, Parijat Sarkar <[hidden email]> wrote:

Dear all,

I have set of 10 images (of identical cells) with different emission ranges.
For example, image 1 is of 500 nm, image 2 is of 510 nm and so on...


[These 10 images are nothing but spectral images covering the entire
emission spectra of a fluorophore].


In conventional analysis, we generate something known as a maximum
intensity projection - maximum intensity across all the sections for a
particular pixel is assigned to a new image (continued for all the pixels).



*What I want is rather than the intensity information, I need a image with
the information that would reflect from which section the intensity was
chosen. This would result in an image with all the maximum wavelength
information. *


Thank you so much !


Parijat Sarkar

Graduate Student

CSIR-CCMB

India

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

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