Skip to content
Snippets Groups Projects
Commit b6cb4dc3 authored by Cyrille Valladeau's avatar Cyrille Valladeau
Browse files

WRG: fix warning in OutputImageParameter

parent 4975b5b3
No related branches found
No related tags found
No related merge requests found
......@@ -179,28 +179,24 @@ template <class TInputRGBAImageType>
void
OutputImageParameter::SwitchRGBAImageWrite()
{
switch(m_PixelType )
{
case ImagePixelType_uint8:
if( m_PixelType == ImagePixelType_uint8 )
{
otbCastAndWriteImageMacro(TInputRGBAImageType, UInt8RGBAImageType, m_RGBAUInt8Writer);
break;
}
}
else
itkExceptionMacro("Unknown PixelType for RGBA Image.");
}
template <class TInputRGBImageType>
void
OutputImageParameter::SwitchRGBImageWrite()
{
switch(m_PixelType )
{
case ImagePixelType_uint8:
if( m_PixelType == ImagePixelType_uint8 )
{
otbCastAndWriteImageMacro(TInputRGBImageType, UInt8RGBImageType, m_RGBUInt8Writer);
break;
}
}
else
itkExceptionMacro("Unknown PixelType for RGB Image.");
}
void
......
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