Skip to content

itk::MultiplyByConstantImageFilter

Multiply input pixels by a constant. More...

#include <itkMultiplyByConstantImageFilter.h>

Inherits from UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::MultiplyByConstant< TInputImage::PixelType, TConstant, TOutputImage::PixelType > >

Public Types

Name
typedef MultiplyByConstantImageFilter Self
typedef UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::MultiplyByConstant< typename TInputImage::PixelType, TConstant, typename TOutputImage::PixelType > > Superclass
typedef SmartPointer< Self > Pointer
typedef SmartPointer< const Self > ConstPointer

Public Functions

Name
itkNewMacro(Self )
itkTypeMacro(MultiplyByConstantImageFilter , UnaryFunctorImageFilter )
void SetConstant(TConstant ct)
const TConstant & GetConstant() const

Protected Functions

Name
MultiplyByConstantImageFilter()
virtual ~MultiplyByConstantImageFilter()
void PrintSelf(std::ostream & os, Indent indent) const

Detailed Description

template <class TInputImage ,
class TConstant ,
class TOutputImage >
class itk::MultiplyByConstantImageFilter;

Multiply input pixels by a constant.

See: UnaryFunctorImageFilter

Author: Tom Vercauteren, INRIA & Mauna Kea Technologies

This filter is templated over the input image type and the output image type.

This implementation was taken from the Insight Journal paper: http://hdl.handle.net/1926/510

Public Types Documentation

typedef Self

typedef MultiplyByConstantImageFilter itk::MultiplyByConstantImageFilter< TInputImage, TConstant, TOutputImage >::Self;

Standard class typedefs.

typedef Superclass

typedef UnaryFunctorImageFilter< TInputImage,TOutputImage, Functor::MultiplyByConstant< typename TInputImage::PixelType, TConstant, typename TOutputImage::PixelType> > itk::MultiplyByConstantImageFilter< TInputImage, TConstant, TOutputImage >::Superclass;

typedef Pointer

typedef SmartPointer<Self> itk::MultiplyByConstantImageFilter< TInputImage, TConstant, TOutputImage >::Pointer;

typedef ConstPointer

typedef SmartPointer<const Self> itk::MultiplyByConstantImageFilter< TInputImage, TConstant, TOutputImage >::ConstPointer;

Public Functions Documentation

function itkNewMacro

itkNewMacro(
    Self 
)

Method for creation through the object factory.

function itkTypeMacro

itkTypeMacro(
    MultiplyByConstantImageFilter ,
    UnaryFunctorImageFilter 
)

Run-time type information (and related methods).

function SetConstant

inline void SetConstant(
    TConstant ct
)

Set the constant that will be used to multiply all the image pixels

function GetConstant

inline const TConstant & GetConstant() const

Protected Functions Documentation

function MultiplyByConstantImageFilter

inline MultiplyByConstantImageFilter()

function ~MultiplyByConstantImageFilter

inline virtual ~MultiplyByConstantImageFilter()

function PrintSelf

inline void PrintSelf(
    std::ostream & os,
    Indent indent
) const

Updated on 2024-03-17 at 12:58:44 -0600