00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040 #ifndef INC_MIE_IMAGE_H
00041 #include <mie/image.h>
00042 #endif
00043
00044 #ifndef INC_MIE_HYPSPECT_H
00045 #include <rvc/hypspect.h>
00046 #endif
00047
00048 #include <vector>
00049
00050 namespace MIE {
00051
00052 class JOB_HYPERSPECTRAL : public JOB_IMAGE {
00053 public:
00054 JOB_HYPERSPECTRAL (
00055 const FORMAT& format,
00056 const SETTINGS& settings
00057 );
00058
00059 virtual ~JOB_HYPERSPECTRAL ();
00060
00061 RVC::HYPERSPECTRAL& GetHyperspectral (
00062 ) { return m_Hyperspectral; }
00063
00066 RVC::HYPERSPECTRAL::MAKEPARMS GetMakeParms (
00067 ) const;
00068
00069 INT32 GetNumPrimaryVectors (
00070 ) const { return m_NumPrimaryVectors; }
00071
00072 INT32 GetVectDim (
00073 ) const { return m_VectDim; }
00074
00079 ERRVALUE MakeHyperspectral (
00080 RVC::HYPERSPECTRAL::MAKEPARMS& parms
00081 );
00082
00087 ERRVALUE MakeHyperspectral (
00088 );
00089
00090 void SetNumPrimaryVectors (
00091 INT32 NumVectors
00092 ) { m_NumPrimaryVectors = NumVectors; }
00093
00094 void SetVectDim (
00095 INT32 VectDim
00096 ) { m_VectDim = VectDim; }
00097
00098 protected:
00099 virtual ERRVALUE v_ImportBegin (
00100 const RVC::OBJITEM& DestObj
00101 );
00102
00103 virtual ERRVALUE v_ImportEnd (
00104 RVC::OBJITEM& DestObj
00105 );
00106
00107 private:
00108 int LoadInputBuffGen (
00109 FILE_RAW& file,
00110 INT64 filepos,
00111 UINT8 *buffer,
00112 UINT8 *linebuff,
00113 std::vector<SIMPLE_ARRAY<DOUBLE> >& Bank,
00114 INT32 numlins,
00115 INT32 numcols,
00116 INT32 TotLineBytes,
00117 INT32 OutLineBytes
00118 );
00119
00120 DOUBLE GetDoubleValue (
00121 UINT8 *buffer,
00122 int cellbytes,
00123 RVC::IMAGE::DATATYPE datatype
00124 ) const;
00125
00126 int RemoveAverage (
00127 DOUBLE* base,
00128 INT32 NumRasters
00129 ) const;
00130
00131 virtual ERRVALUE v_ImportGeneric (
00132 const FILEPATH& filepath
00133 );
00134
00135 RVC::HYPERSPECTRAL m_Hyperspectral;
00136 INT32 m_NumPrimaryVectors;
00137 INT32 m_VectDim;
00138 };
00139 }
00140