<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="RIGHT: auto"><SPAN style="RIGHT: auto">Dear vtkusers,</SPAN></div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto"><SPAN style="RIGHT: auto"> 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.</SPAN></div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto"><SPAN style="RIGHT: auto">Thanks,</SPAN></div>
<div style="BACKGROUND-COLOR: transparent; FONT-STYLE: normal; FONT-FAMILY: times new roman, new york, times, serif; COLOR: rgb(0,0,0); FONT-SIZE: 16px; RIGHT: auto"><SPAN style="RIGHT: auto">Hayden.<VAR id=yui-ie-cursor></VAR></SPAN></div>
<div><BR></div>
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt">
<DIV style="FONT-FAMILY: times new roman, new york, times, serif; FONT-SIZE: 12pt">
<DIV dir=ltr>
<DIV style="BORDER-BOTTOM: #ccc 1px solid; BORDER-LEFT: #ccc 1px solid; PADDING-BOTTOM: 0px; LINE-HEIGHT: 0; MARGIN: 5px 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; HEIGHT: 0px; FONT-SIZE: 0px; BORDER-TOP: #ccc 1px solid; BORDER-RIGHT: #ccc 1px solid; PADDING-TOP: 0px" class=hr readonly="true" contenteditable="false"></DIV><FONT size=2 face=Arial><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Ricardo A Corredor <ra.corredor@gmail.com><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> vtkusers@vtk.org <BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Thursday, April 11, 2013 11:33 AM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [vtkusers] Cropping out a portion of an image<BR></FONT></DIV>
<DIV class=y_msg_container><BR>Hi,<BR><BR>As I understood, you want to keep the original values inside the circle that<BR>has the black contour and put "zero" everywhere outside, right? <BR><BR>If this is the idea, I thing that you will need to run some image processing<BR>steps in order to detect this circular zone first. Maybe it is not very<BR>difficult because it seems that the black contour can be easily extacted<BR>(basic contours extraction algorithms). Then, you will have the specific<BR>circular region that you want from the original image. Another option is to<BR>generate the circle with a defined radius and create a binary image with<BR>that as it is shown in<BR>http://www.itk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataContourToImageData. <BR><BR>Hope this will be helpful for you.<BR><BR>Ricardo A Corredor<BR>RaC<BR><BR><BR><BR>--<BR>View this message in context:
http://vtk.1045678.n5.nabble.com/Cropping-out-a-portion-of-an-image-tp5719948p5719983.html<BR>Sent from the VTK - Users mailing list archive at <A href="http://nabble.com/" target=_blank>Nabble.com</A>.<BR>_______________________________________________<BR>Powered by <A href="http://www.kitware.com/" target=_blank>http://www.kitware.com/</A><BR><BR>Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<BR><BR>Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<BR><BR>Follow this link to subscribe/unsubscribe:<BR>http://www.vtk.org/mailman/listinfo/vtkusers<BR><BR><BR></DIV></DIV></DIV></div></body></html>