40 void ProcessByBoxcar::SetBoxcarSize(
const int ns,
const int nl) {
58 void ProcessByBoxcar::StartProcess(
void funct(
Isis::Buffer &in,
double &out)) {
60 if(InputCubes.size() != 1) {
61 string m =
"You must specify exactly one input cube";
64 else if(OutputCubes.size() != 1) {
65 string m =
"You must specify exactly one output cube";
70 if(InputCubes[0]->lineCount() != OutputCubes[0]->lineCount()) {
71 string m =
"The number of lines in the input and output cubes ";
77 if(InputCubes[0]->sampleCount() != OutputCubes[0]->sampleCount()) {
78 string m =
"The number of samples in the input and output cubes ";
84 if(InputCubes[0]->bandCount() != OutputCubes[0]->bandCount()) {
85 string m =
"The number of bands in the input and output cubes ";
92 string m =
"Use the SetBoxcarSize method to set the boxcar size";
105 p_progress->SetMaximumSteps(InputCubes[0]->lineCount()*InputCubes[0]->bandCount());
106 p_progress->CheckStatus();
110 for(
int i = 0; i < line.
size(); i++) {
111 InputCubes[0]->read(box);
116 OutputCubes[0]->write(line);
117 p_progress->CheckStatus();
128 void ProcessByBoxcar::EndProcess() {
130 p_boxsizeSet =
false;
139 void ProcessByBoxcar::Finalize() {
141 p_boxsizeSet =
false;
Buffer for reading and writing cube data.
Namespace for the standard library.
Buffer manager, for moving through a cube by boxcar.
virtual void EndProcess()
End the processing sequence and cleans up by closing cubes, freeing memory, etc.
int size() const
Returns the total number of pixels in the shape buffer.
bool begin()
Moves the shape buffer to the first position.
This algorithm is designed for applications that jump around between a couple of spots in the cube wi...
Buffer manager, for moving through a cube in lines.
#define _FILEINFO_
Macro for the filename and line number.
bool next()
Moves the shape buffer to the next position.
bool end() const
Returns true if the shape buffer has accessed the end of the cube.
Namespace for ISIS/Bullet specific routines.
virtual void Finalize()
Cleans up by closing cubes and freeing memory for owned cubes.