Login  Register

Efficiently accessing z-profile pixels

Posted by Francis Burton-2 on Nov 08, 2010; 1:53pm
URL: http://imagej.273.s1.nabble.com/Efficiently-accessing-z-profile-pixels-tp3686479.html

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