STIRA  0.1
Public Types | Public Member Functions | Static Public Member Functions | List of all members
stira::imagedata::GridExtender< T > Class Template Reference

Extends input grid in a user-selected way. More...

#include <GridExtender.h>

Public Types

enum  ExtensionType { EXTEND_MIRROR, EXTEND_TILED, EXTEND_ZERO }
 

Public Member Functions

 GridExtender ()
 constructor
 
 ~GridExtender ()
 destructor
 

Static Public Member Functions

static ArrayGrid< T > * MirrorBorder (ArrayGrid< T > *pGrid, int borderWidth, int borderHeight)
 generates a new larger grid from the input grid values with a predefined border around the extra border mirrors the values inside the image: Old: ... 9 8 5 7 3 6 | becomes ... 9 8 5 7 3 6 | 6 3 7 ... More...
 
static ArrayGrid< T > * PaddBorder (ArrayGrid< T > *pGrid, int borderWidth, int borderHeight, T myValue=0)
 generates a new larger grid from the input grid values with a border of predefined values around it the extra border mirrors the values inside the image: Old: ... 9 8 5 7 3 6 | becomes ... 9 8 5 7 3 6 | myValue myValue myValue ... More...
 
static ArrayGrid< T > * PaddBorder (ArrayGrid< T > *pGrid, int borderWidthLeft, int borderWidthRight, int borderHeightTop, int borderHeightBottom, T myValue=0)
 generates a new larger grid from the input grid values with a border of predefined values around it the extra border mirrors the values inside the image: Old: ... 9 8 5 7 3 6 | becomes ... 9 8 5 7 3 6 | myValue myValue myValue ... More...
 
static ArrayGrid< T > * CropBorder (ArrayGrid< T > *pGrid, int borderWidth, int borderHeight)
 generates a new smaller grid from the input grid values cropping a predefined border from it More...
 

Detailed Description

template<class T>
class stira::imagedata::GridExtender< T >

Extends input grid in a user-selected way.

Member Function Documentation

template<class T >
ArrayGrid< T > * stira::imagedata::GridExtender< T >::CropBorder ( ArrayGrid< T > *  pGrid,
int  borderWidth,
int  borderHeight 
)
static

generates a new smaller grid from the input grid values cropping a predefined border from it

Parameters
pGridthe (larger) input grid
borderWidthwidth of border to crop from left and right
borderHeightheight of border to crop from top and bottom

References stira::imagedata::ArrayGrid< T >::GetHeight(), stira::imagedata::ArrayGrid< T >::GetValue(), stira::imagedata::ArrayGrid< T >::GetWidth(), and stira::imagedata::ArrayGrid< T >::SetValue().

Referenced by stira::imagetools::ImageTools::CropBorder(), stira::fouriertools::FFT::GaussConvolve(), stira::filter::DifferenceOfGaussians::Run(), stira::filter::NonSeparableFilter::Run(), and stira::contrastenhance::AdaptiveEnhanceLuong::SetWindowSize().

template<class T >
ArrayGrid< T > * stira::imagedata::GridExtender< T >::MirrorBorder ( ArrayGrid< T > *  pGrid,
int  borderWidth,
int  borderHeight 
)
static

generates a new larger grid from the input grid values with a predefined border around the extra border mirrors the values inside the image: Old: ... 9 8 5 7 3 6 | becomes ... 9 8 5 7 3 6 | 6 3 7 ...

Parameters
pGridthe (smaller) input grid
borderWidthwidth of extra border left and right
borderHeightheight of extra border top and bottom

References stira::imagedata::ArrayGrid< T >::GetHeight(), stira::imagedata::ArrayGrid< T >::GetValue(), stira::imagedata::ArrayGrid< T >::GetWidth(), and stira::imagedata::ArrayGrid< T >::SetValue().

Referenced by stira::fouriertools::FFT::GaussConvolve(), stira::imagetools::ImageTools::MirrorBorder(), stira::filter::DifferenceOfGaussians::Run(), stira::filter::NonSeparableFilter::Run(), and stira::filter::GaussConvolve::UpsampleGaussianInterpolated().

template<class T >
ArrayGrid< T > * stira::imagedata::GridExtender< T >::PaddBorder ( ArrayGrid< T > *  pGrid,
int  borderWidth,
int  borderHeight,
myValue = 0 
)
static

generates a new larger grid from the input grid values with a border of predefined values around it the extra border mirrors the values inside the image: Old: ... 9 8 5 7 3 6 | becomes ... 9 8 5 7 3 6 | myValue myValue myValue ...

Parameters
pGridthe (smaller) input grid
borderWidthwidth of extra border left and right
borderHeightheight of extra border top and bottom
myValuevalue used to fill the border

References stira::imagedata::ArrayGrid< T >::GetHeight(), stira::imagedata::ArrayGrid< T >::GetValue(), stira::imagedata::ArrayGrid< T >::GetWidth(), and stira::imagedata::ArrayGrid< T >::SetValue().

Referenced by stira::imagetools::ImageTools::PaddBorder().

template<class T >
ArrayGrid< T > * stira::imagedata::GridExtender< T >::PaddBorder ( ArrayGrid< T > *  pGrid,
int  borderWidthLeft,
int  borderWidthRight,
int  borderHeightTop,
int  borderHeightBottom,
myValue = 0 
)
static

generates a new larger grid from the input grid values with a border of predefined values around it the extra border mirrors the values inside the image: Old: ... 9 8 5 7 3 6 | becomes ... 9 8 5 7 3 6 | myValue myValue myValue ...

Parameters
pGridthe (smaller) input grid
borderWidthwidth of extra border left and right
borderHeightheight of extra border top and bottom
myValuevalue used to fill the border

References stira::imagedata::ArrayGrid< T >::GetHeight(), stira::imagedata::ArrayGrid< T >::GetValue(), stira::imagedata::ArrayGrid< T >::GetWidth(), and stira::imagedata::ArrayGrid< T >::SetValue().


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