[Insight-users] crop and image based on bounding box then pad to original dimensions
Alexander Taghva
alextaghva at gmail.com
Thu Mar 17 10:51:07 EDT 2011
Hello,
I would like to take an image, crop it to its nonzero content, perform some
filtering, then zero pad the image back to its original dimensions. So far,
I am able to compute the bounding box with a mask spatial object doing
something like this:
RegionType boundingBoxRegion = m_MaskSO->GetAxisAlignedBoundingBoxRegion();
but I don't know where to go from here. I'm relatively new to ITK. Thanks
for your help.
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110317/db7011c0/attachment.htm>
More information about the Insight-users
mailing list