STIRA
0.1
|
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... | |
Extends input grid in a user-selected way.
|
static |
generates a new smaller grid from the input grid values cropping a predefined border from it
pGrid | the (larger) input grid |
borderWidth | width of border to crop from left and right |
borderHeight | height 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().
|
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 ...
pGrid | the (smaller) input grid |
borderWidth | width of extra border left and right |
borderHeight | height 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().
|
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 ...
pGrid | the (smaller) input grid |
borderWidth | width of extra border left and right |
borderHeight | height of extra border top and bottom |
myValue | value 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().
|
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 ...
pGrid | the (smaller) input grid |
borderWidth | width of extra border left and right |
borderHeight | height of extra border top and bottom |
myValue | value 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().