|
I am learning to write ImageJ plugins, and I am a little lost with accessing pixels in a stack.
I have no problem using the getPixels (1-D array slice by slice).
However, for my plugin I need to do manipulations in a loop over the vertical pixels (through z) for every (x,y) position.
What is the correct code (with object declaration) to load the whole 3-D array of pixels into my plugin?
I couldn't figure out the correct way to use getImageArray().
As I understand it will be an array of 1-D arrays (ImagePlus objects), but I really need to see an example of the code that uses it.
Thank you for your help!
|