18 #ifndef itkSampleToHistogramFilter_h 19 #define itkSampleToHistogramFilter_h 54 template<
typename TSample,
typename THistogram >
85 virtual void SetInput(
const SampleType *sample);
87 virtual const SampleType *
GetInput()
const;
114 itkSetGetDecoratedInputMacro(HistogramSize, HistogramSizeType);
119 itkSetGetDecoratedInputMacro(MarginalScale, HistogramMeasurementType);
124 itkSetGetDecoratedInputMacro(HistogramBinMinimum, HistogramMeasurementVectorType);
125 itkSetGetDecoratedInputMacro(HistogramBinMaximum, HistogramMeasurementVectorType);
132 itkSetGetDecoratedInputMacro(AutoMinimumMaximum,
bool);
142 virtual void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
152 virtual DataObjectPointer
MakeOutput(DataObjectPointerArraySizeType idx) ITK_OVERRIDE;
160 void operator=(const Self &) ITK_DELETE_FUNCTION;
163 HistogramMeasurementType
SafeAssign(MeasurementType from)
const 167 MeasurementType fromMax =
static_cast<MeasurementType
> 169 MeasurementType fromMin =
static_cast<MeasurementType
> 177 else if (from <= fromMin)
182 return static_cast<HistogramMeasurementType
>(from);
189 #ifndef ITK_MANUAL_INSTANTIATION 190 #include "itkSampleToHistogramFilter.hxx" virtual const SampleType * GetInput() const
SimpleDataObjectDecorator< HistogramSizeType > InputHistogramSizeObjectType
SmartPointer< Self > Pointer
SimpleDataObjectDecorator< HistogramMeasurementVectorType > InputHistogramMeasurementVectorObjectType
virtual DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx) override
SimpleDataObjectDecorator< bool > InputBooleanObjectType
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
DataObject::Pointer DataObjectPointer
SampleType::MeasurementVectorType MeasurementVectorType
virtual ~SampleToHistogramFilter()
SampleToHistogramFilter()
HistogramType::MeasurementType HistogramMeasurementType
MeasurementVectorType::ValueType MeasurementType
static ITK_CONSTEXPR_FUNC T max(const T &)
const HistogramType * GetOutput() const
SampleToHistogramFilter Self
Decorates any "simple" data type (data types without smart pointers) with a DataObject API...
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
virtual void SetInput(const DataObjectIdentifierType &key, DataObject *input)
Protected method for setting indexed and named inputs.
SimpleDataObjectDecorator< HistogramMeasurementType > InputHistogramMeasurementObjectType
Standard exception handling object.
virtual DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx)
Make a DataObject of the correct type to used as the specified output.
HistogramType::SizeType HistogramSizeType
HistogramType::MeasurementVectorType HistogramMeasurementVectorType
static ITK_CONSTEXPR_FUNC T min(const T &)
virtual void PrintSelf(std::ostream &os, Indent indent) const override
virtual void GenerateData() override
SmartPointer< const Self > ConstPointer
Computes the Histogram corresponding to a Sample.
HistogramMeasurementType SafeAssign(MeasurementType from) const
Control indentation during Print() invocation.
Define additional traits for native types such as int or float.
ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
virtual void GraftOutput(DataObject *output)
Base class for all data objects in ITK.
virtual void SetInput(const SampleType *sample)
Superclass::DataObjectPointer DataObjectPointer