Re: your mail

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

Re: your mail

William O'Connell
Hi Yong,

int x=10, y=10, z=5;
ImagePlus imp;
ImageProcessor ip;
.
.
.
ip.setSlice(z+1);
int value = ip.getPixel(x, y);

Cheers, Bill

 -------------- Original message ----------------------
From: Yong Zhang <[hidden email]>

> Hi,
>
> A quick question about using ImageJ->File->Import->Image Sequence...
>
> When a sequence of images are opened using the above method in ImageJ
> v1.35i, a "StackWindow" is displayed and when I moved the mouse on the
> image the pixel position (x,y,z) is shown along with its intensity value
> in the status bar.
>
> My question is: can anybody tell me how to access the displayed pixel
> position (x,y,z) and intensity value in our own Java codes? I know there
> must be a way but I cannot figure it out.
>
> Thanks a lot.
>
> Yong