Efficiently accessing z-profile pixels

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

Efficiently accessing z-profile pixels

Francis Burton-2
My application, currently a macro but soon to be a plug-in, needs to
access z profile pixels repeatedly to perform cross-correlation between
intensity values varying with time (stack slice). At the moment I am
using setPosition(1,1,z) followed by val=getPixel(x,y), many times for
each z slice. Is this the fastest approach available? Ideally from my
point of view there would be something like:

int[] trace = (int[]) mProcessor.getZProfile(x,y);

but there isn't anything like that in the API.

Francis
Reply | Threaded
Open this post in threaded view
|

Re: Efficiently accessing z-profile pixels

dpoburko
Hello Francis,

   At the macro level, an easy approach is to  reslice your stacks into
(i.e.) x-z images, with y slices. Then you can select a region 1(x) by z
line to use with getProfile. Just a thought.

Good luck!,
Damon

On 11/8/2010 5:53 AM, Francis Burton wrote:

> My application, currently a macro but soon to be a plug-in, needs to
> access z profile pixels repeatedly to perform cross-correlation between
> intensity values varying with time (stack slice). At the moment I am
> using setPosition(1,1,z) followed by val=getPixel(x,y), many times for
> each z slice. Is this the fastest approach available? Ideally from my
> point of view there would be something like:
>
> int[] trace = (int[]) mProcessor.getZProfile(x,y);
>
> but there isn't anything like that in the API.
>
> Francis