[Insight-users] Trimming Images

Mathias Seitel mathias . seitel at igd . fhg . de
Fri, 30 May 2003 15:37:17 +0200


Hello all,

I'm working on a software for segmenting rather large series of volumes. 
Both the original data and the segmentation results (volumes again) 
should be kept in memory. Since the segmentation regions will cover only 
a small part of the original image, in order not to waste memory, I'd 
like to trim the resulting itk::Images by cutting off as much of their 
borders as possible. The resulting image should just contain the minimum 
volume around the segmentation region. Is there any convenient way to 
achieve this? Thanks.

Mathias