STIRA
0.1
|
A class to contain a regular grid of integer or float numbers, structs and even more complex objects. More...
#include <ArrayGrid.h>
Public Member Functions | |
ArrayGrid (int width, int height) | |
Constructor. More... | |
ArrayGrid (int width, int height, bool needsInitialization, T intensity) | |
Constructor. More... | |
ArrayGrid (int width, int height, T *pArray) | |
Constructor. More... | |
ArrayGrid (const ArrayGrid< T > &pArrayGrid) | |
Copy constructor. More... | |
~ArrayGrid () | |
Destructor. | |
ArrayGrid< T > * | Clone () |
Creates a clone of this arraygrid This clone becomes the responsability of the caller to delete. | |
T & | operator() (int x, int y) |
Overloaded operator (x, y) More... | |
T | operator() (int x, int y) const |
Overloaded operator (x, y) More... | |
void | SetGridValues (T value) |
sets all values for all grid positions to 'value' More... | |
void | SetGridValues (const ArrayGrid< T > &otherGrid) |
copies all values for all grid positions from corresponding positions in otherGrid | |
void | GetRowCopy (int y, T *pRowBuffer) |
Gets copy of the y'th row of the image (uses pre-allocated buffer) More... | |
T * | GetRowCopy (int y) |
Gets copy of the y'th row of the image (allocates new memory) More... | |
void | GetColumnCopy (int x, T *columnBuffer) |
Gets copy of the x'th column of the image (uses pre-allocated buffer) More... | |
T * | GetColumnCopy (int x) |
Gets copy of the x'th column of the image (allocates new memory) More... | |
T | GetValue (int x, int y) const |
Gets the grid value at position (x,y) More... | |
void | SetValue (int x, int y, T myValue) |
Sets the value myValue at position (x,y) More... | |
void | SetValue (std::vector< common::Point< int > > ptVector, T myValue) |
Sets the value myValue at the positions indicated in the vector of points. More... | |
T | GetValue (common::Point< int > pt) const |
Gets the value at a given point. More... | |
void | SetValue (common::Point< int > pt, T myValue) |
Sets a value at a given point. More... | |
int | GetWidth () const |
Gets the width of the grid. | |
int | GetHeight () const |
Gets the height of the grid. | |
T * | GetDataCopy () |
Gets a copy of the array. More... | |
T * | GetDataPointer () |
Gets the pointer to the data array. More... | |
void | PointMirrorGrid () |
Point-mirrors the current grid. The actual grid is changed. | |
void | SwitchQuadrants () |
switches upperleft <-> lowerright quadrants and upperright <-> lowerleft | |
void | AddValue (int x, int y, T myValue) |
adds myValue to the value at position (x,y) More... | |
void | AddOne (int x, int y) |
adds one to the value at position (x,y) More... | |
void | MultiplyValue (int x, int y, T myValue) |
muliplies current value at position (x,y) with myValue More... | |
void | DivideValue (int x, int y, T myValue) |
divides current value at position (x,y) by myValue More... | |
void | MultiplyWith (double factor) |
muliplies all grid values with real-valued myValue More... | |
void | MultiplyWith (std::complex< double > factor) |
muliplies all grid values with complex-valued myValue More... | |
void | DivideBy (double factor) |
divides all grid values by real-valued myValue More... | |
void | DivideBy (std::complex< double > factor) |
divides all grid values by complex-valued myValue More... | |
ArrayGrid< T > & | operator+= (const ArrayGrid< T > &otherGrid) |
ArrayGrid< T > & | operator-= (const ArrayGrid< T > &otherGrid) |
ArrayGrid< T > & | operator*= (const ArrayGrid< T > &otherGrid) |
ArrayGrid< T > & | operator/= (const ArrayGrid< T > &otherGrid) |
void | AddGrid (ArrayGrid< T > *otherGrid) |
sums all values of this grid point by point with values of otherGrid Current grid is result, otherGrid stays the same More... | |
void | SubtractGrid (ArrayGrid< T > *otherGrid) |
subtracts from all values of this grid point by point values of otherGrid Current grid is result, otherGrid stays the same More... | |
void | MultiplyWith (ArrayGrid< T > *otherGrid) |
multiplies all values of this grid point by point with values of otherGrid Current grid is result, otherGrid stays the same More... | |
void | DivideBy (ArrayGrid< T > *otherGrid) |
divides all values of this grid point by point by values of otherGrid Current grid is result, otherGrid stays the same More... | |
Protected Member Functions | |
bool | CreateGridCopy (const ArrayGrid< T > &otherArrayGrid) |
help method to copy internal data from other ArrayGrid More... | |
Protected Attributes | |
T * | mpArrayGrid |
The grid array. | |
int | mWidth |
width of the grid | |
int | mHeight |
height of the grid | |
A class to contain a regular grid of integer or float numbers, structs and even more complex objects.
stira::imagedata::ArrayGrid< T >::ArrayGrid | ( | int | width, |
int | height | ||
) |
Constructor.
width | width for grid to construct |
height | height for grid to construct |
References stira::imagedata::ArrayGrid< T >::mHeight, stira::imagedata::ArrayGrid< T >::mpArrayGrid, and stira::imagedata::ArrayGrid< T >::mWidth.
stira::imagedata::ArrayGrid< T >::ArrayGrid | ( | int | width, |
int | height, | ||
bool | needsInitialization, | ||
T | intensity | ||
) |
Constructor.
width | width for grid to construct |
height | height for grid to construct |
needsInitialization | flag if grid values need to be initialized |
intensity | value to initialize grid values with if needsInitialization has value true |
References stira::imagedata::ArrayGrid< T >::mHeight, stira::imagedata::ArrayGrid< T >::mpArrayGrid, stira::imagedata::ArrayGrid< T >::mWidth, and stira::imagedata::ArrayGrid< T >::SetGridValues().
stira::imagedata::ArrayGrid< T >::ArrayGrid | ( | int | width, |
int | height, | ||
T * | pArray | ||
) |
Constructor.
width | width for grid to construct |
height | height for grid to construct |
pArray | the grid data in array form; |
References stira::imagedata::ArrayGrid< T >::mHeight, stira::imagedata::ArrayGrid< T >::mpArrayGrid, and stira::imagedata::ArrayGrid< T >::mWidth.
stira::imagedata::ArrayGrid< T >::ArrayGrid | ( | const ArrayGrid< T > & | pArrayGrid | ) |
Copy constructor.
pArrayGrid | grid from which to initialize this new grid |
References stira::imagedata::ArrayGrid< T >::CreateGridCopy().
void stira::imagedata::ArrayGrid< T >::AddGrid | ( | ArrayGrid< T > * | otherGrid | ) |
sums all values of this grid point by point with values of otherGrid Current grid is result, otherGrid stays the same
otherGrid | grid used for adding to current grid |
References stira::imagedata::ArrayGrid< T >::GetHeight(), stira::imagedata::ArrayGrid< T >::GetValue(), stira::imagedata::ArrayGrid< T >::GetWidth(), stira::imagedata::ArrayGrid< T >::mHeight, stira::imagedata::ArrayGrid< T >::mWidth, and stira::imagedata::ArrayGrid< T >::SetValue().
Referenced by stira::steerable::PyramidBurtAdelson::Decompose(), stira::deconvolve::TikhonovMillerDeconvolve::Run(), and stira::deconvolve::VanCittertLandweberDeconvolve::Run().
|
inline |
adds one to the value at position (x,y)
x | x coordinate of position where value is to be added |
y | y coordinate of position where value is to be added |
References stira::imagedata::ArrayGrid< T >::mHeight, stira::imagedata::ArrayGrid< T >::mpArrayGrid, and stira::imagedata::ArrayGrid< T >::mWidth.
Referenced by stira::histogram::JointHistogram::Write().
|
inline |
adds myValue to the value at position (x,y)
x | x coordinate of position where value is to be added |
y | y coordinate of position where value is to be added |
myValue | the value that is to be added to the current value at the specified location |
References stira::imagedata::ArrayGrid< T >::mHeight, stira::imagedata::ArrayGrid< T >::mpArrayGrid, and stira::imagedata::ArrayGrid< T >::mWidth.
Referenced by stira::imageanalysis::ContourTracing::Run().
|
protected |
help method to copy internal data from other ArrayGrid
otherArrayGrid | the other grid to copy from |
References stira::imagedata::ArrayGrid< T >::GetHeight(), stira::imagedata::ArrayGrid< T >::GetWidth(), stira::imagedata::ArrayGrid< T >::mHeight, stira::imagedata::ArrayGrid< T >::mpArrayGrid, stira::imagedata::ArrayGrid< T >::mWidth, and stira::imagedata::ArrayGrid< T >::SetGridValues().
Referenced by stira::imagedata::ArrayGrid< T >::ArrayGrid().
void stira::imagedata::ArrayGrid< T >::DivideBy | ( | double | factor | ) |
divides all grid values by real-valued myValue
myValue | the value by which all current grid values are to be divided |
References stira::imagedata::ArrayGrid< T >::mHeight, stira::imagedata::ArrayGrid< T >::mpArrayGrid, and stira::imagedata::ArrayGrid< T >::mWidth.
Referenced by stira::imagetools::GridGenerator::GenerateAiry(), stira::imagetools::GridGenerator::GenerateBars(), stira::imagetools::GridGenerator::GenerateGaussian(), and stira::deconvolve::RichardsonLucyDeconvolve::Run().
void stira::imagedata::ArrayGrid< T >::DivideBy | ( | std::complex< double > | factor | ) |
divides all grid values by complex-valued myValue
myValue | the value by which all current grid values are to be divided |
References stira::imagedata::ArrayGrid< T >::GetHeight(), stira::imagedata::ArrayGrid< T >::GetValue(), stira::imagedata::ArrayGrid< T >::GetWidth(), stira::imagedata::ArrayGrid< T >::mHeight, stira::imagedata::ArrayGrid< T >::mpArrayGrid, stira::imagedata::ArrayGrid< T >::mWidth, and stira::imagedata::ArrayGrid< T >::SetValue().
void stira::imagedata::ArrayGrid< T >::DivideBy | ( | ArrayGrid< T > * | otherGrid | ) |
divides all values of this grid point by point by values of otherGrid Current grid is result, otherGrid stays the same
otherGrid | grid used for adding to current grid |
References stira::imagedata::ArrayGrid< T >::GetHeight(), stira::imagedata::ArrayGrid< T >::GetValue(), stira::imagedata::ArrayGrid< T >::GetWidth(), stira::imagedata::ArrayGrid< T >::mHeight, stira::imagedata::ArrayGrid< T >::mWidth, and stira::imagedata::ArrayGrid< T >::SetValue().
|
inline |
divides current value at position (x,y) by myValue
x | x coordinate of position of which value is to be divided |
y | y coordinate of position of which value is to be divided |
myValue | the value that is to be added to the current value at the specified location |
References stira::imagedata::ArrayGrid< T >::mHeight, stira::imagedata::ArrayGrid< T >::mpArrayGrid, and stira::imagedata::ArrayGrid< T >::mWidth.
Referenced by stira::imagetools::NumberGridTools< T >::ComputeMandersOverlap(), and stira::imagetools::NumberGridTools< T >::ComputePearsonCorrelation().
|
inline |
Gets copy of the x'th column of the image (uses pre-allocated buffer)
x | nr of column to get a copy of |
pColumnBuffer | externally allocated buffer to copy column values into |
References stira::imagedata::ArrayGrid< T >::mHeight, stira::imagedata::ArrayGrid< T >::mpArrayGrid, and stira::imagedata::ArrayGrid< T >::mWidth.
Referenced by stira::imagedata::ArrayGrid< T >::GetColumnCopy(), and stira::imageanalysis::DistanceTransform::~DistanceTransform().
|
inline |
Gets copy of the x'th column of the image (allocates new memory)
x | nr of column to get a copy of |
References stira::imagedata::ArrayGrid< T >::GetColumnCopy(), and stira::imagedata::ArrayGrid< T >::mHeight.
|
inline |
Gets a copy of the array.
References stira::imagedata::ArrayGrid< T >::mHeight, stira::imagedata::ArrayGrid< T >::mpArrayGrid, and stira::imagedata::ArrayGrid< T >::mWidth.
|
inline |
Gets the pointer to the data array.
References stira::imagedata::ArrayGrid< T >::mpArrayGrid.
Referenced by stira::filter::AnisotropicGaussian::Run().
|
inline |
Gets copy of the y'th row of the image (uses pre-allocated buffer)
y | nr of row to get a copy of |
pRowBuffer | externally allocated buffer to copy row values into |
References stira::imagedata::ArrayGrid< T >::mpArrayGrid, and stira::imagedata::ArrayGrid< T >::mWidth.
Referenced by stira::imagedata::ArrayGrid< T >::GetRowCopy(), and stira::imageanalysis::DistanceTransform::~DistanceTransform().
|
inline |
Gets copy of the y'th row of the image (allocates new memory)
y | nr of row to get a copy of |
References stira::imagedata::ArrayGrid< T >::GetRowCopy(), and stira::imagedata::ArrayGrid< T >::mWidth.
|
inline |
Gets the grid value at position (x,y)
x | the x coordinate |
y | the y coordinate |
References stira::imagedata::ArrayGrid< T >::mHeight, stira::imagedata::ArrayGrid< T >::mpArrayGrid, and stira::imagedata::ArrayGrid< T >::mWidth.
Referenced by stira::imagedata::Image::AddGaussianNoise(), stira::imagedata::ArrayGrid< T >::AddGrid(), stira::imagetools::ImageTools::ApplyJetColorMap(), stira::imagedata::Image::ApplyPoissonNoise(), stira::imagetools::NumberGridTools< T >::BinaryThreshold(), stira::imagetools::NumberGridTools< T >::BinaryThresholdInteger(), stira::imagedata::ArrayGridTools< T >::CircularShiftGrid(), stira::imagetools::NumberGridTools< T >::ClipValues(), stira::steerable::ComputeOrientation::ComputeDominantOrientationInputComplexPyramidLevel(), stira::steerable::ComputeOrientation::ComputeDominantOrientationInputFreemanAdelson(), stira::pyramidapplications::PyramidDenoiser::ComputeLaplacianShrinkagefactor(), stira::imagedata::GridStatistics< T >::ComputeLocalAbsoluteMean(), stira::imagetools::NumberGridTools< T >::ComputeLocalAutoCorrelation(), stira::imagedata::GridStatistics< T >::ComputeLocalCovariance(), stira::imagetools::NumberGridTools< T >::ComputeLocalCrossCorrelation(), stira::imagedata::GridStatistics< T >::ComputeLocalKurtosis(), stira::imagedata::GridStatistics< T >::ComputeLocalMean(), stira::imagetools::NumberGridTools< T >::ComputeLocalSquaredDifference(), stira::imagedata::GridStatistics< T >::ComputeLocalVariance(), stira::fouriertools::FFT::ComputeLogPowerSpectrum(), stira::imagetools::NumberGridTools< T >::ComputeMandersOverlap(), stira::imagetools::NumberGridTools< T >::ComputeMSE(), stira::imagetools::NumberGridTools< T >::ComputeMSEinROI(), stira::imagetools::NumberGridTools< T >::ComputePearsonCorrelation(), stira::filter::LocalBinaryPattern::ComputePointGLTP(), stira::filter::LocalBinaryPattern::ComputePointLBPSym(), stira::fouriertools::FFT::ComputeRadiallyAveragedSpectrum(), stira::imagedata::GridConverter::ConvertToDouble(), stira::imagedata::GridConverter::ConvertToInt(), stira::imagetools::NumberGridTools< T >::CopyValues(), stira::imagedata::Pyramid< T >::CopyValuesFrom(), stira::imagedata::ArrayGridTools< T >::CreateArrayFromGrid(), stira::filter::GaussConvolve::CreateBlurredBars(), stira::imagetools::ImageTools::CreateCheckeredImage(), stira::fouriertools::FFT::CreateComplexGridFromRealGrid(), stira::imagetools::NumberGridTools< T >::CreateDoubleGrid(), stira::imagetools::NumberGridTools< T >::CreateDoubleGridFromComplexGrid(), stira::imagetools::NumberGridTools< T >::CreateIntGrid(), stira::imageanalysis::WatershedMeyer< T >::CreateLabelsIntensitiesImage(), stira::imageanalysis::WatershedMeyer< T >::CreateLabelsRidgeImage(), stira::imagetools::NumberGridTools< T >::CreateSquaredErrorGrid(), stira::imagetools::ImageTools::CreateTransparantlyMixedImage(), stira::imagedata::GridExtender< T >::CropBorder(), stira::wavelet::CriticallySubsampledTransform::Decompose(), stira::filter::NonSeparableFilter::DetermineLocalMagnitudeAndOrientation(), stira::imagedata::ArrayGrid< T >::DivideBy(), stira::imagedata::ArrayGridTools< T >::DownSampleGrid(), stira::imagetools::DrawImageTools::DrawBoolOnInput(), stira::imagedata::ArrayGridTools< T >::ExtractSubGrid(), stira::imageanalysis::FloodFill::FloodFill(), stira::imagetools::GridGenerator::GenerateAiry(), stira::imagetools::GridGenerator::GenerateBars(), stira::imagetools::GridGenerator::GenerateGaussian(), stira::imagetools::GridGenerator::GenerateGaussianFirstDerivativeX(), stira::imagetools::GridGenerator::GenerateGaussianFirstDerivativeY(), stira::imagetools::GridGenerator::GenerateGaussianMixedDerivativesXY(), stira::imagetools::GridGenerator::GenerateGaussianSecondDerivativeX(), stira::imagetools::GridGenerator::GenerateIsingTexture(), stira::imagetools::GridGenerator::GenerateSheppLogan(), stira::imagedata::GridStatistics< T >::GetAbsMax(), stira::imagetools::NumberGridTools< T >::GetFirstDerivativeX(), stira::imagetools::NumberGridTools< T >::GetFirstDerivativeY(), stira::diffusion::AnisotropicDiffusion::GetFlowFactor(), stira::imagedata::GridStatistics< T >::GetGridIntegral(), stira::imagedata::GridStatistics< T >::GetGridKurtosis(), stira::imagedata::GridStatistics< T >::GetGridVariance(), stira::fouriertools::FFTBand::GetHeight(), stira::imagetools::ImageIO::GetInputMinMax(), stira::imagedata::GridStatistics< T >::GetLocalAbsMaximum(), stira::imagedata::GridStatistics< T >::GetLocalMaximum(), stira::imagedata::GridStatistics< T >::GetLocalMinimum(), stira::imagedata::GridStatistics< T >::GetMinMax(), stira::deconvolve::GNCDeconvolve::GetMSEDifferenceThreshold(), stira::imagetools::NumberGridTools< T >::GetSecondDerivativeXX(), stira::imagetools::NumberGridTools< T >::GetSecondDerivativeXY(), stira::imagetools::NumberGridTools< T >::GetSecondDerivativeYY(), stira::imagedata::GridStatistics< T >::GetSquaredNorm(), stira::imagedata::ArrayGrid< T >::GetValue(), stira::imagetools::NumberGridTools< T >::HardThreshold(), stira::contrastenhance::HistogramTools::HistogramEqualizeSingleBand(), stira::imageanalysis::HOG::HOG(), stira::imagedata::Image::Image(), stira::imagedata::ArrayGridTools< T >::InsertSubGrid(), stira::imagetools::ImageTools::InsertSubGrid(), stira::steerable::ComputeSteerableFilteredImages::InterpolateG(), stira::steerable::ComputeSteerableFilteredImages::InterpolateH(), stira::imagedata::GridExtender< T >::MirrorBorder(), stira::fouriertools::FFTBand::Multiply(), stira::imagedata::ArrayGrid< T >::MultiplyWith(), stira::imagetools::NumberGridTools< T >::NegateGrid(), stira::imagetools::ImageTools::Negative(), stira::imagedata::GridExtender< T >::PaddBorder(), stira::imagedata::ArrayGrid< T >::PointMirrorGrid(), stira::imageanalysis::FloodFill::PrepareValues(), stira::pyramidapplications::PyramidContrastEnhancer::PrintParameters(), stira::imagetools::NumberGridTools< T >::ProjectGridOnY(), stira::wavelet::CriticallySubsampledTransform::Reconstruct(), stira::wavelet::NonSubsampledTransform::Reconstruct(), stira::contrastenhance::HistogramTools::RemapHistogramInROI(), stira::fouriertools::FFT::RescaleGrid(), stira::imagetools::ImageIO::RescaleGrid(), stira::contrastenhance::HistogramTools::RobustLinearRescaleNoNew(), stira::imagetools::NumberGridTools< T >::Rotate180Degrees(), stira::imagetools::NumberGridTools< T >::Rotate90DegreesClockwise(), stira::imagetools::NumberGridTools< T >::Rotate90DegreesCounterClockwise(), stira::imageanalysis::FindMaximalIncludedRectangles::Run(), stira::imagetools::NearestNeighborInterpolator::Run(), stira::imagetools::BilinearInterpolator::Run(), stira::imagetools::BicubicInterpolator::Run(), stira::imageanalysis::DistanceTransform::Run(), stira::contrastenhance::AdaptiveHistogramEqualizer::Run(), stira::filter::AdaptiveBilateralFilter::Run(), stira::filter::LaplacianOfGaussianFilter::Run(), stira::filter::NonSeparableFilter::Run(), stira::imageanalysis::ContourTracing::Run(), stira::pyramidapplications::PyramidContrastEnhancer::Run(), stira::deconvolve::TikhonovMillerDeconvolve::Run(), stira::diffusion::AnisotropicDiffusion::Run(), stira::deconvolve::RichardsonLucyDeconvolve::Run(), stira::degradationestimation::BlurEstimatorHu::Run(), stira::imageanalysis::StegerLineDetector::Run(), stira::deconvolve::VanCittertLandweberDeconvolve::Run(), stira::filter::LocalBinaryPattern::RunClassic(), stira::filter::SeparableFilter::RunColumn(), stira::filter::MedianFilter::RunHybridMedian(), stira::filter::MedianFilter::RunMedian(), stira::imageanalysis::Thinning< T >::RunPruning(), stira::filter::SeparableFilter::RunRow(), stira::deconvolve::WienerDeconvolve::RunSingleband(), stira::imageanalysis::Thinning< T >::RunThinning(), stira::imagedata::ArrayGrid< T >::SetGridValues(), stira::imagetools::ImageIO::SetOpenCvColorValue(), stira::contrastenhance::AdaptiveEnhanceLuong::SetWindowSize(), stira::filter::LocalBinaryPattern::SignComparison(), stira::histogram::Spatiogram::Spatiogram(), stira::imagedata::ArrayGrid< T >::SubtractGrid(), stira::fouriertools::FFTCalculator::SwitchQuadrants(), stira::imagedata::ArrayGrid< T >::SwitchQuadrants(), stira::filter::GaussConvolve::UpsampleGaussianInterpolated(), stira::imagedata::ArrayGridTools< T >::UpSampleGrid(), stira::histogram::Spatiogram::Write(), stira::histogram::JointHistogram::Write(), stira::histogram::IntHistogram::Write(), stira::imagetools::ImageIO::WriteOpenCV(), stira::imagetools::ImageIO::WritePGM(), stira::imagetools::ImageIO::WriteTXT(), stira::imageanalysis::CannyEdgeDetector::~CannyEdgeDetector(), stira::wavelet::NoiseEstimator::~NoiseEstimator(), stira::pyramidapplications::PyramidKeyPointDetector::~PyramidKeyPointDetector(), stira::registration::RegistrationWrapper::~RegistrationWrapper(), stira::contrastenhance::Retinex::~Retinex(), stira::deconvolve::SimulateDegradation::~SimulateDegradation(), stira::wavelet::SubsampledTransform::~SubsampledTransform(), and stira::imageanalysis::WatershedMeyer< T >::~WatershedMeyer().
|
inline |
Gets the value at a given point.
pt | point where to get the value |
References stira::imagedata::ArrayGrid< T >::GetValue(), stira::imagedata::ArrayGrid< T >::mHeight, stira::imagedata::ArrayGrid< T >::mWidth, stira::common::Point< T >::x, and stira::common::Point< T >::y.
|
inline |
muliplies current value at position (x,y) with myValue
x | x coordinate of position of which value is to be multiplied |
y | y coordinate of position of which value is to be multiplied |
myValue | the value with which the current value at the specified location is to be multiplied |
References stira::imagedata::ArrayGrid< T >::mHeight, stira::imagedata::ArrayGrid< T >::mpArrayGrid, and stira::imagedata::ArrayGrid< T >::mWidth.
Referenced by stira::pyramidapplications::PyramidContrastEnhancer::PrintParameters(), stira::imageanalysis::ContourTracing::Run(), and stira::pyramidapplications::PyramidContrastEnhancer::Run().
void stira::imagedata::ArrayGrid< T >::MultiplyWith | ( | double | factor | ) |
muliplies all grid values with real-valued myValue
myValue | the value with which all current grid values are to be multiplied |
References stira::imagedata::ArrayGrid< T >::mHeight, stira::imagedata::ArrayGrid< T >::mpArrayGrid, and stira::imagedata::ArrayGrid< T >::mWidth.
Referenced by stira::fouriertools::TransferFunctionGenerator::GenerateLogGaborBandTransferFunction(), stira::imagetools::ImageIO::RescaleGrid(), stira::deconvolve::TikhonovMillerDeconvolve::Run(), stira::deconvolve::RichardsonLucyDeconvolve::Run(), stira::deconvolve::VanCittertLandweberDeconvolve::Run(), stira::filter::GaussConvolve::UpsampleGaussianInterpolated(), and stira::filter::UnsharpMask::~UnsharpMask().
void stira::imagedata::ArrayGrid< T >::MultiplyWith | ( | std::complex< double > | factor | ) |
muliplies all grid values with complex-valued myValue
myValue | the value with which all current grid values are to be multiplied |
References stira::imagedata::ArrayGrid< T >::mHeight, stira::imagedata::ArrayGrid< T >::mpArrayGrid, and stira::imagedata::ArrayGrid< T >::mWidth.
void stira::imagedata::ArrayGrid< T >::MultiplyWith | ( | ArrayGrid< T > * | otherGrid | ) |
multiplies all values of this grid point by point with values of otherGrid Current grid is result, otherGrid stays the same
otherGrid | grid used for multiplying current grid |
References stira::imagedata::ArrayGrid< T >::GetHeight(), stira::imagedata::ArrayGrid< T >::GetValue(), stira::imagedata::ArrayGrid< T >::GetWidth(), stira::imagedata::ArrayGrid< T >::mHeight, stira::imagedata::ArrayGrid< T >::mWidth, and stira::imagedata::ArrayGrid< T >::SetValue().
|
inline |
Overloaded operator (x, y)
x | row index (along width) |
y | column index (along height) http://www.parashift.com/c++-faq-lite/operator-overloading.html#faq-13.10 |
References stira::imagedata::ArrayGrid< T >::mHeight, stira::imagedata::ArrayGrid< T >::mpArrayGrid, and stira::imagedata::ArrayGrid< T >::mWidth.
|
inline |
Overloaded operator (x, y)
x | row index (along width) |
y | column index (along height) http://www.parashift.com/c++-faq-lite/operator-overloading.html#faq-13.10 |
References stira::imagedata::ArrayGrid< T >::mHeight, stira::imagedata::ArrayGrid< T >::mpArrayGrid, and stira::imagedata::ArrayGrid< T >::mWidth.
|
inline |
sets all values for all grid positions to 'value'
value | value to assign to all grid positions as initialization |
References stira::imagedata::ArrayGrid< T >::mHeight, stira::imagedata::ArrayGrid< T >::mWidth, and stira::imagedata::ArrayGrid< T >::SetValue().
Referenced by stira::imagedata::ArrayGrid< T >::ArrayGrid(), stira::imagedata::ArrayGrid< T >::CreateGridCopy(), stira::imageanalysis::WatershedMeyer< T >::CreateLabelsIntensitiesImage(), stira::imageanalysis::WatershedMeyer< T >::GetWatershedGrid(), stira::imageanalysis::WatershedToboggan::Run(), stira::imageanalysis::StegerLineDetector::Run(), stira::filter::SeparableFilter::RunColumn(), stira::imagetools::ColorBalancer::RunPerfectReflector(), stira::filter::SeparableFilter::RunRow(), stira::imageanalysis::Thinning< T >::RunThinning(), stira::imagedata::ArrayGridTools< T >::UpSampleGrid(), stira::pyramidapplications::PyramidKeyPointDetector::~PyramidKeyPointDetector(), and stira::imageanalysis::WatershedMeyer< T >::~WatershedMeyer().
|
inline |
Sets the value myValue at position (x,y)
x | the x coordinate |
y | the y coordinate |
myValue | value to set |
References stira::imagedata::ArrayGrid< T >::mHeight, stira::imagedata::ArrayGrid< T >::mpArrayGrid, and stira::imagedata::ArrayGrid< T >::mWidth.
Referenced by stira::imagedata::Image::AddGaussianNoise(), stira::imagedata::ArrayGrid< T >::AddGrid(), stira::imagetools::FisheyeCorrector::ApplyCorrect(), stira::fouriertools::FFTWCalculator::ApplyInverseTransform(), stira::fouriertools::KISSFFTCalculator::ApplyInverseTransform(), stira::imagedata::Image::ApplyPoissonNoise(), stira::imagedata::Image::ApplySaltAnPepperNoise(), stira::imagetools::NumberGridTools< T >::BinaryThreshold(), stira::imagetools::NumberGridTools< T >::BinaryThresholdInteger(), stira::imagedata::ArrayGridTools< T >::CircularShiftGrid(), stira::imagetools::NumberGridTools< T >::ClipValues(), stira::pyramidapplications::PyramidDenoiser::ComputeLaplacianShrinkagefactor(), stira::filter::LocalBinaryPattern::ComputeLBPSymImage(), stira::imagetools::NumberGridTools< T >::ComputeLocalAutoCorrelation(), stira::fouriertools::FFT::ComputeLogPowerSpectrum(), stira::imagetools::NumberGridTools< T >::ComputeMandersOverlap(), stira::imagetools::NumberGridTools< T >::ComputePearsonCorrelation(), stira::fouriertools::FFT::ComputePowerSpectrum(), stira::imagetools::NumberGridTools< T >::ComputeSSIM(), stira::imagetools::NumberGridTools< T >::ComputeSSIMinROI(), stira::imagedata::GridConverter::ConvertToDouble(), stira::fouriertools::FFTBand::ConvertToImaginaryGrid(), stira::imagedata::GridConverter::ConvertToInt(), stira::fouriertools::FFTBand::ConvertToRealGrid(), stira::imagetools::NumberGridTools< T >::CopyValues(), stira::imagedata::Pyramid< T >::CopyValuesFrom(), stira::filter::GaussConvolve::CreateBlurredBars(), stira::imagetools::ImageTools::CreateCheckeredImage(), stira::fouriertools::FFT::CreateComplexGridFromRealGrid(), stira::imagetools::NumberGridTools< T >::CreateDoubleGrid(), stira::imagetools::NumberGridTools< T >::CreateDoubleGridFromComplexGrid(), stira::imagedata::ArrayGridTools< T >::CreateGridFromArray(), stira::imagetools::NumberGridTools< T >::CreateIntGrid(), stira::fouriertools::FFT::CreateRealGridFromComplexGrid(), stira::imagetools::NumberGridTools< T >::CreateSquaredErrorGrid(), stira::imagetools::ImageTools::CreateTransparantlyMixedImage(), stira::imagedata::GridExtender< T >::CropBorder(), stira::wavelet::CriticallySubsampledTransform::Decompose(), stira::imagedata::ArrayGrid< T >::DivideBy(), stira::imagedata::ArrayGridTools< T >::DownSampleGrid(), stira::imagetools::DrawImageTools::DrawPoint(), stira::imagetools::DrawImageTools::DrawPoints(), stira::imagetools::DrawImageTools::DrawRectangle(), stira::fouriertools::FFTBand::ExportAbsImage(), stira::imagedata::OrientationGrid::ExtractMagnitudeGrid(), stira::imagedata::OrientationGrid::ExtractOrientationGrid(), stira::imagedata::ArrayGridTools< T >::ExtractSubGrid(), stira::steerable::ComputeSteerableFilteredImages::FilterAlongDominantOrientationG(), stira::steerable::ComputeSteerableFilteredImages::FilterAlongDominantOrientationH(), stira::imageanalysis::FloodFill::FloodFill(), stira::imagetools::GridGenerator::GenerateAiry(), stira::fouriertools::TransferFunctionGenerator::GenerateAxisSuppressTransferFunction(), stira::imagetools::GridGenerator::GenerateBars(), stira::imagetools::GridGenerator::GenerateDeltaPeak(), stira::imagetools::GridGenerator::GenerateEmptyPlusGaussianNoise(), stira::imagetools::GridGenerator::GenerateEuclideanSpots(), stira::imagetools::GridGenerator::GenerateGaussian(), stira::fouriertools::TransferFunctionGenerator::GenerateGaussianAngularBand(), stira::imagetools::GridGenerator::GenerateGaussianFirstDerivativeX(), stira::imagetools::GridGenerator::GenerateGaussianFirstDerivativeY(), stira::imagetools::GridGenerator::GenerateGaussianMixedDerivativesXY(), stira::imagetools::GridGenerator::GenerateGaussianSecondDerivativeX(), stira::imagetools::GridGenerator::GenerateGaussianSecondDerivativeY(), stira::fouriertools::TransferFunctionGenerator::GenerateHighPassTransferFunction(), stira::imagetools::GridGenerator::GenerateHorizontalGradient(), stira::imagetools::GridGenerator::GenerateHorizontalSineWave(), stira::imagetools::GridGenerator::GenerateInverseZonePlate(), stira::imagetools::GridGenerator::GenerateIsingTexture(), stira::imagetools::GridGenerator::GenerateLogFrequencyContrastChart(), stira::fouriertools::TransferFunctionGenerator::GenerateLogRadiusBand(), stira::fouriertools::TransferFunctionGenerator::GenerateLowPassTransferFunction(), stira::imagetools::GridGenerator::GenerateSheppLogan(), stira::imagetools::GridGenerator::GenerateStarChart(), stira::imagetools::GridGenerator::GenerateVerticalGradient(), stira::imagetools::GridGenerator::GenerateVerticalSineWave(), stira::imagetools::GridGenerator::GenerateZonePlate(), stira::deconvolve::GNCDeconvolve::GetMSEDifferenceThreshold(), stira::filter::LocalBinaryPattern::GetSamplePoints(), stira::imageanalysis::WatershedMeyer< T >::GetWatershedGrid(), stira::imagetools::NumberGridTools< T >::HardThreshold(), stira::contrastenhance::HistogramTools::HistogramEqualizeSingleBand(), stira::imagedata::Image::Image(), stira::imagedata::ArrayGridTools< T >::InsertSubGrid(), stira::steerable::ComputeSteerableFilteredImages::InterpolateG(), stira::steerable::ComputeSteerableFilteredImages::InterpolateH(), stira::imagetools::NumberGridTools< T >::LogPolarTransform(), stira::imagedata::GridExtender< T >::MirrorBorder(), stira::imagedata::ArrayGrid< T >::MultiplyWith(), stira::imagetools::NumberGridTools< T >::NegateGrid(), stira::imagetools::ImageTools::Negative(), stira::imagedata::GridExtender< T >::PaddBorder(), stira::imagedata::ArrayGrid< T >::PointMirrorGrid(), stira::imageanalysis::FloodFill::PrepareValues(), stira::imagetools::ImageIO::ReadArrayOpenCVAsDouble(), stira::imagetools::ImageIO::ReadArrayOpenCVAsInt(), stira::imagetools::ImageIO::ReadPGMasInt(), stira::wavelet::CriticallySubsampledTransform::Reconstruct(), stira::wavelet::NonSubsampledTransform::Reconstruct(), stira::contrastenhance::HistogramTools::RemapHistogramInROI(), stira::fouriertools::FFT::RescaleGrid(), stira::imagetools::ImageIO::RescaleGrid(), stira::contrastenhance::HistogramTools::RobustLinearRescaleNoNew(), stira::imagetools::NumberGridTools< T >::Rotate180Degrees(), stira::imagetools::NumberGridTools< T >::Rotate90DegreesClockwise(), stira::imagetools::NumberGridTools< T >::Rotate90DegreesCounterClockwise(), stira::imagetools::RigidTransform::RotateAroundCenter(), stira::filter::KuwaharaFilter::Run(), stira::imageanalysis::DistanceTransform::Run(), stira::contrastenhance::AdaptiveHistogramEqualizer::Run(), stira::filter::AdaptiveBilateralFilter::Run(), stira::filter::NonSeparableFilter::Run(), stira::imageanalysis::ContourTracing::Run(), stira::deconvolve::TikhonovMillerDeconvolve::Run(), stira::deconvolve::RichardsonLucyDeconvolve::Run(), stira::imageanalysis::StegerLineDetector::Run(), stira::degradationestimation::BlurEstimatorHu::Run(), stira::deconvolve::VanCittertLandweberDeconvolve::Run(), stira::filter::LocalBinaryPattern::RunClassic(), stira::filter::SeparableFilter::RunColumn(), stira::filter::LocalBinaryPattern::RunHistogram(), stira::filter::MedianFilter::RunHybridMedian(), stira::filter::MedianFilter::RunMedian(), stira::imagetools::ColorBalancer::RunPerfectReflector(), stira::imageanalysis::Thinning< T >::RunPruning(), stira::filter::SeparableFilter::RunRow(), stira::imageanalysis::Thinning< T >::RunThinning(), stira::imagedata::ArrayGrid< T >::SetGridValues(), stira::imagetools::ImageIO::SetOpenCvColorValue(), stira::imagedata::ArrayGrid< T >::SetValue(), stira::imagedata::ArrayGrid< T >::SubtractGrid(), stira::fouriertools::FFTCalculator::SwitchQuadrants(), stira::imagedata::ArrayGrid< T >::SwitchQuadrants(), stira::filter::GaussConvolve::UpsampleGaussianInterpolated(), stira::imagedata::ArrayGridTools< T >::UpSampleGrid(), stira::steerable::PyramidMaster< T >::ViewTransferFunction(), stira::histogram::JointHistogram::Write(), stira::imagetools::ImageIO::WritePGM(), stira::imageanalysis::CannyEdgeDetector::~CannyEdgeDetector(), stira::imageanalysis::DistanceTransform::~DistanceTransform(), stira::pyramidapplications::PyramidKeyPointDetector::~PyramidKeyPointDetector(), stira::registration::RegistrationWrapper::~RegistrationWrapper(), stira::contrastenhance::Retinex::~Retinex(), stira::deconvolve::SimulateDegradation::~SimulateDegradation(), stira::histogram::Spatiogram::~Spatiogram(), stira::wavelet::SubsampledTransform::~SubsampledTransform(), stira::imageanalysis::WatershedMeyer< T >::~WatershedMeyer(), and stira::deconvolve::WienerDeconvolve::~WienerDeconvolve().
|
inline |
Sets the value myValue at the positions indicated in the vector of points.
ptVector | the vector of points of which the value must be set\ |
myValue | value to set |
References stira::imagedata::ArrayGrid< T >::GetHeight(), stira::imagedata::ArrayGrid< T >::GetWidth(), and stira::imagedata::ArrayGrid< T >::SetValue().
|
inline |
Sets a value at a given point.
pt | point where to set the value |
myValue | the value to set at position pt |
References stira::imagedata::ArrayGrid< T >::mHeight, stira::imagedata::ArrayGrid< T >::mWidth, stira::imagedata::ArrayGrid< T >::SetValue(), stira::common::Point< T >::x, and stira::common::Point< T >::y.
void stira::imagedata::ArrayGrid< T >::SubtractGrid | ( | ArrayGrid< T > * | otherGrid | ) |
subtracts from all values of this grid point by point values of otherGrid Current grid is result, otherGrid stays the same
otherGrid | grid used for adding to current grid |
References stira::imagedata::ArrayGrid< T >::GetHeight(), stira::imagedata::ArrayGrid< T >::GetValue(), stira::imagedata::ArrayGrid< T >::GetWidth(), stira::imagedata::ArrayGrid< T >::mHeight, stira::imagedata::ArrayGrid< T >::mWidth, and stira::imagedata::ArrayGrid< T >::SetValue().
Referenced by stira::steerable::PyramidBurtAdelson::GetPyramid(), stira::filter::DifferenceOfGaussians::Run(), stira::deconvolve::TikhonovMillerDeconvolve::Run(), and stira::deconvolve::VanCittertLandweberDeconvolve::Run().