STIRA
0.1
|
Child class of ArrayGrid in specific case that the template represents numerical values In this case, certain extra operations are possible, like finding min and max, add, multiply, subtract Methods in this class are divided in the following "sections": 0. CONSTRUCT / DESTRUCT. More...
#include <NumberGridTools.h>
Public Member Functions | |
NumberGridTools () | |
Constructor. | |
virtual | ~NumberGridTools () |
Destructor. | |
Static Public Member Functions | |
static void | CopyValues (ArrayGrid< T > *pSourceGrid, ArrayGrid< T > *pDestinationGrid) |
copies values from pSourceGrid to pDestinationGrid More... | |
static std::vector< common::IntensityPoint > | ProjectGridOnX (ArrayGrid< T > *pGrid) |
projects the values in the grid on the X axis More... | |
static std::vector< common::IntensityPoint > | ProjectGridOnX (ArrayGrid< T > *pGrid, int xTopLeft, int yTopLeft, int xBottomRight, int yBottomRight) |
projects the values in the grid on the Y axis More... | |
static std::vector< common::IntensityPoint > | ProjectGridOnY (ArrayGrid< T > *pGrid) |
projects the values in the grid on the X axis More... | |
static std::vector< common::IntensityPoint > | ProjectGridOnY (ArrayGrid< T > *pGrid, int xTopLeft, int yTopLeft, int xBottomRight, int yBottomRight) |
projects the values in the grid on the Y axis More... | |
static ArrayGrid< double > * | ComputeLocalAutoCorrelation (ArrayGrid< double > *pGridIn, int xCenter, int yCenter, int halfWindowSize) |
Computes local AutoCorrelation in a pixel neighborhood. More... | |
static double | ComputeLocalSquaredDifference (ArrayGrid< double > *pGrid1, int xTop1, int yTop1, int xBottom1, int yBottom1, ArrayGrid< double > *pGrid2, int xTop2, int yTop2, int xBottom2, int yBottom2) |
computes sum of square differences between two ROIs in two different grids More... | |
static double | ComputeLocalCrossCorrelation (ArrayGrid< double > *pGrid1, int xTop1, int yTop1, int xBottom1, int yBottom1, ArrayGrid< double > *pGrid2, int xTop2, int yTop2, int xBottom2, int yBottom2) |
computes local normalized cross-correlation between two ROIs in two different grids More... | |
static double | ComputeLocalMutualInformation (ArrayGrid< double > *pGrid1, int xTop1, int yTop1, int xBottom1, int yBottom1, ArrayGrid< double > *pGrid2, int xTop2, int yTop2, int xBottom2, int yBottom2) |
computes mutual information between two ROIs in two different grids Reference: http://www.mathworks.com/matlabcentral/fileexchange/36538-very-fast-mutual-information-betweentwo-images More... | |
static ArrayGrid< double > * | CreateSquaredErrorGrid (ArrayGrid< double > *pGrid1, ArrayGrid< double > *pGrid2, bool printOutput=false) |
computes grid with squared error values between two grids More... | |
static double | ComputeMSE (ArrayGrid< double > *pGrid1, ArrayGrid< double > *pGrid2) |
computes MSE (Mean Squared Error) between two grids More... | |
static double | ComputeMSEinROI (ArrayGrid< double > *pGrid1, ArrayGrid< double > *pGrid2, int topLeftX, int topLeftY, int bottomRightX, int bottomRightY) |
computes MSE (Mean Squared Error) between two grids in a given Region of Interest (ROI) More... | |
static double | ComputePSNR (ArrayGrid< double > *pGrid1, ArrayGrid< double > *pGrid2) |
computes PSNR (Peak Signal to Noise Ratio) between two grids More... | |
static double | ComputePSNRinROI (ArrayGrid< double > *pGrid1, ArrayGrid< double > *pGrid2, int topLeftX, int topLeftY, int bottomRightX, int bottomRightY) |
computes PSNR (Peak Signal to Noise Ratio) between two grids in a given Region of Interest (ROI) More... | |
static ArrayGrid< double > * | ComputeSSIM (ArrayGrid< double > *pGrid1, ArrayGrid< double > *pGrid2, int localWindowSize, double intensityRange=255.0) |
compares the two grids using SSIM SSIM stands for Structural SIMilarity measure, see http://en.wikipedia.org/wiki/SSIM First published in Z. Wang, A. C. Bovik, H. R. Sheikh and E. P. Simoncelli, "Image quality assessment: From error visibility to structural similarity," IEEE Trans. on Image Processing, vol. 13, no. 4, pp. 600-612, Apr. 2004. More... | |
static ArrayGrid< double > * | ComputeSSIMinROI (ArrayGrid< double > *pGrid1, ArrayGrid< double > *pGrid2, int topLeftX, int topLeftY, int bottomRightX, int bottomRightY, int localWindowSize, double intensityRange=255.0) |
compares the two grids using SSIM in a given Region of Interest (ROI) SSIM stands for Structural SIMilarity measure, see http://en.wikipedia.org/wiki/SSIM First published in Z. Wang, A. C. Bovik, H. R. Sheikh and E. P. Simoncelli, "Image quality assessment: From error visibility to structural similarity," IEEE Trans. on Image Processing, vol. 13, no. 4, pp. 600-612, Apr. 2004. More... | |
static ArrayGrid< double > * | ComputePearsonCorrelation (ArrayGrid< double > *pGrid1, ArrayGrid< double > *pGrid2) |
standard correlation/colocalization method Ref.: http://support.svi.nl/wiki/ColocalizationTheory More... | |
static ArrayGrid< double > * | ComputeMandersOverlap (ArrayGrid< double > *pGrid1, ArrayGrid< double > *pGrid2) |
standard correlation/colocalization method Ref.: http://support.svi.nl/wiki/ColocalizationTheory http://www.mediacy.com/pdfs/colocfluorprobes.pdf More... | |
static ArrayGrid< int > * | CreateIntGrid (ArrayGrid< T > *pGrid) |
creates a grid where all values of the source grid were casted to integers More... | |
static ArrayGrid< double > * | CreateDoubleGrid (ArrayGrid< T > *pGrid) |
creates a grid where all values of the source grid were casted to doubles More... | |
static ArrayGrid< double > * | CreateDoubleGridFromComplexGrid (ArrayGrid< std::complex< double > > *pGrid) |
creates a grid with the norm of the complex values of the source grid More... | |
static ArrayGrid< double > * | NegateGrid (ArrayGrid< double > *pGrid) |
creates a grid with as value the negative, i.e., maxvalue - current value at source grid More... | |
static void | NegateGridSelf (ArrayGrid< double > *pGrid, double maxValue) |
static ArrayGrid< int > * | NegateGrid (ArrayGrid< int > *pGrid, int maxValue) |
creates a grid with as value the negative, i.e., maxvalue - current value at source grid More... | |
static void | NegateGridSelf (ArrayGrid< int > *pGrid, int maxValue) |
static T | GetFirstDerivativeX (ArrayGrid< T > *pGrid, int x, int y) |
Gets value of first derivative in x-direction for given position Computes first derivative in x = I(x+1,y) - I(x-1,y) Does NOT perform boundary checking; be sure you check ranges of x and y yourself. More... | |
static T | GetFirstDerivativeY (ArrayGrid< T > *pGrid, int x, int y) |
Gets value of first derivative in x-direction for given position Computes first derivative in y = I(x,y+1) - I(x,y-1) Does NOT perform boundary checking; be sure you check ranges of x and y yourself. More... | |
static T | GetSecondDerivativeXX (ArrayGrid< T > *pGrid, int x, int y) |
Gets value of second derivative in x-direction for given position Computes second derivative in x = - I(x-2,y) + 2 I(x,y) - I(x+2,y) Does NOT perform boundary checking; be sure you check ranges of x and y yourself. More... | |
static T | GetSecondDerivativeXY (ArrayGrid< T > *pGrid, int x, int y) |
Gets value of mixed derivative in x and y for given position Computes mixed derivative in x and y = ( I( x+1, y+1 ) - I( x-1, y+1 ) ) More... | |
static T | GetSecondDerivativeYY (ArrayGrid< T > *pGrid, int x, int y) |
Gets value of second derivative in y-direction for given position Computes second derivative in y = - I(x,y-2) + 2 I(x,y) - I(x,y+2 ) Does NOT perform boundary checking; be sure you check ranges of x and y yourself. More... | |
static ArrayGrid< double > * | Rotate90DegreesClockwise (ArrayGrid< double > *pGrid) |
Rotates the input grid 90 degrees clockwise. More... | |
static ArrayGrid< double > * | Rotate90DegreesCounterClockwise (ArrayGrid< double > *pGrid) |
Rotates the input grid 90 degrees counter-clockwise. More... | |
static ArrayGrid< double > * | Rotate180Degrees (ArrayGrid< double > *pGrid) |
Rotates the input grid 180 degrees. More... | |
static ArrayGrid< double > * | LogPolarTransform (ArrayGrid< double > *pGrid) |
Transforms grid using the log-polar transform Reference: ROBUST IMAGE REGISTRATION USING LOG-POLAR TRANSFORM George Wolberg http://www.cis.rit.edu/~cnspci/references/wolberg2000.pdf http://homepages.inf.ed.ac.uk/rbf/CVonline/LOCAL_COPIES/YOUNG2/. More... | |
static void | ClipValues (ArrayGrid< T > *pGrid, T desiredMin, T desiredMax) |
Clips all values in the grid between a desired minimum and maximum value. More... | |
static ArrayGrid< double > * | HardThreshold (ArrayGrid< double > *pGrid, double threshold) |
Sets values with absolute values smaller than threshold to 0; keeps other values. More... | |
static ArrayGrid< bool > * | BinaryThreshold (ArrayGrid< double > *pGrid, double threshold, bool thresholdAbsoluteValue=false) |
Sets values with absolute values smaller than threshold to false and others to true. More... | |
static ArrayGrid< int > * | BinaryThresholdInteger (ArrayGrid< double > *pGrid, int threshold) |
Sets values with absolute values smaller than threshold to false and others to true. More... | |
static void | UpdateAverageGrid (ArrayGrid< T > *pAverageGrid, ArrayGrid< T > *pNewGrid, int previousNrOfGridsProcessed) |
static ArrayGrid< T > * | AverageGrids (std::vector< ArrayGrid< T > * > gridVector) |
Averages a vector of grids. More... | |
Child class of ArrayGrid in specific case that the template represents numerical values In this case, certain extra operations are possible, like finding min and max, add, multiply, subtract Methods in this class are divided in the following "sections": 0. CONSTRUCT / DESTRUCT.
COMBINE GRIDS
|
static |
Averages a vector of grids.
gridVector | the set of grids to average |
References stira::imagedata::ArrayGrid< T >::Clone().
|
static |
Sets values with absolute values smaller than threshold to false and others to true.
pGrid | input grid to be thresholded |
threshold | value of the hard threshold |
thresholdAbsoluteValue | if true, we apply the threshold on the absolute value; if false, we apply the threshold directly on the value Generates new grid with output that caller should delete |
References stira::imagedata::ArrayGrid< T >::GetHeight(), stira::imagedata::ArrayGrid< T >::GetValue(), stira::imagedata::ArrayGrid< T >::GetWidth(), and stira::imagedata::ArrayGrid< T >::SetValue().
|
static |
Sets values with absolute values smaller than threshold to false and others to true.
pGrid | input grid to be thresholded |
threshold | value of the hard threshold |
thresholdAbsoluteValue | if true, we apply the threshold on the absolute value; if false, we apply the threshold directly on the value Generates new grid with output that caller should delete |
References stira::imagedata::ArrayGrid< T >::GetHeight(), stira::imagedata::ArrayGrid< T >::GetValue(), stira::imagedata::ArrayGrid< T >::GetWidth(), and stira::imagedata::ArrayGrid< T >::SetValue().
|
static |
Clips all values in the grid between a desired minimum and maximum value.
pGrid | input grid; values are overwritten |
desiredMin | desired minimum after clipping |
desiredMax | desired maximum after clipping |
References stira::common::MathUtils::ClipValue(), stira::imagedata::ArrayGrid< T >::GetHeight(), stira::imagedata::ArrayGrid< T >::GetValue(), stira::imagedata::ArrayGrid< T >::GetWidth(), and stira::imagedata::ArrayGrid< T >::SetValue().
|
static |
Computes local AutoCorrelation in a pixel neighborhood.
pGridIn | input grid |
xCenter | x coordinate of center of neighborhood |
yCenter | y coordinate of center of neighborhood |
halfWindowSize | half of size of window (for 5x5 window, halfWindowSize is 2) |
References stira::imagedata::GridStatistics< T >::GetGridMean(), stira::imagedata::GridStatistics< T >::GetGridVariance(), stira::imagedata::ArrayGrid< T >::GetValue(), and stira::imagedata::ArrayGrid< T >::SetValue().
|
static |
computes local normalized cross-correlation between two ROIs in two different grids
pGrid1 | first input grid |
xTop1 | x coordinate of left top corner of ROI in first grid |
yTop1 | x coordinate of left top corner of ROI in first grid |
xBottom1 | x coordinate of right bottom corner of ROI in first grid |
yBottom1 | y coordinate of right bottom corner of ROI in first grid |
pGrid2 | second input grid |
xTop2 | x coordinate of left top corner of ROI in second grid |
yTop2 | y coordinate of left top corner of ROI in second grid |
xBottom2 | x coordinate of right bottom corner of ROI in second grid |
yBottom2 | y coordinate of right bottom corner of ROI in second grid |
References stira::imagedata::GridStatistics< T >::ComputeLocalMean(), and stira::imagedata::ArrayGrid< T >::GetValue().
|
static |
computes mutual information between two ROIs in two different grids Reference: http://www.mathworks.com/matlabcentral/fileexchange/36538-very-fast-mutual-information-betweentwo-images
pGrid1 | first input grid |
xTop1 | x coordinate of left top corner of ROI in first grid |
yTop1 | x coordinate of left top corner of ROI in first grid |
xBottom1 | x coordinate of right bottom corner of ROI in first grid |
yBottom1 | y coordinate of right bottom corner of ROI in first grid |
pGrid2 | second input grid |
xTop2 | x coordinate of left top corner of ROI in second grid |
yTop2 | y coordinate of left top corner of ROI in second grid |
xBottom2 | x coordinate of right bottom corner of ROI in second grid |
yBottom2 | y coordinate of right bottom corner of ROI in second grid |
References stira::histogram::HistogramMaster< T >::GetBinValue(), stira::histogram::HistogramMaster< T >::GetNrOfBins(), stira::histogram::JointHistogram::GetNrOfHorizontalBins(), and stira::histogram::JointHistogram::GetNrOfVerticalBins().
|
static |
computes sum of square differences between two ROIs in two different grids
pGrid1 | first input grid |
xTop1 | x coordinate of left top corner of ROI in first grid |
yTop1 | x coordinate of left top corner of ROI in first grid |
xBottom1 | x coordinate of right bottom corner of ROI in first grid |
yBottom1 | y coordinate of right bottom corner of ROI in first grid |
pGrid2 | second input grid |
xTop1 | x coordinate of left top corner of ROI in first grid |
xTop2 | x coordinate of left top corner of ROI in second grid |
yTop2 | y coordinate of left top corner of ROI in second grid |
xBottom2 | x coordinate of right bottom corner of ROI in second grid |
yBottom2 | y coordinate of right bottom corner of ROI in second grid |
References stira::imagedata::ArrayGrid< T >::GetValue().
|
static |
standard correlation/colocalization method Ref.: http://support.svi.nl/wiki/ColocalizationTheory http://www.mediacy.com/pdfs/colocfluorprobes.pdf
pGrid1 | first grid to check for overlap |
pGrid2 | second grid to check for overlap |
References stira::imagedata::ArrayGrid< T >::DivideValue(), stira::imagedata::ArrayGrid< T >::GetHeight(), stira::imagedata::ArrayGrid< T >::GetValue(), stira::imagedata::ArrayGrid< T >::GetWidth(), and stira::imagedata::ArrayGrid< T >::SetValue().
|
static |
computes MSE (Mean Squared Error) between two grids
pGrid1 | First grid to compare |
pGrid2 | Second grid to compare |
References stira::imagedata::ArrayGrid< T >::GetHeight(), stira::imagedata::ArrayGrid< T >::GetValue(), and stira::imagedata::ArrayGrid< T >::GetWidth().
Referenced by stira::imagetools::ImageTools::ComputeMSE(), and stira::deconvolve::GNCDeconvolve::Run().
|
static |
computes MSE (Mean Squared Error) between two grids in a given Region of Interest (ROI)
pGrid1 | First grid to compare |
pGrid2 | Second grid to compare |
topLeftX | x coordinate of the top left corner of the ROI |
topLeftY | y coordinate of the top left corner of the ROI |
bottomRightX | x coordinate of the bottom right corner of the ROI |
bottomRightY | y coordinate of the bottom right corner of the ROI |
References stira::imagedata::ArrayGrid< T >::GetHeight(), stira::imagedata::ArrayGrid< T >::GetValue(), and stira::imagedata::ArrayGrid< T >::GetWidth().
|
static |
standard correlation/colocalization method Ref.: http://support.svi.nl/wiki/ColocalizationTheory
pGrid1 | first grid to check for correlation |
pGrid2 | second grid to check for correlation |
References stira::imagedata::ArrayGrid< T >::DivideValue(), stira::imagedata::GridStatistics< T >::GetGridMean(), stira::imagedata::ArrayGrid< T >::GetHeight(), stira::imagedata::ArrayGrid< T >::GetValue(), stira::imagedata::ArrayGrid< T >::GetWidth(), and stira::imagedata::ArrayGrid< T >::SetValue().
|
static |
computes PSNR (Peak Signal to Noise Ratio) between two grids
pGrid1 | First grid to compare |
pGrid2 | Second grid to compare |
References stira::common::MathUtils::ComputePSNR(), stira::imagedata::ArrayGrid< T >::GetHeight(), and stira::imagedata::ArrayGrid< T >::GetWidth().
|
static |
computes PSNR (Peak Signal to Noise Ratio) between two grids in a given Region of Interest (ROI)
pGrid1 | First grid to compare |
pGrid2 | Second grid to compare |
topLeftX | x coordinate of the top left corner of the ROI |
topLeftY | y coordinate of the top left corner of the ROI |
bottomRightX | x coordinate of the bottom right corner of the ROI |
bottomRightY | y coordinate of the bottom right corner of the ROI |
References stira::common::MathUtils::ComputePSNR(), stira::imagedata::ArrayGrid< T >::GetHeight(), and stira::imagedata::ArrayGrid< T >::GetWidth().
|
static |
compares the two grids using SSIM SSIM stands for Structural SIMilarity measure, see http://en.wikipedia.org/wiki/SSIM First published in Z. Wang, A. C. Bovik, H. R. Sheikh and E. P. Simoncelli, "Image quality assessment: From error visibility to structural similarity," IEEE Trans. on Image Processing, vol. 13, no. 4, pp. 600-612, Apr. 2004.
In order to evaluate the image quality this formula is applied only on the luminance. Resultant SSIM index is a decimal value between -1 and 1
pGrid1 | first grid to compare |
pGrid2 | second grid to compare |
localWindowSize | size of local window to compute local image statistics used in SSIM |
intensityRange | range of the intensities present in the grids to compare |
References stira::imagedata::GridStatistics< T >::ComputeLocalCovariance(), stira::imagedata::GridStatistics< T >::ComputeLocalMean(), stira::imagedata::GridStatistics< T >::ComputeLocalVariance(), stira::imagedata::ArrayGrid< T >::GetHeight(), stira::imagedata::ArrayGrid< T >::GetWidth(), and stira::imagedata::ArrayGrid< T >::SetValue().
Referenced by stira::imagetools::ImageTools::CreateImageSSIM().
|
static |
compares the two grids using SSIM in a given Region of Interest (ROI) SSIM stands for Structural SIMilarity measure, see http://en.wikipedia.org/wiki/SSIM First published in Z. Wang, A. C. Bovik, H. R. Sheikh and E. P. Simoncelli, "Image quality assessment: From error visibility to structural similarity," IEEE Trans. on Image Processing, vol. 13, no. 4, pp. 600-612, Apr. 2004.
In order to evaluate the image quality this formula is applied only on the luminance. Resulting SSIM index is a decimal value between -1 and 1
pGrid1 | first grid to compare |
pGrid2 | second grid to compare |
topLeftX | x coordinate of the top left corner of the ROI |
topLeftY | y coordinate of the top left corner of the ROI |
bottomRightX | x coordinate of the bottom right corner of the ROI |
bottomRightY | y coordinate of the bottom right corner of the ROI |
localWindowSize | size of local window to compute local image statistics used in SSIM |
intensityRange | range of the intensities present in the grids to compare |
References stira::imagedata::GridStatistics< T >::ComputeLocalCovariance(), stira::imagedata::GridStatistics< T >::ComputeLocalMean(), stira::imagedata::GridStatistics< T >::ComputeLocalVariance(), stira::imagedata::ArrayGrid< T >::GetHeight(), stira::imagedata::ArrayGrid< T >::GetWidth(), and stira::imagedata::ArrayGrid< T >::SetValue().
|
static |
copies values from pSourceGrid to pDestinationGrid
pSourceGrid | grid from which to copy values |
pDestinationGrid | grid to which to copy values |
References stira::common::MathUtils::ClipValue(), stira::imagedata::ArrayGrid< T >::GetHeight(), stira::imagedata::ArrayGrid< T >::GetValue(), stira::imagedata::ArrayGrid< T >::GetWidth(), and stira::imagedata::ArrayGrid< T >::SetValue().
Referenced by stira::deconvolve::GNCDeconvolve::Run().
|
static |
creates a grid where all values of the source grid were casted to doubles
pGrid | the source grid |
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::imageanalysis::WatershedMeyer< T >::~WatershedMeyer().
|
static |
creates a grid with the norm of the complex values of the source grid
pGrid | the complex-valued source grid |
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::steerable::PyramidComplex::Diagnose().
|
static |
creates a grid where all values of the source grid were casted to integers
pGrid | the source grid |
References stira::imagedata::ArrayGrid< T >::GetHeight(), stira::imagedata::ArrayGrid< T >::GetValue(), stira::imagedata::ArrayGrid< T >::GetWidth(), and stira::imagedata::ArrayGrid< T >::SetValue().
|
static |
computes grid with squared error values between two grids
pGrid1 | First grid to compare |
pGrid2 | Second grid to compare |
printOutput | flag if output needs to be printed to console Also writes max squared error, mean squared error and PSNR on standard output if "printOutput==true" |
References stira::common::MathUtils::ComputePSNR(), 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::CreateImageSSD().
|
inlinestatic |
Gets value of first derivative in x-direction for given position Computes first derivative in x = I(x+1,y) - I(x-1,y) Does NOT perform boundary checking; be sure you check ranges of x and y yourself.
pGrid | source grid |
x | x coordinate of where to get value of first derivative |
y | y coordinate of where to get value of first derivative |
References stira::imagedata::ArrayGrid< T >::GetValue().
|
inlinestatic |
Gets value of first derivative in x-direction for given position Computes first derivative in y = I(x,y+1) - I(x,y-1) Does NOT perform boundary checking; be sure you check ranges of x and y yourself.
pGrid | source grid |
x | x coordinate of where to get value of first derivative |
y | y coordinate of where to get value of first derivative |
References stira::imagedata::ArrayGrid< T >::GetValue().
|
inlinestatic |
Gets value of second derivative in x-direction for given position Computes second derivative in x = - I(x-2,y) + 2 I(x,y) - I(x+2,y) Does NOT perform boundary checking; be sure you check ranges of x and y yourself.
pGrid | source grid |
x | x coordinate of where to get value of second derivative |
y | y coordinate of where to get value of second derivative |
References stira::imagedata::ArrayGrid< T >::GetValue().
Referenced by stira::deconvolve::RichardsonLucyDeconvolve::Run().
|
inlinestatic |
Gets value of mixed derivative in x and y for given position Computes mixed derivative in x and y = ( I( x+1, y+1 ) - I( x-1, y+1 ) )
pGrid | source grid |
x | x coordinate of where to get value of mixed derivative |
y | y coordinate of where to get value of mixed derivative |
References stira::imagedata::ArrayGrid< T >::GetValue().
|
inlinestatic |
Gets value of second derivative in y-direction for given position Computes second derivative in y = - I(x,y-2) + 2 I(x,y) - I(x,y+2 ) Does NOT perform boundary checking; be sure you check ranges of x and y yourself.
pGrid | source grid |
x | x coordinate of where to get value of second derivative |
y | y coordinate of where to get value of second derivative |
References stira::imagedata::ArrayGrid< T >::GetValue().
Referenced by stira::deconvolve::RichardsonLucyDeconvolve::Run().
|
static |
Sets values with absolute values smaller than threshold to 0; keeps other values.
pGrid | input grid to be thresholded |
threshold | value of the hard threshold Generates new grid with output that caller should delete |
References stira::imagedata::ArrayGrid< T >::Clone(), stira::imagedata::ArrayGrid< T >::GetHeight(), stira::imagedata::ArrayGrid< T >::GetValue(), stira::imagedata::ArrayGrid< T >::GetWidth(), and stira::imagedata::ArrayGrid< T >::SetValue().
Referenced by stira::wavelet::SubsampledTransform::Decompose().
|
static |
Transforms grid using the log-polar transform Reference: ROBUST IMAGE REGISTRATION USING LOG-POLAR TRANSFORM George Wolberg http://www.cis.rit.edu/~cnspci/references/wolberg2000.pdf http://homepages.inf.ed.ac.uk/rbf/CVonline/LOCAL_COPIES/YOUNG2/.
pGrid | grid to transform |
References stira::imagedata::ArrayGrid< T >::GetHeight(), stira::imagedata::ArrayGrid< T >::GetWidth(), stira::imagetools::NearestNeighborInterpolator::Run(), stira::common::Point< T >::SetRadiusAndTheta(), stira::imagedata::ArrayGrid< T >::SetValue(), stira::common::Point< T >::ToCartesian(), stira::common::Point< T >::x, and stira::common::Point< T >::y.
|
static |
creates a grid with as value the negative, i.e., maxvalue - current value at source grid
pGrid | the grid to take negative of |
References stira::imagedata::ArrayGrid< T >::GetHeight(), stira::imagedata::ArrayGrid< T >::GetValue(), stira::imagedata::ArrayGrid< T >::GetWidth(), and stira::imagedata::ArrayGrid< T >::SetValue().
|
static |
creates a grid with as value the negative, i.e., maxvalue - current value at source grid
pGrid | the grid to take negative of |
References stira::imagedata::ArrayGrid< T >::GetHeight(), stira::imagedata::ArrayGrid< T >::GetValue(), stira::imagedata::ArrayGrid< T >::GetWidth(), and stira::imagedata::ArrayGrid< T >::SetValue().
|
static |
projects the values in the grid on the X axis
pGrid | input grid to project |
References stira::imagedata::ArrayGrid< T >::GetHeight(), and stira::imagedata::ArrayGrid< T >::GetWidth().
|
static |
projects the values in the grid on the Y axis
pGrid | input grid to project |
|
static |
projects the values in the grid on the X axis
pGrid | input grid to project |
References stira::imagedata::ArrayGrid< T >::GetHeight(), and stira::imagedata::ArrayGrid< T >::GetWidth().
|
static |
projects the values in the grid on the Y axis
pGrid | input grid to project |
References stira::common::MathUtils::ClipValue(), stira::imagedata::ArrayGrid< T >::GetHeight(), stira::imagedata::ArrayGrid< T >::GetValue(), and stira::imagedata::ArrayGrid< T >::GetWidth().
|
static |
Rotates the input grid 180 degrees.
pGrid | grid to rotate |
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::Rotate180Degrees().
|
static |
Rotates the input grid 90 degrees clockwise.
pGrid | grid to rotate |
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::Rotate90DegreesClockwise().
|
static |
Rotates the input grid 90 degrees counter-clockwise.
pGrid | grid to rotate |
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::Rotate90DegreesCounterClockwise().