<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV>I believe itkExtractImageFilter will do the job. It takes as input the image and the region you wish to extract. It should be trivial to define the region of interest from the centroid and an approximation of the object size. Take a look at /Insight/Testing/Code/BasicFilters/itkExtractImageTest.cxx for usage. Hope that helps.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>-Robert</DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR><DIV><DIV>On Jun 20, 2006, at 6:39 PM, Shahabuddin Ansari wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV>Hello,</DIV> <DIV> </DIV> <DIV>I need to automatically crop a block around an object in a brain MRI with centroid in the object. I really appreciate your comments.</DIV> <DIV> </DIV> <DIV>Thanks!</DIV> <DIV>Shahab</DIV><DIV>                 <BR class="khtml-block-placeholder"></DIV><HR size="1">How low will we go? Check out Yahoo! Messenger’s low <A href="http://us.rd.yahoo.com/mail_us/taglines/postman8/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com"> PC-to-Phone call rates.</A><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Insight-users mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:Insight-users@itk.org">Insight-users@itk.org</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</A></DIV> </BLOCKQUOTE></DIV><BR></BODY></HTML>