Isis Developer Reference
JP2Exporter.h
Go to the documentation of this file.
1 #ifndef JP2Exporter_h
2 #define JP2Exporter_h
3 
9 /* SPDX-License-Identifier: CC0-1.0 */
10 
11 #include "StreamExporter.h"
12 
13 namespace Isis {
14  class JP2Encoder;
15 
34  class JP2Exporter : public StreamExporter {
35  public:
36  JP2Exporter();
37  virtual ~JP2Exporter();
38 
39  virtual void write(FileName outputName, int quality=100,
40  QString compression="none");
41 
42  static bool canWriteFormat(QString format);
43 
44  protected:
45  virtual void createBuffer();
46 
47  virtual void setBuffer(int s, int b, int dn) const;
48  virtual void writeLine(int l) const;
49 
50  private:
52  JP2Encoder *m_encoder;
53 
55  char **m_buffer;
56  };
57 };
58 
59 
60 #endif
Isis::JP2Exporter::JP2Exporter
JP2Exporter()
Construct the JPEG 2000 exporter.
Definition: JP2Exporter.cpp:22
FileName.h
Isis::JP2Exporter::setBuffer
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:85
Isis::JP2Exporter
Exports cubes into JPEG 2000 images.
Definition: JP2Exporter.h:34
Isis::FileName
File name manipulation and expansion.
Definition: FileName.h:100
Isis::JP2Encoder::OpenFile
void OpenFile()
Open the JPEG2000 file and initialize it.
Definition: JP2Encoder.cpp:108
Isis::UnsignedWord
@ UnsignedWord
Definition: PixelType.h:31
Isis::JP2Exporter::createBuffer
virtual void createBuffer()
Creates the buffer to store a chunk of streamed line data with one or more bands.
Definition: JP2Exporter.cpp:46
Isis::JP2Exporter::writeLine
virtual void writeLine(int l) const
Writes a line of buffered data to the output image on disk.
Definition: JP2Exporter.cpp:110
Isis::SignedWord
@ SignedWord
Definition: PixelType.h:32
Isis::toString
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
Definition: IString.cpp:211
IString.h
JP2Exporter.h
Buffer.h
Isis::StreamExporter
Exports cubes into a standard format in incremental pieces.
Definition: StreamExporter.h:34
StreamExporter.h
Isis::ImageExporter::write
virtual void write(FileName outputName, int quality=100, QString compression="none")
Export the Isis cube channels to the given standard image.
Definition: ImageExporter.cpp:101
Isis::FileName::expanded
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
Definition: FileName.cpp:196
Isis::FileName::addExtension
FileName addExtension(const QString &extension) const
Adds a new extension to the file name.
Definition: FileName.cpp:225
_FILEINFO_
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
Isis::JP2Exporter::~JP2Exporter
virtual ~JP2Exporter()
Destruct the exporter.
Definition: JP2Exporter.cpp:33
Isis::ImageExporter::extension
QString extension() const
Gets the extension for the output image.
Definition: ImageExporter.cpp:208
Isis::JP2Encoder
JPEG2000 encoder class.
Definition: JP2Encoder.h:67
Isis::IException
Isis exception class.
Definition: IException.h:91
JP2Encoder.h
Isis::PixelType
PixelType
Enumerations for Isis Pixel Types.
Definition: PixelType.h:27
IException.h
Isis::IException::Programmer
@ Programmer
This error is for when a programmer made an API call that was illegal.
Definition: IException.h:146
Isis::ImageExporter::lines
int lines() const
Number of lines (rows) in the output image.
Definition: ImageExporter.cpp:128
Isis::JP2Encoder::Write
void Write(unsigned char **inbuf)
Write 8-bit data to JP2 file.
Definition: JP2Encoder.cpp:260
Isis::ImageExporter::bands
int bands() const
Number of bands (channels) in the output image.
Definition: ImageExporter.cpp:138
Isis::JP2Exporter::canWriteFormat
static bool canWriteFormat(QString format)
Returns true if the format is "jp2".
Definition: JP2Exporter.cpp:126
Isis::ImageExporter::pixelType
PixelType pixelType() const
Returns the pixel type.
Definition: ImageExporter.cpp:307
Isis::JP2Exporter::write
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:64
Isis::ImageExporter::samples
int samples() const
Number of samples (columns) in the output image.
Definition: ImageExporter.cpp:118
Isis::UnsignedByte
@ UnsignedByte
Definition: PixelType.h:29
Isis::ImageExporter::setExtension
void setExtension(QString extension)
Sets the extension for the output image and generates the extension for the world file from it.
Definition: ImageExporter.cpp:193
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16