Go to the documentation of this file.
18 #ifndef sitkHistogramMatchingImageFilter_h
19 #define sitkHistogramMatchingImageFilter_h
93 SITK_RETURN_SELF_TYPE_HEADER
SetThresholdAtMeanIntensity (
bool ThresholdAtMeanIntensity ) { this->m_ThresholdAtMeanIntensity = ThresholdAtMeanIntensity;
return *
this; }
104 std::string
GetName()
const {
return std::string (
"HistogramMatchingImageFilter"); }
107 std::string ToString()
const;
115 Image Execute (
const Image& image1,
const Image& image2,
uint32_t numberOfHistogramLevels,
uint32_t numberOfMatchPoints,
bool thresholdAtMeanIntensity );
122 template <
class TImageType>
Image ExecuteInternal (
const Image& image1,
const Image& image2 );
The main Image class for SimpleITK.
Image HistogramMatching(const Image &image1, const Image &image2, uint32_t numberOfHistogramLevels=256u, uint32_t numberOfMatchPoints=1u, bool thresholdAtMeanIntensity=true)
Normalize the grayscale values between two images by histogram matching.
Self & SetNumberOfMatchPoints(uint32_t NumberOfMatchPoints)
uint32_t m_NumberOfHistogramLevels
std::string GetName() const
bool m_ThresholdAtMeanIntensity
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t >, BasicPixelID< float >, BasicPixelID< double > >::Type BasicPixelIDTypeList
bool GetThresholdAtMeanIntensity() const
Self & ThresholdAtMeanIntensityOff()
Self & SetThresholdAtMeanIntensity(bool ThresholdAtMeanIntensity)
Self & ThresholdAtMeanIntensityOn()
uint32_t m_NumberOfMatchPoints
#define SITKBasicFilters_EXPORT
Normalize the grayscale values between two images by histogram matching.
uint32_t GetNumberOfMatchPoints() const
Self & SetNumberOfHistogramLevels(uint32_t NumberOfHistogramLevels)
The base interface for SimpleITK filters that take one input image.
Base class for SimpleITK classes based on ProcessObject.
HistogramMatchingImageFilter Self
uint32_t GetNumberOfHistogramLevels() const
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
BasicPixelIDTypeList PixelIDTypeList