Commit d0a7bcc5 authored by Rashad Kanavath's avatar Rashad Kanavath

BUG: Incorrect and incomplete pixel types when processing xml

parent 0c111d1a
......@@ -49,14 +49,22 @@ InputProcessXMLParameter::GetPixelTypeFromString(std::string strType)
{
return ImagePixelType_uint8;
}
else if (strType == "int16")
{
return ImagePixelType_int16;
}
else if (strType == "uint16")
{
return ImagePixelType_uint16;
}
else if(strType == "uint32")
else if(strType == "int32")
{
return ImagePixelType_int32;
}
else if(strType == "uint32")
{
return ImagePixelType_uint32;
}
else if(strType == "float")
{
return ImagePixelType_float;
......
......@@ -59,11 +59,21 @@ OutputProcessXMLParameter::pixelTypeToString(ImagePixelType pixType)
type = "int16";
break;
}
case ImagePixelType_uint16:
{
type = "uint16";
break;
}
case ImagePixelType_int32:
{
type = "int32";
break;
}
case ImagePixelType_uint32:
{
type = "uint32";
break;
}
case ImagePixelType_float:
{
type = "float";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment