19 #ifndef itkHistogramThresholdCalculator_h
20 #define itkHistogramThresholdCalculator_h
45 template <
typename THistogram,
typename TOutput>
102 itkExceptionMacro(<<
"No output available.");
virtual void SetNumberOfRequiredOutputs(DataObjectPointerArraySizeType _arg)
Light weight base class for most itk classes.
DecoratedOutputType * GetOutput()
SmartPointer< Self > Pointer
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
ObjectType * GetPointer() const
virtual DataObject::Pointer MakeOutput(DataObjectPointerArraySizeType) override
Make a DataObject of the correct type to used as the specified output.
void SetInput(const HistogramType *input)
HistogramThresholdCalculator()
DataObjectPointerArraySizeType GetNumberOfInputs() const
Get the size of the input container.
SmartPointer< const Self > ConstPointer
virtual ~HistogramThresholdCalculator() override
Decorates any "simple" data type (data types without smart pointers) with a DataObject API...
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
const OutputType & GetThreshold()
virtual void SetInput(const DataObjectIdentifierType &key, DataObject *input)
Protected method for setting indexed and named inputs.
SimpleDataObjectDecorator< OutputType > DecoratedOutputType
virtual DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx)
Make a DataObject of the correct type to used as the specified output.
DataObjectPointerArraySizeType GetNumberOfOutputs() const
Get the size of the output container.
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
virtual void SetNthInput(DataObjectPointerArraySizeType num, DataObject *input)
Base class to compute a threshold value based on the histogram of an image.
virtual void SetNthOutput(DataObjectPointerArraySizeType num, DataObject *output)
HistogramThresholdCalculator Self
const HistogramType * GetInput() const
DataObject * GetOutput(const DataObjectIdentifierType &key)