|
Isis 3.0 Object Programmers' Reference |
Home |
00001 00024 #include "BoxcarManager.h" 00025 00026 using namespace std; 00027 namespace Isis { 00037 BoxcarManager::BoxcarManager(const Isis::Cube &cube, 00038 const int &boxSamples, const int &boxLines) : 00039 Isis::BufferManager(cube.Samples(),cube.Lines(),cube.Bands(), 00040 boxSamples,boxLines,1,cube.PixelType()) { 00041 00042 Isis::BufferManager::SetIncrements (1,1,1); 00043 int soff,loff,boff; 00044 soff = (int) ((boxSamples-1) / 2) * -1; 00045 loff = (int) ((boxLines-1) / 2) * -1; 00046 boff = 0; 00047 Isis::BufferManager::SetOffsets (soff,loff,boff); 00048 } 00049 } // end namespace isis 00050