I have the ground truth label files with integer values. I need to remove all values except those voxels that have value==1. How can I do this? How to know the unique values of itk::Image type?
Sorry for basic question
I have the ground truth label files with integer values. I need to remove all values except those voxels that have value==1. How can I do this? How to know the unique values of itk::Image type?
Sorry for basic question
This example should be very helpful:
https://itk.org/ITKExamples/src/Core/Common/IterateRegionWithWriteAccess/Documentation.html
Thank you for sharing the link,
I could perform it with itk::ImageRegionIterator
. Appreciate your help.