Re: Efficiently accessing z-profile pixels
Posted by
dpoburko on
Nov 08, 2010; 5:47pm
URL: http://imagej.273.s1.nabble.com/Efficiently-accessing-z-profile-pixels-tp3686479p3686480.html
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