ITK  5.4.0
Insight Toolkit
Public Types | Public Member Functions | Private Attributes | List of all members
itk::Accessor::AddPixelAccessor< TPixel > Class Template Reference

#include <itkAddPixelAccessor.h>

Detailed Description

template<typename TPixel>
class itk::Accessor::AddPixelAccessor< TPixel >

Simulates the effect of adding a constant value to all pixels.

This class is intended to be used as parameter of an ImageAdaptor to make an image appear as having pixels with intensity values increased by a constant amount.

See also
ImageAdaptor
ITK Sphinx Examples:
Examples
SphinxExamples/src/Core/ImageAdaptors/AddConstantToPixelsWithoutDuplicatingImage/Code.cxx.

Definition at line 45 of file itkAddPixelAccessor.h.

+ Collaboration diagram for itk::Accessor::AddPixelAccessor< TPixel >:

Public Types

using ExternalType = TPixel
 
using InternalType = TPixel
 
using Self = AddPixelAccessor
 

Public Member Functions

ExternalType Get (const InternalType &input) const
 
TPixel GetValue () const
 
Selfoperator= (const Self &apa)
 
void Set (InternalType &output, const ExternalType &input) const
 
void SetValue (const TPixel &newvalue)
 
 AddPixelAccessor ()
 
 AddPixelAccessor (const Self &apa)
 

Private Attributes

TPixel m_Value
 

Member Typedef Documentation

◆ ExternalType

template<typename TPixel>
using itk::Accessor::AddPixelAccessor< TPixel >::ExternalType = TPixel

External type alias. It defines the external aspect that this class will exhibit

Definition at line 53 of file itkAddPixelAccessor.h.

◆ InternalType

template<typename TPixel>
using itk::Accessor::AddPixelAccessor< TPixel >::InternalType = TPixel

Internal type alias. It defines the internal real representation of data

Definition at line 57 of file itkAddPixelAccessor.h.

◆ Self

template<typename TPixel>
using itk::Accessor::AddPixelAccessor< TPixel >::Self = AddPixelAccessor

Standard class type aliases.

Definition at line 49 of file itkAddPixelAccessor.h.

Constructor & Destructor Documentation

◆ AddPixelAccessor() [1/2]

template<typename TPixel>
itk::Accessor::AddPixelAccessor< TPixel >::AddPixelAccessor ( )
inline

Constructors

Definition at line 96 of file itkAddPixelAccessor.h.

◆ AddPixelAccessor() [2/2]

template<typename TPixel>
itk::Accessor::AddPixelAccessor< TPixel >::AddPixelAccessor ( const Self apa)
inline

Constructors

Definition at line 99 of file itkAddPixelAccessor.h.

Member Function Documentation

◆ Get()

template<typename TPixel>
ExternalType itk::Accessor::AddPixelAccessor< TPixel >::Get ( const InternalType input) const
inline

Read access to the pixel

Definition at line 68 of file itkAddPixelAccessor.h.

◆ GetValue()

template<typename TPixel>
TPixel itk::Accessor::AddPixelAccessor< TPixel >::GetValue ( ) const
inline

Get the value to be added to pixels

Definition at line 82 of file itkAddPixelAccessor.h.

◆ operator=()

template<typename TPixel>
Self& itk::Accessor::AddPixelAccessor< TPixel >::operator= ( const Self apa)
inline

Assignment Operator

Definition at line 89 of file itkAddPixelAccessor.h.

◆ Set()

template<typename TPixel>
void itk::Accessor::AddPixelAccessor< TPixel >::Set ( InternalType output,
const ExternalType input 
) const
inline

Write access to the pixel

Definition at line 61 of file itkAddPixelAccessor.h.

◆ SetValue()

template<typename TPixel>
void itk::Accessor::AddPixelAccessor< TPixel >::SetValue ( const TPixel &  newvalue)
inline

Set the value to be added to pixels

Definition at line 75 of file itkAddPixelAccessor.h.

Member Data Documentation

◆ m_Value

template<typename TPixel>
TPixel itk::Accessor::AddPixelAccessor< TPixel >::m_Value
private

The documentation for this class was generated from the following file: