Medical Imaging Interaction Toolkit  2016.11.0
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, NULL, etc.. More...
 
float GetRelativeBin (double start, double end) const override
 TODO: (What should this method do?) More...
 

Protected Attributes

CountTypehistogram
 
bool valid
 
int first
 
int last
 
int min
 
int max
 
CountType highest
 
double invLogHighest
 

Detailed Description

Definition at line 51 of file mitkSimpleHistogram.h.

Member Typedef Documentation

Definition at line 75 of file mitkSimpleHistogram.h.

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

Definition at line 77 of file mitkSimpleHistogram.h.

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

Definition at line 76 of file mitkSimpleHistogram.h.

Definition at line 79 of file mitkSimpleHistogram.h.

Definition at line 71 of file mitkSimpleHistogram.h.

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

Definition at line 73 of file mitkSimpleHistogram.h.

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

Definition at line 72 of file mitkSimpleHistogram.h.

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

Definition at line 54 of file mitkSimpleHistogram.h.

Constructor & Destructor Documentation

mitk::SimpleImageHistogram::SimpleImageHistogram ( )
inline

Definition at line 56 of file mitkSimpleHistogram.h.

mitk::SimpleImageHistogram::~SimpleImageHistogram ( )
inline

Definition at line 62 of file mitkSimpleHistogram.h.

Member Function Documentation

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, NULL, etc..

Implements mitk::SimpleHistogram.

Definition at line 25 of file mitkSimpleHistogram.cpp.

References first, mitk::PixelType::GetComponentType(), mitk::ImageAccessorBase::GetData(), mitk::Image::GetDimension(), mitk::Image::GetPixelType(), highest, histogram, invLogHighest, mitk::BaseData::IsEmpty(), last, max, min, MITK_INFO, MITK_WARN, and valid.

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

Returns the maximum value of the histogram.

Implements mitk::SimpleHistogram.

Definition at line 102 of file mitkSimpleHistogram.h.

References max().

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

Returns the minimal value of the histogram.

Implements mitk::SimpleHistogram.

Definition at line 94 of file mitkSimpleHistogram.h.

References min().

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

TODO: (What should this method do?)

Implements mitk::SimpleHistogram.

Definition at line 198 of file mitkSimpleHistogram.cpp.

References first, histogram, invLogHighest, and valid.

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

Definition at line 197 of file mitkSimpleHistogram.cpp.

References valid.

Member Data Documentation

int mitk::SimpleImageHistogram::first
protected

Definition at line 86 of file mitkSimpleHistogram.h.

Referenced by ComputeFromBaseData(), and GetRelativeBin().

CountType mitk::SimpleImageHistogram::highest
protected

Definition at line 90 of file mitkSimpleHistogram.h.

Referenced by ComputeFromBaseData().

CountType* mitk::SimpleImageHistogram::histogram
protected

Definition at line 82 of file mitkSimpleHistogram.h.

Referenced by ComputeFromBaseData(), and GetRelativeBin().

double mitk::SimpleImageHistogram::invLogHighest
protected

Definition at line 91 of file mitkSimpleHistogram.h.

Referenced by ComputeFromBaseData(), and GetRelativeBin().

int mitk::SimpleImageHistogram::last
protected

Definition at line 87 of file mitkSimpleHistogram.h.

Referenced by ComputeFromBaseData().

int mitk::SimpleImageHistogram::max
protected

Definition at line 89 of file mitkSimpleHistogram.h.

Referenced by ComputeFromBaseData().

int mitk::SimpleImageHistogram::min
protected

Definition at line 88 of file mitkSimpleHistogram.h.

Referenced by ComputeFromBaseData().

bool mitk::SimpleImageHistogram::valid
protected

Definition at line 84 of file mitkSimpleHistogram.h.

Referenced by ComputeFromBaseData(), GetRelativeBin(), and GetValid().


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