[vtkusers] Cropping out a portion of an image
Ricardo A Corredor
ra.corredor at gmail.com
Thu Apr 11 12:33:48 EDT 2013
Hi,
As I understood, you want to keep the original values inside the circle that
has the black contour and put "zero" everywhere outside, right?
If this is the idea, I thing that you will need to run some image processing
steps in order to detect this circular zone first. Maybe it is not very
difficult because it seems that the black contour can be easily extacted
(basic contours extraction algorithms). Then, you will have the specific
circular region that you want from the original image. Another option is to
generate the circle with a defined radius and create a binary image with
that as it is shown in
http://www.itk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataContourToImageData.
Hope this will be helpful for you.
Ricardo A Corredor
RaC
--
View this message in context: http://vtk.1045678.n5.nabble.com/Cropping-out-a-portion-of-an-image-tp5719948p5719983.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list