From: Simon Rit Date: Tue, 2 Feb 2016 09:53:01 +0000 (+0100) Subject: Removed copy paste X-Git-Tag: v1.4.0~71^2~2^2~1 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=c3c932caf6268a56913a8f7f74099e78a053b8a8;p=clitk.git Removed copy paste --- diff --git a/common/clitkDicomRTStruct2ImageFilter.cxx b/common/clitkDicomRTStruct2ImageFilter.cxx index eb54bdc..c8d28bf 100644 --- a/common/clitkDicomRTStruct2ImageFilter.cxx +++ b/common/clitkDicomRTStruct2ImageFilter.cxx @@ -202,18 +202,15 @@ void clitk::DicomRTStruct2ImageFilter::Update() mBinaryImage = vtkSmartPointer::New(); #if VTK_MAJOR_VERSION <= 5 mBinaryImage->SetScalarTypeToUnsignedChar(); +#endif mBinaryImage->SetOrigin(&origin[0]); mBinaryImage->SetSpacing(&mSpacing[0]); mBinaryImage->SetExtent(0, extend[0], 0, extend[1], 0, extend[2]); +#if VTK_MAJOR_VERSION <= 5 mBinaryImage->AllocateScalars(); #else - mBinaryImage->SetOrigin(&origin[0]); - mBinaryImage->SetSpacing(&mSpacing[0]); - mBinaryImage->SetExtent(0, extend[0], - 0, extend[1], - 0, extend[2]); mBinaryImage->AllocateScalars(VTK_UNSIGNED_CHAR, 1); #endif