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. | |
| ~JP2Encoder () | |
| JP2Encoder destructor. | |
| void | OpenFile () |
| Open the JPEG2000 file and initialize it. | |
| void | Write (unsigned char **inbuf) |
| Write 8-bit data to JP2 file. | |
| void | Write (short int **inbuf) |
| Write 16-bit data to JP2 file. | |
JPEG2000 encoder class.
This class is used to convert image data into JPEG2000 format with GDAL (OpenJPEG backend).
| 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. |
| Isis::JP2Encoder::~JP2Encoder | ( | ) |
JP2Encoder destructor.
Converts the temporary GeoTIFF to JP2 via GDAL CreateCopy, then removes the temp file.
| void Isis::JP2Encoder::OpenFile | ( | ) |
Open the JPEG2000 file and initialize it.
Creates a temporary GeoTIFF for staging pixel data. The actual JP2 encoding happens in the destructor via GDAL CreateCopy.
| 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. Data is written in a BIL manner. |
References Isis::toString().
| 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. Data is written in a BIL manner. |
References Isis::toString().