Dear all
I've rewritten an old plugin that finds the principal axes of a stack
and creates an aligned copy of the stack, so that it can handle more
than just 16-bit images.
To do that, I use
targetIP.set(x, y, sourceStack.getProcessor(zA).get(xA,yA));
But this seems to be much slower on 8-bit images than 16-bit images.
For a test 256 x 256 x 256 stack, the 16-bit image processes in 6
seconds, while the 8-bit image takes close to 2.5 minutes.
Is there a neat trick I can use to make my 8-bit images process as fast
as my 16-bit images? The code is at:
http://github.com/mdoube/BoneJ/blob/master/src/Moments_3D.javain alignToPrincipalAxes()
Cheers,
Michael