File failed to load: https://isis.astrogeology.usgs.gov/6.0.0/Object/assets/jax/output/NativeMML/config.js
 |
Isis 3 Programmer Reference
|
7 #include "JP2Exporter.h"
11 #include "IException.h"
13 #include "JP2Encoder.h"
48 int mult = (type == Isis::UnsignedByte) ? 1 : 2;
51 for (
int i = 0; i <
bands(); i++)
65 QString compression) {
89 ((
unsigned char *)
m_buffer[b])[s] = (
unsigned char) dn;
92 ((
short int *)
m_buffer[b])[s] = (
short int) dn;
95 ((
short unsigned int *)
m_buffer[b])[s] = (
short unsigned int) dn;
99 "Invalid pixel type for data [" +
toString(type) +
"]",
112 if (type == Isis::UnsignedByte)
127 return format ==
"jp2";
JP2Exporter()
Construct the JPEG 2000 exporter.
char ** m_buffer
Two dimensional array containing all color channels for a line.
virtual void setBuffer(int s, int b, int dn) const
Set the DN value at the given sample and band of the line buffer.
File name manipulation and expansion.
void OpenFile()
Open the JPEG2000 file and initialize it.
JP2Encoder * m_encoder
Object responsible for writing data to the output image.
virtual void createBuffer()
Creates the buffer to store a chunk of streamed line data with one or more bands.
virtual void writeLine(int l) const
Writes a line of buffered data to the output image on disk.
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
Exports cubes into a standard format in incremental pieces.
virtual void write(FileName outputName, int quality=100, QString compression="none")
Export the Isis cube channels to the given standard image.
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
FileName addExtension(const QString &extension) const
Adds a new extension to the file name.
virtual ~JP2Exporter()
Destruct the exporter.
QString extension() const
Gets the extension for the output image.
PixelType
Enumerations for Isis Pixel Types.
@ Programmer
This error is for when a programmer made an API call that was illegal.
int lines() const
Number of lines (rows) in the output image.
void Write(unsigned char **inbuf)
Write 8-bit data to JP2 file.
int bands() const
Number of bands (channels) in the output image.
static bool canWriteFormat(QString format)
Returns true if the format is "jp2".
PixelType pixelType() const
Returns the pixel type.
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 ...
int samples() const
Number of samples (columns) in the output image.
void setExtension(QString extension)
Sets the extension for the output image and generates the extension for the world file from it.
This is free and unencumbered software released into the public domain.