class P1::ImageSdk::Histogram

Overview

#include <P1ImageHistogram.hpp>

class Histogram
{
public:
    // construction

    Histogram();
    Histogram(HistogramType type, int binSize, int numChannel);

    // methods

    int GetBinSize();
    HistogramType GetType();
    bool IsCumulative();
    const int* GetChannel(int channel);
    const int GetNumChannel();
    int* GetData();
    int GetDataSizeBytes();
};

Detailed Documentation

Methods

int GetBinSize()

Histogram divides data range to series of intervals. Each interval is a bin.

HistogramType GetType()

Return histogram data type.

bool IsCumulative()

Histogram counts value in a bin. Cumulative histogram counts value in a bin plus all smaller value.

const int* GetChannel(int channel)

Data type of the channel is defined by HistogramType.

int* GetData()

Array of integer representing histogram data.

int GetDataSizeBytes()

Size in bytes of the histogram data.