Loading isis/src/base/objs/ProcessImport/ProcessImport.cpp +17 −2 Original line number Diff line number Diff line Loading @@ -279,7 +279,7 @@ namespace Isis { if ((type == Isis::Double) || (type == Isis::Real) || (type == Isis::SignedWord) || (type == Isis::UnsignedWord) || (type == Isis::UnsignedByte) || (type == Isis::SignedInteger)) { (type == Isis::SignedInteger) || type==Isis::UnsignedInteger) { p_pixelType = type; } else { Loading Loading @@ -1226,6 +1226,11 @@ namespace Isis { min = Isis::IVALID_MIN4; max = Isis::IVALID_MAX4; } else if (p_pixelType == Isis::UnsignedInteger) { min = Isis::VALID_MINUI4; max = Isis::VALID_MAXUI4; } else if (p_pixelType == Isis::SignedWord) { min = Isis::VALID_MIN2 * p_mult[0] + p_base[0]; max = Isis::VALID_MAX2 * p_mult[0] + p_base[0]; Loading Loading @@ -1480,6 +1485,10 @@ namespace Isis { case Isis::SignedInteger: (*out)[samp] = (double)swapper.Int((int *)in+samp); break; case Isis::UnsignedInteger: (*out)[samp] = (double)swapper.Uint32_t((unsigned int *)in+samp); break; case Isis::Real: if(p_vax_convert) { (*out)[samp]= VAXConversion( (float *)in+samp ); Loading Loading @@ -1733,6 +1742,9 @@ namespace Isis { case Isis::SignedInteger: (*out)[samp] = (double)swapper.Int((int *)in+samp); break; case Isis::UnsignedInteger: (*out)[samp] = (double)swapper.Uint32_t((unsigned int *)in+samp); break; case Isis::Real: if(p_vax_convert) { (*out)[samp]= VAXConversion( (float *)in+samp ); Loading Loading @@ -1966,6 +1978,9 @@ namespace Isis { case Isis::SignedInteger: (*out)[samp] = (double)swapper.Int(&in[bufferIndex]); break; case Isis::UnsignedInteger: (*out)[samp] = (double)swapper.Uint32_t(&in[bufferIndex]); break; case Isis::Real: if(p_vax_convert) { (*out)[osamp]= VAXConversion(&in[bufferIndex]); Loading isis/src/base/objs/ProcessImport/ProcessImport.h +2 −0 Original line number Diff line number Diff line Loading @@ -163,6 +163,8 @@ namespace Isis { * was made to accomodate Rosetta VIRTIS-m calibrated data files and * has no impact on other supported BIP files. * Fixes #5398. * @history 208-07-19 Tyler Wilson - Added support for 4-byte UnsignedInteger special pixel * values. * */ class ProcessImport : public Isis::Process { Loading Loading
isis/src/base/objs/ProcessImport/ProcessImport.cpp +17 −2 Original line number Diff line number Diff line Loading @@ -279,7 +279,7 @@ namespace Isis { if ((type == Isis::Double) || (type == Isis::Real) || (type == Isis::SignedWord) || (type == Isis::UnsignedWord) || (type == Isis::UnsignedByte) || (type == Isis::SignedInteger)) { (type == Isis::SignedInteger) || type==Isis::UnsignedInteger) { p_pixelType = type; } else { Loading Loading @@ -1226,6 +1226,11 @@ namespace Isis { min = Isis::IVALID_MIN4; max = Isis::IVALID_MAX4; } else if (p_pixelType == Isis::UnsignedInteger) { min = Isis::VALID_MINUI4; max = Isis::VALID_MAXUI4; } else if (p_pixelType == Isis::SignedWord) { min = Isis::VALID_MIN2 * p_mult[0] + p_base[0]; max = Isis::VALID_MAX2 * p_mult[0] + p_base[0]; Loading Loading @@ -1480,6 +1485,10 @@ namespace Isis { case Isis::SignedInteger: (*out)[samp] = (double)swapper.Int((int *)in+samp); break; case Isis::UnsignedInteger: (*out)[samp] = (double)swapper.Uint32_t((unsigned int *)in+samp); break; case Isis::Real: if(p_vax_convert) { (*out)[samp]= VAXConversion( (float *)in+samp ); Loading Loading @@ -1733,6 +1742,9 @@ namespace Isis { case Isis::SignedInteger: (*out)[samp] = (double)swapper.Int((int *)in+samp); break; case Isis::UnsignedInteger: (*out)[samp] = (double)swapper.Uint32_t((unsigned int *)in+samp); break; case Isis::Real: if(p_vax_convert) { (*out)[samp]= VAXConversion( (float *)in+samp ); Loading Loading @@ -1966,6 +1978,9 @@ namespace Isis { case Isis::SignedInteger: (*out)[samp] = (double)swapper.Int(&in[bufferIndex]); break; case Isis::UnsignedInteger: (*out)[samp] = (double)swapper.Uint32_t(&in[bufferIndex]); break; case Isis::Real: if(p_vax_convert) { (*out)[osamp]= VAXConversion(&in[bufferIndex]); Loading
isis/src/base/objs/ProcessImport/ProcessImport.h +2 −0 Original line number Diff line number Diff line Loading @@ -163,6 +163,8 @@ namespace Isis { * was made to accomodate Rosetta VIRTIS-m calibrated data files and * has no impact on other supported BIP files. * Fixes #5398. * @history 208-07-19 Tyler Wilson - Added support for 4-byte UnsignedInteger special pixel * values. * */ class ProcessImport : public Isis::Process { Loading