Isis 3.0 Programmer Reference
Back | Home
BoxcarManager.cpp
Go to the documentation of this file.
1 
24 #include "BoxcarManager.h"
25 
26 using namespace std;
27 namespace Isis {
37  BoxcarManager::BoxcarManager(const Isis::Cube &cube,
38  const int &boxSamples, const int &boxLines) :
39  Isis::BufferManager(cube.sampleCount(), cube.lineCount(),
40  cube.bandCount(), boxSamples, boxLines, 1,
41  cube.pixelType()) {
42 
44  int soff, loff, boff;
45  soff = (int)((boxSamples - 1) / 2) * -1;
46  loff = (int)((boxLines - 1) / 2) * -1;
47  boff = 0;
48  Isis::BufferManager::SetOffsets(soff, loff, boff);
49  }
50 } // end namespace isis
51 
void SetOffsets(const int soff, const int loff, const int boff)
Sets the offset of the buffer.
Manages a Buffer over a cube.
Definition: BufferManager.h:67
void SetIncrements(const int sinc, const int linc, const int binc)
Sets how the shape is incremented through the cube.
IO Handler for Isis Cubes.
Definition: Cube.h:158

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the ISIS Support Center
File Modified: 07/12/2023 23:14:51