63 if(pixelType == Isis::None)
return 0;
64 if(pixelType == Isis::UnsignedByte)
return sizeof(
unsigned char);
65 if(pixelType == Isis::SignedByte)
return sizeof(char);
66 if(pixelType == Isis::UnsignedWord)
return sizeof(
unsigned short);
67 if(pixelType == Isis::SignedWord)
return sizeof(short);
68 if(pixelType == Isis::UnsignedInteger)
return sizeof(
unsigned int);
69 if(pixelType == Isis::SignedInteger)
return sizeof(int);
70 if(pixelType == Isis::Real)
return sizeof(float);
71 if(pixelType == Isis::Double)
return sizeof(double);
83 if(pixelType == Isis::None)
return "None";
84 if(pixelType == Isis::UnsignedByte)
return "UnsignedByte";
85 if(pixelType == Isis::SignedByte)
return "SignedByte";
86 if(pixelType == Isis::UnsignedWord)
return "UnsignedWord";
87 if(pixelType == Isis::SignedWord)
return "SignedWord";
88 if(pixelType == Isis::UnsignedInteger)
return "UnsignedInteger";
89 if(pixelType == Isis::SignedInteger)
return "SignedInteger";
90 if(pixelType == Isis::Real)
return "Real";
91 if(pixelType == Isis::Double)
return "Double";
106 QString temp = type.toUpper();
107 if(temp ==
"UNSIGNEDBYTE" || temp ==
"8BIT" || temp ==
"8-BIT")
return Isis::UnsignedByte;
108 if(temp ==
"SIGNEDBYTE")
return Isis::SignedByte;
109 if(temp ==
"UNSIGNEDWORD")
return Isis::UnsignedWord;
110 if(temp ==
"SIGNEDWORD")
return Isis::SignedWord;
111 if(temp ==
"UNSIGNEDINTEGER")
return Isis::UnsignedInteger;
112 if(temp ==
"SIGNEDINTEGER")
return Isis::SignedInteger;
113 if(temp ==
"REAL")
return Isis::Real;
114 if(temp ==
"DOUBLE")
return Isis::Double;
int SizeOf(Isis::PixelType pixelType)
Returns the number of bytes of the specified PixelType.
QString PixelTypeName(Isis::PixelType pixelType)
Returns string name of PixelType enumeration entered as input parameter.
PixelType
Enumerations for Isis Pixel Types.
Isis::PixelType PixelTypeEnumeration(const QString &type)
Returns PixelType enumeration given a string.
Namespace for ISIS/Bullet specific routines.