After Cropping an Image, the Offset of the inputimage is changed.
Example Code:
mitk::AutoCropImageFilter::Pointer filter = mitk::AutoCropImageFilter::New();
filter->SetInput(MyImage); "MyImage" is a mitk::Image
filter->SetCroppingRegion(region); "region" is a Region defined by an index and a size
filter->Update();