Skip to content
Snippets Groups Projects
Commit 1f255126 authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

BUG: PNGIndexedNbBandsTest needs to use VectorImage to have a chance to have...

BUG: PNGIndexedNbBandsTest needs to use VectorImage to have a chance to have GetNumberOfComponentsPerPixel returns something else than 1
parent e20402ef
No related branches found
No related tags found
No related merge requests found
......@@ -712,6 +712,7 @@ void GDALImageIO::InternalReadImageInformation()
{
m_NbBands *= 4;
this->SetNumberOfComponents(m_NbBands);
this->SetPixelType(VECTOR);
}
}
......
......@@ -22,7 +22,7 @@
#include "otbImageFileReader.h"
#include "otbImage.h"
#include "otbVectorImage.h"
#include "itkRGBPixel.h"
#include "itkExceptionObject.h"
#include <iostream>
......@@ -37,7 +37,7 @@ int otbPNGIndexedNbBandsTest(int argc, char* argv[])
typedef itk::RGBPixel<unsigned char> InputPixelType;
const unsigned int Dimension = 2;
typedef otb::Image< InputPixelType, Dimension > InputImageType;
typedef otb::VectorImage< InputPixelType, Dimension > InputImageType;
typedef otb::ImageFileReader< InputImageType > ReaderType;
......@@ -49,7 +49,7 @@ int otbPNGIndexedNbBandsTest(int argc, char* argv[])
if ( reader->GetOutput()->GetNumberOfComponentsPerPixel() == nbBands )
{
return EXIT_SUCCESS;
return EXIT_SUCCESS;
}
else
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment