STIRA  0.1
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
stira::imagedata::ArrayGrid< T > Class Template Reference

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...
 
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...
 
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...
 
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
 

Detailed Description

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

A class to contain a regular grid of integer or float numbers, structs and even more complex objects.

Constructor & Destructor Documentation

template<class T >
stira::imagedata::ArrayGrid< T >::ArrayGrid ( int  width,
int  height 
)

Constructor.

Parameters
widthwidth for grid to construct
heightheight for grid to construct
Warning
this constructor does initialize all grid values to '0' using memset

References stira::imagedata::ArrayGrid< T >::mHeight, stira::imagedata::ArrayGrid< T >::mpArrayGrid, and stira::imagedata::ArrayGrid< T >::mWidth.

template<class T>
stira::imagedata::ArrayGrid< T >::ArrayGrid ( int  width,
int  height,
bool  needsInitialization,
intensity 
)

Constructor.

Parameters
widthwidth for grid to construct
heightheight for grid to construct
needsInitializationflag if grid values need to be initialized
intensityvalue to initialize grid values with if needsInitialization has value true
Warning
this constructor does NOT initialize the grid values if needsInitialization has value false

References stira::imagedata::ArrayGrid< T >::mHeight, stira::imagedata::ArrayGrid< T >::mpArrayGrid, stira::imagedata::ArrayGrid< T >::mWidth, and stira::imagedata::ArrayGrid< T >::SetGridValues().

template<class T>
stira::imagedata::ArrayGrid< T >::ArrayGrid ( int  width,
int  height,
T *  pArray 
)

Constructor.

Parameters
widthwidth for grid to construct
heightheight for grid to construct
pArraythe grid data in array form;
Warning
the user is responsable for passing pArray of the correct size and type!!
this constructor takes ownership of the data array pArray

References stira::imagedata::ArrayGrid< T >::mHeight, stira::imagedata::ArrayGrid< T >::mpArrayGrid, and stira::imagedata::ArrayGrid< T >::mWidth.

template<class T>
stira::imagedata::ArrayGrid< T >::ArrayGrid ( const ArrayGrid< T > &  pArrayGrid)

Copy constructor.

Parameters
pArrayGridgrid from which to initialize this new grid

References stira::imagedata::ArrayGrid< T >::CreateGridCopy().

Member Function Documentation

template<class T>
void stira::imagedata::ArrayGrid< T >::AddGrid ( ArrayGrid< T > *  otherGrid)
template<class T >
void stira::imagedata::ArrayGrid< T >::AddOne ( int  x,
int  y 
)
inline

adds one to the value at position (x,y)

Parameters
xx coordinate of position where value is to be added
yy 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().

template<class T>
void stira::imagedata::ArrayGrid< T >::AddValue ( int  x,
int  y,
myValue 
)
inline

adds myValue to the value at position (x,y)

Parameters
xx coordinate of position where value is to be added
yy coordinate of position where value is to be added
myValuethe 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().

template<class T>
bool stira::imagedata::ArrayGrid< T >::CreateGridCopy ( const ArrayGrid< T > &  otherArrayGrid)
protected
template<class T >
void stira::imagedata::ArrayGrid< T >::DivideBy ( double  factor)
template<class T >
void stira::imagedata::ArrayGrid< T >::DivideBy ( std::complex< double >  factor)
template<class T>
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

Parameters
otherGridgrid 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().

template<class T>
void stira::imagedata::ArrayGrid< T >::DivideValue ( int  x,
int  y,
myValue 
)
inline

divides current value at position (x,y) by myValue

Parameters
xx coordinate of position of which value is to be divided
yy coordinate of position of which value is to be divided
myValuethe 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().

template<class T>
void stira::imagedata::ArrayGrid< T >::GetColumnCopy ( int  x,
T *  columnBuffer 
)
inline

Gets copy of the x'th column of the image (uses pre-allocated buffer)

Parameters
xnr of column to get a copy of
pColumnBufferexternally 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().

