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 typedef Image (Self::*MemberFunctionType)(
const Image& image1,
const Image& image2 );
123 template <
class TImageType>
Image ExecuteInternal (
const Image& image1,
const Image& image2 );
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.
#define SITKBasicFilters_EXPORT
Self & SetNumberOfMatchPoints(uint32_t NumberOfMatchPoints)
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
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
uint32_t GetNumberOfMatchPoints() const
HistogramMatchingImageFilter Self
uint32_t m_NumberOfHistogramLevels
BasicPixelIDTypeList PixelIDTypeList
Self & SetThresholdAtMeanIntensity(bool ThresholdAtMeanIntensity)
Self & ThresholdAtMeanIntensityOff()
Self & ThresholdAtMeanIntensityOn()
std::string GetName() const
The main Image class for SimpleITK.
bool m_ThresholdAtMeanIntensity
bool GetThresholdAtMeanIntensity() const
Normalize the grayscale values between two images by histogram matching.
uint32_t GetNumberOfHistogramLevels() const
uint32_t m_NumberOfMatchPoints
The base interface for SimpleITK filters that take one input image.
Self & SetNumberOfHistogramLevels(uint32_t NumberOfHistogramLevels)