Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitk::SimpleHistogram Class Referenceabstract

Abstract base class for simple histograms with double values. More...

#include <mitkSimpleHistogram.h>

Inheritance diagram for mitk::SimpleHistogram:

Public Member Functions

virtual double GetMin () const =0
 Returns the minimum value of the histogram. More...
 
virtual double GetMax () const =0
 Returns the maximum value of the histogram. More...
 
virtual void ComputeFromBaseData (BaseData *source)=0
 Compute the histogram from the given BaseData source. More...
 
virtual float GetRelativeBin (double start, double end) const =0
 Get the relative frequency of bins in the range [start, end]. More...
 

Detailed Description

Abstract base class for simple histograms with double values.

Provides the interface for computing histograms from BaseData objects and querying minimum/maximum values and relative bin frequencies. Derived classes can be cached using SimpleHistogramCache.

See also
SimpleImageHistogram
SimpleHistogramCache

Definition at line 40 of file mitkSimpleHistogram.h.

Member Function Documentation

◆ ComputeFromBaseData()

virtual void mitk::SimpleHistogram::ComputeFromBaseData ( BaseData *  source)
pure virtual

Compute the histogram from the given BaseData source.

Parameters
[in]sourceThe BaseData object to compute the histogram from.

Implemented in mitk::SimpleImageHistogram.

◆ GetMax()

virtual double mitk::SimpleHistogram::GetMax ( ) const
pure virtual

Returns the maximum value of the histogram.

Returns
The maximum histogram value.

Implemented in mitk::SimpleImageHistogram.

Referenced by QmitkTransferFunctionCanvas::ValidateCoord().

◆ GetMin()

virtual double mitk::SimpleHistogram::GetMin ( ) const
pure virtual

Returns the minimum value of the histogram.

Returns
The minimum histogram value.

Implemented in mitk::SimpleImageHistogram.

Referenced by QmitkTransferFunctionCanvas::ValidateCoord().

◆ GetRelativeBin()

virtual float mitk::SimpleHistogram::GetRelativeBin ( double  start,
double  end 
) const
pure virtual

Get the relative frequency of bins in the range [start, end].

Parameters
[in]startThe start of the bin range.
[in]endThe end of the bin range.
Returns
The relative frequency as a float in [0, 1].

Implemented in mitk::SimpleImageHistogram.


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