Public Member Functions | Public Attributes | List of all members
crl::multisense::image::Histogram Class Reference

#include <MultiSenseTypes.hh>

Public Member Functions

 Histogram ()
 

Public Attributes

uint32_t bins
 
uint32_t channels
 
std::vector< uint32_t > data
 

Detailed Description

Class which stores a image histogram from a camera image. This is used as an input when querying a image histogram.

Example code to query a image histogram for a left image corresponding to frameId 100

//
// Instantiate a channel connecting to a sensor at the factory default
// IP address
channel = crl::multisense::Channel::Create("10.66.171.21");
channel->setMtu(7200);
//
// Create a histogram instance to store histogram data
uint64_t frameId = 100;
//
// Query the histogram from the image with the frameId == 100.
// Note histograms can only be queried for images whose frameIds are
// less than 20 frameIds away from the most recent received frameId
crl::multisense::Status status = channel->getImageHistogram(frameId, histogram);
//
// Check to see if the histogram query succeeded
throw std::runtime_error("Unable to query image histogram for frameId %d", frameId);
}
//
// Destroy the channel instance

Definition at line 1386 of file MultiSenseTypes.hh.

Constructor & Destructor Documentation

crl::multisense::image::Histogram::Histogram ( )
inline

Default constructor

Definition at line 1392 of file MultiSenseTypes.hh.

Member Data Documentation

uint32_t crl::multisense::image::Histogram::bins

The number of possible pixel values for each color channel

Definition at line 1399 of file MultiSenseTypes.hh.

uint32_t crl::multisense::image::Histogram::channels

The number of color channels in the given histogram. For color images this is 4 corresponding to the GRBG Bayer channels

Definition at line 1394 of file MultiSenseTypes.hh.

std::vector<uint32_t> crl::multisense::image::Histogram::data

The histogram data concatinated serially in GRBG order. The length of data is equal to channels * bins

Definition at line 1402 of file MultiSenseTypes.hh.


The documentation for this class was generated from the following file:


multisense_lib
Author(s):
autogenerated on Sun Mar 14 2021 02:34:50