18#ifndef itkAttenuationImageFilter_h
19#define itkAttenuationImageFilter_h
71template <
typename TInputImage,
72 typename TOutputImage = itk::Image<float, TInputImage::ImageDimension>,
73 typename TMaskImage = itk::Image<unsigned char, TInputImage::ImageDimension>>
123 virtual MaskImageType *
139 itkExceptionMacro(
"This filter has only two outputs");
163 itkGetConstMacro(ComputationMode,
unsigned int);
177 itkGetConstMacro(FixedEstimationDepth,
unsigned int);
188 itkGetConstMacro(Direction,
unsigned int);
192 itkGetConstMacro(SamplingFrequencyMHz,
float);
196 itkGetConstMacro(FrequencyBandStartMHz,
float);
200 itkGetConstMacro(FrequencyBandEndMHz,
float);
208 itkGetConstMacro(ConsiderNegativeAttenuations,
bool);
216 itkGetConstMacro(PadUpperBounds,
unsigned int);
219 itkGetConstMacro(PadLowerBounds,
unsigned int);
329#ifndef ITK_MANUAL_INSTANTIATION
330# include "itkAttenuationImageFilter.hxx"
std::vector< float > m_DistanceWeights
TOutputImage OutputImageType
void BeforeThreadedGenerateData() override
TOutputImage * GetOutput()
typename TInputImage::IndexType InputIndexType
void SetPadLowerBoundsMM(const float distanceMM)
MaskPixelType m_LabelValue
virtual void SetDirection(unsigned int _arg)
float m_SamplingFrequencyMHz
const ImageRegionSplitterBase * GetImageRegionSplitter() const override
Get the image splitter to split the image for multi-threading.
typename TOutputImage::Pointer OutputImagePointer
typename TInputImage::Pointer InputImagePointer
typename TMaskImage::PixelType MaskPixelType
bool ThreadedIsIncluded(InputIndexType index) const
typename TOutputImage::PixelType OutputPixelType
SmartPointer< Self > Pointer
void SetPadUpperBoundsMM(const float distanceMM)
unsigned int m_EndComponent
typename TInputImage::PixelType InputPixelType
virtual const MaskImageType * GetOutputMaskImage() const
DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx) override
Make a DataObject of the correct type to used as the specified output.
float TransformPhysicalToPixelScanLineDistance(float distanceMM) const
void SetScanDirection(unsigned int direction)
float GetPadLowerBoundsMM() const
AttenuationImageFilter Self
typename TMaskImage::Pointer MaskImagePointer
static constexpr unsigned int ImageDimension
void SetFixedEstimationDepthMM(const float distanceMM)
DataObject::Pointer DataObjectPointer
itkGetInputMacro(InputMaskImage, TMaskImage)
TInputImage InputImageType
float TransformPixelToPhysicalScanLineDistance(unsigned int distance) const
void ThreadedGenerateData(const OutputRegionType ®ionForThread, ThreadIdType) override
bool m_ConsiderNegativeAttenuations
virtual unsigned int GetDirection() const
unsigned int GetScanDirection()
ImageRegionSplitterDirection::Pointer m_RegionSplitter
void PrintSelf(std::ostream &os, Indent indent) const override
~AttenuationImageFilter() override=default
typename TOutputImage::RegionType OutputRegionType
unsigned int m_ConsideredComponents
typename TInputImage::RegionType InputRegionType
void VerifyPreconditions() const override
Verifies that the process object has been configured correctly, that all required inputs are set,...
ImageToImageFilter< TInputImage, TOutputImage > Superclass
unsigned int m_LastScanlineIndex
float GetPadUpperBoundsMM() const
itkSetInputMacro(InputMaskImage, TMaskImage)
unsigned int m_FixedEstimationDepth
unsigned int m_PadUpperBounds
unsigned int m_PadLowerBounds
typename TInputImage::SizeType InputSizeType
OutputPixelType ComputeAttenuation(const InputIndexType &end, const InputIndexType &start) const
unsigned int m_ComputationMode
unsigned int m_StartComponent
float GetFixedEstimationDepthMM() const
float m_FrequencyBandStartMHz
const MaskImageType * m_ThreadedInputMaskImage
virtual MaskImageType * GetOutputMaskImage()
MaskImageType * GetOutput(unsigned int idx)
float m_FrequencyBandEndMHz
SmartPointer< const Self > ConstPointer
ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
SmartPointer< Self > Pointer
Divide an image region into several pieces.
SmartPointer< Self > Pointer
OutputImageType * GetOutput()
ProcessObject::DataObjectPointer MakeOutput(ProcessObject::DataObjectPointerArraySizeType idx) override
Control indentation during Print() invocation.
DataObject * GetOutput(const DataObjectIdentifierType &key)
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned int ThreadIdType
#define itkSetMacro(name, type)