|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Histogram implementation for mitk::Image data. More...
#include <mitkSimpleHistogram.h>


Public Types | |
| typedef itk::Statistics::Histogram< double > | HistogramType |
| The underlying ITK histogram type. More... | |
| typedef itk::Image< short, 3 > | CTImage |
| typedef itk::ImageRegionIterator< CTImage > | CTIteratorType |
| typedef itk::ImageRegionIteratorWithIndex< CTImage > | CTIteratorIndexType |
| typedef itk::Image< unsigned char, 3 > | BinImage |
| typedef itk::ImageRegionIterator< BinImage > | BinIteratorType |
| typedef itk::ImageRegionIteratorWithIndex< BinImage > | BinIteratorIndexType |
| typedef unsigned long | CountType |
Public Member Functions | |
| SimpleImageHistogram () | |
| ~SimpleImageHistogram () | |
| bool | GetValid () |
| Check whether the histogram has been computed successfully. More... | |
| double | GetMin () const override |
| Returns the minimum value of the histogram. More... | |
| double | GetMax () const override |
| Returns the maximum value of the histogram. More... | |
| void | ComputeFromBaseData (BaseData *source) override |
| Compute the histogram from an image. More... | |
| float | GetRelativeBin (double start, double end) const override |
| Get the relative frequency of bins in the range [start, end]. More... | |
Protected Attributes | |
| HistogramType::ConstPointer | histogram |
| The computed ITK histogram. More... | |
| bool | valid |
| Whether the histogram is valid. More... | |
| unsigned int | nBins |
| Number of histogram bins. More... | |
| double | invLogHighest |
| Inverse log of the highest bin frequency (for normalization). More... | |
Histogram implementation for mitk::Image data.
Computes a histogram from an image using ITK's histogram facilities. The histogram is computed with 256 bins by default.
Definition at line 79 of file mitkSimpleHistogram.h.
| typedef itk::Image<unsigned char, 3> mitk::SimpleImageHistogram::BinImage |
Definition at line 104 of file mitkSimpleHistogram.h.
| typedef itk::ImageRegionIteratorWithIndex<BinImage> mitk::SimpleImageHistogram::BinIteratorIndexType |
Definition at line 106 of file mitkSimpleHistogram.h.
| typedef itk::ImageRegionIterator<BinImage> mitk::SimpleImageHistogram::BinIteratorType |
Definition at line 105 of file mitkSimpleHistogram.h.
| typedef unsigned long mitk::SimpleImageHistogram::CountType |
Definition at line 108 of file mitkSimpleHistogram.h.
| typedef itk::Image<short, 3> mitk::SimpleImageHistogram::CTImage |
Definition at line 100 of file mitkSimpleHistogram.h.
| typedef itk::ImageRegionIteratorWithIndex<CTImage> mitk::SimpleImageHistogram::CTIteratorIndexType |
Definition at line 102 of file mitkSimpleHistogram.h.
| typedef itk::ImageRegionIterator<CTImage> mitk::SimpleImageHistogram::CTIteratorType |
Definition at line 101 of file mitkSimpleHistogram.h.
| typedef itk::Statistics::Histogram<double> mitk::SimpleImageHistogram::HistogramType |
The underlying ITK histogram type.
Definition at line 83 of file mitkSimpleHistogram.h.
|
inline |
Definition at line 85 of file mitkSimpleHistogram.h.
|
inline |
Definition at line 90 of file mitkSimpleHistogram.h.
|
overridevirtual |
Compute the histogram from an image.
Does nothing if the source is invalid, nullptr, or not an Image.
| [in] | source | The BaseData (must be a mitk::Image) to compute the histogram from. |
Implements mitk::SimpleHistogram.
|
overridevirtual |
Returns the maximum value of the histogram.
Implements mitk::SimpleHistogram.
|
overridevirtual |
Returns the minimum value of the histogram.
Implements mitk::SimpleHistogram.
|
overridevirtual |
Get the relative frequency of bins in the range [start, end].
| [in] | start | The start of the bin range. |
| [in] | end | The end of the bin range. |
Implements mitk::SimpleHistogram.
| bool mitk::SimpleImageHistogram::GetValid | ( | ) |
Check whether the histogram has been computed successfully.
|
protected |
The computed ITK histogram.
Definition at line 111 of file mitkSimpleHistogram.h.
|
protected |
Inverse log of the highest bin frequency (for normalization).
Definition at line 115 of file mitkSimpleHistogram.h.
|
protected |
Number of histogram bins.
Definition at line 114 of file mitkSimpleHistogram.h.
|
protected |
Whether the histogram is valid.
Definition at line 113 of file mitkSimpleHistogram.h.