Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

Isis 3 Programmer Reference
BoxcarManager.cpp
1
5
6/* SPDX-License-Identifier: CC0-1.0 */
7
8#include "BoxcarManager.h"
9
10using namespace std;
11namespace Isis {
22 const int &boxSamples, const int &boxLines) :
23 Isis::BufferManager(cube.sampleCount(), cube.lineCount(),
24 cube.bandCount(), boxSamples, boxLines, 1,
25 cube.pixelType()) {
26
28 int soff, loff, boff;
29 soff = (int)((boxSamples - 1) / 2) * -1;
30 loff = (int)((boxLines - 1) / 2) * -1;
31 boff = 0;
32 Isis::BufferManager::SetOffsets(soff, loff, boff);
33 }
34} // end namespace isis
35
BoxcarManager(const Isis::Cube &cube, const int &boxSamples, const int &boxLines)
Constructs a BoxcarManager object.
void SetOffsets(const int soff, const int loff, const int boff)
Sets the offset of the buffer.
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:168
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16
Namespace for the standard library.