Isis 3.0 Programmer Reference
Back
|
Home
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
43
Isis::BufferManager::SetIncrements
(1, 1, 1);
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
Isis::BufferManager::SetOffsets
void SetOffsets(const int soff, const int loff, const int boff)
Sets the offset of the buffer.
Definition:
BufferManager.cpp:176
Isis::BufferManager
Manages a Buffer over a cube.
Definition:
BufferManager.h:67
BoxcarManager.h
Isis::BufferManager::SetIncrements
void SetIncrements(const int sinc, const int linc, const int binc)
Sets how the shape is incremented through the cube.
Definition:
BufferManager.cpp:137
Isis::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