8#include "ProcessBySpectra.h"
12#include "IException.h"
14#include "ProcessByBrick.h"
42 const int requirements) {
44 Isis::SpatialMatch | requirements);
62 const int requirements) {
64 Isis::SpatialMatch | requirements);
108 SetBricks(InputOutput);
126 std::vector<Isis::Buffer *> &out)) {
129 SetBricks(InputOutputList);
145 string m =
"The specified spectra type is invalid";
152 void ProcessBySpectra::SetBricks(IOCubes cn){
203 case InputOutputList:
206 for(
unsigned int i = 0; i <
InputCubes.size(); i++) {
209 for(
unsigned int i = 0; i <
OutputCubes.size(); i++) {
214 for(
unsigned int i = 0; i <
InputCubes.size(); i++) {
218 for(
unsigned int i = 0; i <
OutputCubes.size(); i++) {
224 for(
unsigned int i = 0; i <
InputCubes.size(); i++) {
228 for(
unsigned int i = 0; i <
OutputCubes.size(); i++) {
Buffer for reading and writing cube data.
IO Handler for Isis Cubes.
@ Programmer
This error is for when a programmer made an API call that was illegal.
void SetOutputBrickSize(int ns, int nl, int nb)
Sets the size of all output bricks.
void VerifyCubes(IOCubes cn)
Verifies the dimensions of the input/output cubes.
void SetInputBrickSize(int ns, int nl, int nb)
Sets the size of all input bricks.
virtual void StartProcess(void funct(Buffer &in))
Starts the systematic processing of the input cube by moving an arbitrarily-shaped brick through the ...
Cube * SetInputCube(const QString ¶meter, int requirements=0)
Opens an input cube specified by the user and verifies requirements are met.
void SetBrickSize(int ns, int nl, int nb)
Sets the input and output bricks sizes to the given number of samples, lines, and bands.
static const int PerPixel
PerPixel spectra type (equal to 0)
static const int BySample
BySample spectra type (equal to 2)
Isis::Cube * SetInputCube(const QString ¶meter, const int requirements=0)
Opens an input cube specified by the user and verifies requirements are met.
static const int ByLine
ByLine spectra type (equal to 1)
void StartProcess(void funct(Isis::Buffer &in))
This method invokes the process by spectra operation over a single input or output cube.
void SetType(const int type)
Sets the spectra type to one of the following:
int p_spectraType
Spectra type: valid values are 0 (PerPixel), 1 (ByLine), or 2 (BySample)
int Type()
Returns the spectra type:
std::vector< Isis::Cube * > InputCubes
A vector of pointers to opened Cube objects.
std::vector< Isis::Cube * > OutputCubes
A vector of pointers to allocated Cube objects.
This is free and unencumbered software released into the public domain.
Namespace for the standard library.