[Insight-users] 3D volume image neighborhood iterator?

Wang Zhimin zwang at i2r.a-star.edu.sg
Fri Mar 4 02:43:25 EST 2011


Hi, all,

Thank you all in advance for reading this question.

I am looking for a way to read all the neighborhood voxels for a 3x3x3 neighboring window for a 3D volume image. 

I find all the online resource, itksoftwareguide, itk example, and mailing list archive, all failed.  

Can any one give me some example codes to do this?

Some notes:
1) I think a ImageSliceIteratorWithIndex may work, but I cannot figure out HOW through the example.
2) I want to use 2D neighborhood iterator for each slice, but I need to coordinate at least 3 slices (previous, center, and next) with correct index, and it is too complicated. 
3) I also want to use itk::NeighborhoodAlgorithm::ImageBoundaryFacesCalculator to get the non-boundary region, I don't have any boundary condition, so what I need is just to focus on the non-boundary region.

Once again, thank you.

Regards,
Zhimin

Institute for Infocomm Research disclaimer:  "This email is confidential and may be privileged. If you are not the intended recipient, please delete it and notify us immediately. Please do not copy or use it for any purpose, or disclose its contents to any other person. Thank you."


More information about the Insight-users mailing list