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