template<class T>
T * stira::imagedata::ArrayGrid< T >::GetColumnCopy ( int  x)
inline

Gets copy of the x'th column of the image (allocates new memory)

Parameters
xnr of column to get a copy of

References stira::imagedata::ArrayGrid< T >::GetColumnCopy(), and stira::imagedata::ArrayGrid< T >::mHeight.

template<class T >
T * stira::imagedata::ArrayGrid< T >::GetDataCopy ( )
inline

Gets a copy of the array.

Warning
the user gets ownership of the returned array, and needs to clean it when finished with it!!

References stira::imagedata::ArrayGrid< T >::mHeight, stira::imagedata::ArrayGrid< T >::mpArrayGrid, and stira::imagedata::ArrayGrid< T >::mWidth.

template<class T >
T * stira::imagedata::ArrayGrid< T >::GetDataPointer ( )
inline

Gets the pointer to the data array.

Warning
this is potentially dangerous; to not delete this pointer!!

References stira::imagedata::ArrayGrid< T >::mpArrayGrid.

Referenced by stira::filter::AnisotropicGaussian::Run().

template<class T>
void stira::imagedata::ArrayGrid< T >::GetRowCopy ( int  y,
T *  pRowBuffer 
)
inline

Gets copy of the y'th row of the image (uses pre-allocated buffer)

Parameters
ynr of row to get a copy of
pRowBufferexternally 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().

template<class T>
T * stira::imagedata::ArrayGrid< T >::GetRowCopy ( int  y)
inline

Gets copy of the y'th row of the image (allocates new memory)

Parameters
ynr of row to get a copy of

References stira::imagedata::ArrayGrid< T >::GetRowCopy(), and stira::imagedata::ArrayGrid< T >::mWidth.

template<class T >
T stira::imagedata::ArrayGrid< T >::GetValue ( int  x,
int  y 
) const
inline

Gets the grid value at position (x,y)

Parameters
xthe x coordinate
ythe 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().

template<class T >
T stira::imagedata::ArrayGrid< T >::GetValue ( common::Point< int >  pt) const
inline
template<class T>
void stira::imagedata::ArrayGrid< T >::MultiplyValue ( int  x,
int  y,
myValue 
)
inline

muliplies current value at position (x,y) with myValue

Parameters
xx coordinate of position of which value is to be multiplied
yy coordinate of position of which value is to be multiplied
myValuethe 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().

template<class T >
void stira::imagedata::ArrayGrid< T >::MultiplyWith ( double  factor)
template<class T >
void stira::imagedata::ArrayGrid< T >::MultiplyWith ( std::complex< double >  factor)

muliplies all grid values with complex-valued myValue

Parameters
myValuethe 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.

template<class T>
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

Parameters
otherGridgrid 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().

template<class T >
T & stira::imagedata::ArrayGrid< T >::operator() ( int  x,
int  y 
)
inline
template<class T >
T stira::imagedata::ArrayGrid< T >::operator() ( int  x,
int  y 
) const
inline
template<class T>
void stira::imagedata::ArrayGrid< T >::SetGridValues ( value)
inline
template<class T>
void stira::imagedata::ArrayGrid< T >::SetValue ( int  x,
int  y,
myValue 
)
inline

Sets the value myValue at position (x,y)

Parameters
xthe x coordinate
ythe y coordinate
myValuevalue 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().

template<class T>
void stira::imagedata::ArrayGrid< T >::SetValue ( std::vector< common::Point< int > >  ptVector,
myValue 
)
inline

Sets the value myValue at the positions indicated in the vector of points.

Parameters
ptVectorthe vector of points of which the value must be set\
myValuevalue to set

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

template<class T>
void stira::imagedata::ArrayGrid< T >::SetValue ( common::Point< int >  pt,
myValue 
)
inline

Sets a value at a given point.

Parameters
ptpoint where to set the value
myValuethe 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.

template<class T>
void stira::imagedata::ArrayGrid< T >::SubtractGrid ( ArrayGrid< T > *  otherGrid)

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