Isis 3 Programmer Reference
|
JPEG2000 encoder class. More...
#include <JP2Encoder.h>
Public Member Functions | |
JP2Encoder (const QString &jp2file, const unsigned int nsamps, const unsigned int nlines, const unsigned int nbands, const Isis::PixelType type) | |
Constructs a JPEG2000 encoder object. More... | |
~JP2Encoder () | |
JP2Encoder destructor. More... | |
JP2Error * | kakadu_error () const |
void | OpenFile () |
Open the JPEG2000 file and initialize it. More... | |
void | Write (unsigned char **inbuf) |
Write 8-bit data to JP2 file. More... | |
void | Write (short int **inbuf) |
Write 16-bit data to JP2 file. More... | |
Private Attributes | |
QString | p_jp2File |
Output file name. More... | |
std::string | p_progressionOrder |
Progression order used to create output file. More... | |
std::vector< unsigned int > | p_precinctSize |
Precinct size(s) used to create output file. More... | |
JP2Error * | Kakadu_Error |
JP2 Error handling facility. More... | |
JPEG2000 encoder class.
This class is used to convert image data into JPEG2000 format.
Here is an example of how to use JP2Encoder
If you would like to see JP2Encoder being used in implementation, see isis2std.cpp
Definition at line 67 of file JP2Encoder.h.
Isis::JP2Encoder::JP2Encoder | ( | const QString & | jp2file, |
const unsigned int | nsamps, | ||
const unsigned int | nlines, | ||
const unsigned int | nbands, | ||
const Isis::PixelType | type | ||
) |
Constructs a JPEG2000 encoder object.
jp2file | Name of file where the encoded JP2 data will be stored. |
nsamps | Sample dimension of image that will be encoded. |
nlines | Line dimension of image that will be encoded. |
nbands | Band dimension of image that will be encoded. |
type | Pixel type of data that will be encoded. |
Definition at line 36 of file JP2Encoder.cpp.
Isis::JP2Encoder::~JP2Encoder | ( | ) |
JP2Encoder destructor.
Definition at line 286 of file JP2Encoder.cpp.
void Isis::JP2Encoder::OpenFile | ( | ) |
Open the JPEG2000 file and initialize it.
Definition at line 108 of file JP2Encoder.cpp.
Referenced by Isis::JP2Exporter::write().
void Isis::JP2Encoder::Write | ( | short int ** | inbuf | ) |
Write 16-bit data to JP2 file.
inbuf | The array of pointers to byte buffers that will be used to write out the image data. One byte buffer is required for each band in the image. Kakadu writes in a BIL manner. |
Definition at line 275 of file JP2Encoder.cpp.
void Isis::JP2Encoder::Write | ( | unsigned char ** | inbuf | ) |
Write 8-bit data to JP2 file.
inbuf | The array of pointers to byte buffers that will be used to write out the image data. One byte buffer is required for each band in the image. Kakadu writes in a BIL manner. |
Definition at line 260 of file JP2Encoder.cpp.
Referenced by Isis::JP2Exporter::writeLine().
|
private |
JP2 Error handling facility.
Definition at line 92 of file JP2Encoder.h.
|
private |
Output file name.
Definition at line 89 of file JP2Encoder.h.
|
private |
Precinct size(s) used to create output file.
Definition at line 91 of file JP2Encoder.h.
|
private |
Progression order used to create output file.
Definition at line 90 of file JP2Encoder.h.