225 LineBatch() : _lineCount(0), _columnCount(0) {}
240 void setLineCount(uint32_t lineCount) { _lineCount = lineCount; }
241 uint32_t lineCount()
const {
return _lineCount; }
242 uint32_t columnCount()
const {
return _columnCount; }
244 float depthAt(uint32_t row, uint32_t col)
const {
return _depth.
at(row, col); }
245 unsigned char intensityAt(uint32_t row, uint32_t col)
const {
return _intensity.
at(row, col); }
246 unsigned int encoderAt(uint32_t row, uint32_t col)
const {
return _encoder.
at(row, col); }
247 long long frameIdAt(uint32_t row, uint32_t col)
const {
return _frameId.
at(row, col); }
249 void resize(uint32_t width, uint32_t height)
251 _columnCount = width;
253 _depth.
resize(_columnCount, _lineCount);
254 _intensity.
resize(_columnCount, _lineCount);
255 _encoder.
resize(1, _lineCount);
256 _frameId.
resize(1, _lineCount);
265 uint32_t _columnCount;