From 657e663919b0550ef2f966e53933081da9477cc0 Mon Sep 17 00:00:00 2001 From: dsarrut Date: Thu, 3 Mar 2011 10:12:42 +0000 Subject: [PATCH] add "CopyInformation" when crop like another image --- itk/clitkCropLikeImageFilter.txx | 1 + 1 file changed, 1 insertion(+) 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) -- 2.47.1