19 #ifndef itkHistogramThresholdCalculator_h
20 #define itkHistogramThresholdCalculator_h
45 template <
typename THistogram,
typename TOutput>
104 itkExceptionMacro(<<
"No output available.");
virtual void SetNumberOfRequiredOutputs(DataObjectPointerArraySizeType _arg)
Light weight base class for most itk classes.
DataObject::Pointer MakeOutput(DataObjectPointerArraySizeType) override
Make a DataObject of the correct type to used as the specified output.
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
ObjectType * GetPointer() const noexcept
DecoratedOutputType * GetOutput()
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
~HistogramThresholdCalculator() override=default
void SetInput(const HistogramType *input)
HistogramThresholdCalculator()
DataObjectPointerArraySizeType GetNumberOfInputs() const
Get the size of the input container.
Decorates any "simple" data type (data types without smart pointers) with a DataObject API...
const OutputType & GetThreshold()
virtual void SetInput(const DataObjectIdentifierType &key, DataObject *input)
Protected method for setting indexed and named inputs.
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)
const HistogramType * GetInput() const
DataObject * GetOutput(const DataObjectIdentifierType &key)