direct pixel access missing single voxels

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

direct pixel access missing single voxels

Karl Diedrich
Hello all,

I am directly accessing pixels like this:

short[][] voxels = new short[zSize][];
for (int i=0; i<zSize; i++)
{
       voxels[i] = (short[])stack.getProcessor(i+1).getPixels();
}

When I do this I can access the the pixels in images with thick structures.

When the image only has single isolated pixels or single width lines (the other pixels are all zero) I don't get any non-zero pixels in the voxels[][] data structure.






Karl Diedrich
Biomedical Informatics Training Fellow
Department of Biomedical Informatics
http://www.bmi.utah.edu/?module=facultyDetails&personId=15173&orgId=382
http://kdbiomedicalinformatics.blogspot.com/

Mail:
University of Utah
Utah Center for Advanced Imaging Research
729 Arapeen Drive, Salt Lake City, UT 84108
801-581-3141