Isis 3 Programmer Reference
JP2Exporter.h
Go to the documentation of this file.
1 #ifndef JP2Exporter_h
2 #define JP2Exporter_h
3 
27 #include "StreamExporter.h"
28 
29 namespace Isis {
30  class JP2Encoder;
31 
50  class JP2Exporter : public StreamExporter {
51  public:
52  JP2Exporter();
53  virtual ~JP2Exporter();
54 
55  virtual void write(FileName outputName, int quality=100,
56  QString compression="none");
57 
58  static bool canWriteFormat(QString format);
59 
60  protected:
61  virtual void createBuffer();
62 
63  virtual void setBuffer(int s, int b, int dn) const;
64  virtual void writeLine(int l) const;
65 
66  private:
69 
71  char **m_buffer;
72  };
73 };
74 
75 
76 #endif
File name manipulation and expansion.
Definition: FileName.h:116
char ** m_buffer
Two dimensional array containing all color channels for a line.
Definition: JP2Exporter.h:71
virtual void setBuffer(int s, int b, int dn) const
Set the DN value at the given sample and band of the line buffer.
Definition: JP2Exporter.cpp:79
Exports cubes into JPEG 2000 images.
Definition: JP2Exporter.h:50
JP2Encoder * m_encoder
Object responsible for writing data to the output image.
Definition: JP2Exporter.h:68
virtual void createBuffer()
Creates the buffer to store a chunk of streamed line data with one or more bands. ...
Definition: JP2Exporter.cpp:40
virtual void writeLine(int l) const
Writes a line of buffered data to the output image on disk.
virtual ~JP2Exporter()
Destruct the exporter.
Definition: JP2Exporter.cpp:27
static bool canWriteFormat(QString format)
Returns true if the format is "jp2".
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Exports cubes into a standard format in incremental pieces.
virtual void write(FileName outputName, int quality=100, QString compression="none")
Initialize the encoder, open the output file for writing, then let the base ImageExporter handle the ...
Definition: JP2Exporter.cpp:58
JPEG2000 encoder class.
Definition: JP2Encoder.h:83
JP2Exporter()
Construct the JPEG 2000 exporter.
Definition: JP2Exporter.cpp:16