From: dsarrut Date: Thu, 3 Mar 2011 10:12:42 +0000 (+0000) Subject: add "CopyInformation" when crop like another image X-Git-Tag: v1.2.0~217 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=657e663919b0550ef2f966e53933081da9477cc0;p=clitk.git add "CopyInformation" when crop like another image --- diff --git a/itk/clitkCropLikeImageFilter.txx b/itk/clitkCropLikeImageFilter.txx index 74be28e..c925912 100644 --- a/itk/clitkCropLikeImageFilter.txx +++ b/itk/clitkCropLikeImageFilter.txx @@ -110,6 +110,7 @@ GenerateOutputInformation() { likeStart = m_LikeImage->GetLargestPossibleRegion().GetIndex(); likeOrigin = m_LikeImage->GetOrigin(); likeSpacing = m_LikeImage->GetSpacing(); + output->CopyInformation(m_LikeImage); } else { // Only load the header (allows to use 'like' with any image type)