# Extracting intensity values from each pixel in a z stack

3 messages
Open this post in threaded view
|

## Extracting intensity values from each pixel in a z stack

 Hi everyone, I’m writing a short code to check for fluorescence beads alignment. The strategy I’m considering is to generate the coordinates of the intensity distribution from a single bead in a cropped field of view across z axis. My code below is able to 1) shoot out coordinates for the xy plane and the 2) corresponding brightest pixel within the same plane but it’s unable to loop to the next slice. Can someone please help point out why this is the case? Any advice is much appreciated. Thanks. WJ getDimensions(width, height, channels, slices, frames); for (z=0; z
Open this post in threaded view
|

## Re: Extracting intensity values from each pixel in a z stack

 What about using Process > Find Maxima...? To answer your question: setSlice(z); or Stack.setSlice(z); should work. Look at Stack (hyperstack) functions at https://imagej.nih.gov/ij/developer/macro/functions.html#SCheers- Michael Cammer, Sr Research Scientist, DART Microscopy Laboratory NYU Langone Health, 540 First Avenue, SK2 Microscopy Suite, New York, NY  10016 Office: 646-501-0567 Cell: 914-309-3270  [hidden email]   http://nyulmc.org/micros  http://microscopynotes.com/-----Original Message----- From: wei.jian <[hidden email]> Sent: Tuesday, December 3, 2019 9:06 AM To: [hidden email] Subject: Extracting intensity values from each pixel in a z stack [EXTERNAL] Hi everyone, I’m writing a short code to check for fluorescence beads alignment. The strategy I’m considering is to generate the coordinates of the intensity distribution from a single bead in a cropped field of view across z axis. My code below is able to 1) shoot out coordinates for the xy plane and the 2) corresponding brightest pixel within the same plane but it’s unable to loop to the next slice. Can someone please help point out why this is the case? Any advice is much appreciated. Thanks. WJ getDimensions(width, height, channels, slices, frames); for (z=0; z
Open this post in threaded view
|

## Re: Extracting intensity values from each pixel in a z stack

 Hi Michael, Thanks for pointing that out. I got it working. Really appreciate your help. Adam -- Sent from: http://imagej.1557.x6.nabble.com/-- ImageJ mailing list: http://imagej.nih.gov/ij/list.html