[vtkusers] Cropping out a portion of an image
Hayden Smith
s_hayden_28 at yahoo.com
Thu Apr 11 15:59:48 EDT 2013
Dear vtkusers,
Thanks for the reply. Could you just mention some contour extraction algorithm which would be suitable for my case? I would like to use vtk, so please let me know whether any image processing technique like (comparing pixel value) etc is available in vtk. As I am going to deal with a number of images and the contour may not be totally circular.
Thanks,
Hayden.
From: Ricardo A Corredor <ra.corredor at gmail.com>
To: vtkusers at vtk.org
Sent: Thursday, April 11, 2013 11:33 AM
Subject: Re: [vtkusers] Cropping out a portion of an image
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.
_______________________________________________
Powered by http://www.kitware.com/
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130411/eea8502f/attachment.htm>
More information about the vtkusers
mailing list