Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
mitk::SimpleImageHistogram Class Reference

#include <mitkSimpleHistogram.h>

Inheritance diagram for mitk::SimpleImageHistogram:
Collaboration diagram for mitk::SimpleImageHistogram:

Public Types

typedef itk::Statistics::Histogram< double > HistogramType
 
typedef itk::Image< short, 3 > CTImage
 
typedef itk::ImageRegionIterator< CTImageCTIteratorType
 
typedef itk::ImageRegionIteratorWithIndex< CTImageCTIteratorIndexType
 
typedef itk::Image< unsigned char, 3 > BinImage
 
typedef itk::ImageRegionIterator< BinImageBinIteratorType
 
typedef itk::ImageRegionIteratorWithIndex< BinImageBinIteratorIndexType
 
typedef unsigned long CountType
 

Public Member Functions

 SimpleImageHistogram ()
 
 ~SimpleImageHistogram ()
 
bool GetValid ()
 
double GetMin () const override
 Returns the minimal value of the histogram. More...
 
double GetMax () const override
 Returns the maximum value of the histogram. More...
 
void ComputeFromBaseData (BaseData *source) override
 Creates a new histogram out the source which must be an image. Method does nothing if the image is invalid, nullptr, etc.. More...
 
float GetRelativeBin (double start, double end) const override
 TODO: (What should this method do?) More...
 

Protected Attributes

HistogramType::ConstPointer histogram
 
bool valid
 
unsigned int nBins
 
double invLogHighest
 

Detailed Description

Definition at line 47 of file mitkSimpleHistogram.h.

Member Typedef Documentation

◆ BinImage

Definition at line 68 of file mitkSimpleHistogram.h.

◆ BinIteratorIndexType

typedef itk::ImageRegionIteratorWithIndex<BinImage> mitk::SimpleImageHistogram::BinIteratorIndexType

Definition at line 70 of file mitkSimpleHistogram.h.

◆ BinIteratorType

typedef itk::ImageRegionIterator<BinImage> mitk::SimpleImageHistogram::BinIteratorType

Definition at line 69 of file mitkSimpleHistogram.h.

◆ CountType

Definition at line 72 of file mitkSimpleHistogram.h.

◆ CTImage

Definition at line 64 of file mitkSimpleHistogram.h.

◆ CTIteratorIndexType

typedef itk::ImageRegionIteratorWithIndex<CTImage> mitk::SimpleImageHistogram::CTIteratorIndexType

Definition at line 66 of file mitkSimpleHistogram.h.

◆ CTIteratorType

typedef itk::ImageRegionIterator<CTImage> mitk::SimpleImageHistogram::CTIteratorType

Definition at line 65 of file mitkSimpleHistogram.h.

◆ HistogramType

typedef itk::Statistics::Histogram<double> mitk::SimpleImageHistogram::HistogramType

Definition at line 50 of file mitkSimpleHistogram.h.

Constructor & Destructor Documentation

◆ SimpleImageHistogram()

mitk::SimpleImageHistogram::SimpleImageHistogram ( )
inline

Definition at line 52 of file mitkSimpleHistogram.h.

◆ ~SimpleImageHistogram()

mitk::SimpleImageHistogram::~SimpleImageHistogram ( )
inline

Definition at line 57 of file mitkSimpleHistogram.h.

Member Function Documentation

◆ ComputeFromBaseData()

void mitk::SimpleImageHistogram::ComputeFromBaseData ( BaseData source)
overridevirtual

Creates a new histogram out the source which must be an image. Method does nothing if the image is invalid, nullptr, etc..

Implements mitk::SimpleHistogram.

◆ GetMax()

double mitk::SimpleImageHistogram::GetMax ( ) const
overridevirtual

Returns the maximum value of the histogram.

Implements mitk::SimpleHistogram.

◆ GetMin()

double mitk::SimpleImageHistogram::GetMin ( ) const
overridevirtual

Returns the minimal value of the histogram.

Implements mitk::SimpleHistogram.

◆ GetRelativeBin()

float mitk::SimpleImageHistogram::GetRelativeBin ( double  start,
double  end 
) const
overridevirtual

TODO: (What should this method do?)

Implements mitk::SimpleHistogram.

◆ GetValid()

bool mitk::SimpleImageHistogram::GetValid ( )
Returns
Returns if the current histogram is valid, false if not.

Member Data Documentation

◆ histogram

HistogramType::ConstPointer mitk::SimpleImageHistogram::histogram
protected

Definition at line 75 of file mitkSimpleHistogram.h.

◆ invLogHighest

double mitk::SimpleImageHistogram::invLogHighest
protected

Definition at line 79 of file mitkSimpleHistogram.h.

◆ nBins

unsigned int mitk::SimpleImageHistogram::nBins
protected

Definition at line 78 of file mitkSimpleHistogram.h.

◆ valid

bool mitk::SimpleImageHistogram::valid
protected

Definition at line 77 of file mitkSimpleHistogram.h.


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