]> Creatis software - clitk.git/commitdiff
Debug Number of Component in Pixel Type
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Fri, 16 Sep 2016 11:31:52 +0000 (13:31 +0200)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Fri, 16 Sep 2016 11:31:52 +0000 (13:31 +0200)
common/vvImageReader.cxx

index bc1dd20677ee84504957991a035aad4766cbff03..0e4c22ba05b468522dace0bf3b08ee2412652d08 100644 (file)
@@ -60,7 +60,7 @@ void vvImageReader::Update(LoadedImageType type)
     reader->ReadImageInformation();
     if (mInputFilenames.size() > 1)
       Update(reader->GetNumberOfDimensions()+1,reader->GetComponentTypeAsString(reader->GetComponentType()),type);
-    else if (reader->GetComponentSize() > 1 && type != VECTORFIELD && type != VECTORFIELDWITHTIME)
+    else if (reader->GetNumberOfComponents() > 1 && type != VECTORFIELD && type != VECTORFIELDWITHTIME)
       Update(reader->GetNumberOfDimensions()+1,reader->GetComponentTypeAsString(reader->GetComponentType()),VECTORPIXELIMAGE);
     else
       Update(reader->GetNumberOfDimensions(),reader->GetComponentTypeAsString(reader->GetComponentType()),type);