7#include "StreamExporter.h"
10#include "ExportDescription.h"
11#include "ProcessExport.h"
88 int lineIndex = grayLine.
Line() - 1;
89 for (
int sampleIndex = 0; sampleIndex < grayLine.SampleDimension(); sampleIndex++) {
105 Buffer &greenLine = *in[1];
106 Buffer &blueLine = *in[2];
108 for (
int i = 0; i < redLine.SampleDimension(); i++) {
129 Buffer &greenLine = *in[1];
130 Buffer &blueLine = *in[2];
131 Buffer &alphaLine = *in[3];
133 for (
int i = 0; i < redLine.SampleDimension(); i++) {
Buffer for reading and writing cube data.
int Line(const int index=0) const
Returns the line position associated with a shape buffer index.
Describes how a series of cubes should be exported.
Export Isis cubes into standard formats.
virtual void initialize(ExportDescription &desc)=0
Generic initialization with the export description.
virtual int outputPixelValue(double dn) const
Return the output clamped integer pixel value from the input double-precision DN.
virtual void writeLine(int l) const =0
Pure virtual method for writing a line of buffered data to the output image on disk.
virtual void writeRgba(vector< Buffer * > &in) const
Write a line of RGBA data to the output image.
virtual void setGrayscale(ExportDescription &desc)
Generic initialization with the export description.
virtual ~StreamExporter()
Destruct the exporter.
virtual void setRgba(ExportDescription &desc)
Generic initialization with the export description.
StreamExporter()
Construct the stream exporter.
virtual void writeRgb(vector< Buffer * > &in) const
Write a line of RGB data to the output image.
virtual void setBuffer(int s, int b, int dn) const =0
Pure virtual method for setting a particular index of the line buffer to the given DN.
virtual void initialize(ExportDescription &desc)
Generic initialization with the export description.
virtual void setRgb(ExportDescription &desc)
Generic initialization with the export description.
virtual void writeGrayscale(vector< Buffer * > &in) const
Write a line of grayscale data to the output image.
virtual void createBuffer()=0
Pure virtual method for creating the buffer to store a chunk of streamed line data with one or more b...
This is free and unencumbered software released into the public domain.
Namespace for the standard library.