
Definition in file ImageSetOps.C.
#include "Image/ImageSetOps.H"
#include "Image/DrawOps.H"
#include "Image/FilterOps.H"
#include "Image/Image.H"
#include "Image/ImageSet.H"
#include "Image/MathOps.H"
#include "Image/Range.H"
#include "Image/ShapeOps.H"
#include "Util/Assert.H"
#include "rutz/compat_cmath.h"
#include "inst/Image/ImageSetOps.I"
Include dependency graph for ImageSetOps.C:

Go to the source code of this file.
Functions | |
| template<class T> | |
| bool | isHomogeneous (const ImageSet< T > &x) |
| template<class T> | |
| bool | isDyadic (const ImageSet< T > &pyr) |
| template<class T> | |
| Image< T > | sum (const ImageSet< T > &x) |
| Returns the sum of all the images in the set. Requires isHomogeneous(). | |
| template<class T> | |
| Image< T > | mean (const ImageSet< T > &x) |
| Returns the sum of all the images in the set. Requires isHomogeneous(). | |
| template<class T> | |
| Range< T > | rangeOf (const ImageSet< T > &x) |
| Returns the overall range of all images in the set. | |
| template<class T> | |
| ImageSet< T > | takeSlice (const ImageSet< T > *sets, uint nsets, uint level) |
| Make an ImageSet from the s'th level from each of the N input sets. | |
| template<class T> | |
| Image< T > | makeImageArray (const ImageSet< T > &x, int Nx, int grid_width, T grid_color, int destX, int destY) |
| Make a single image-array from the set (see concatArray() in Image_ShapeOps). | |
| template<class T> | |
| ImageSet< T > | reduce (const ImageSet< T > &x, int octaves) |
| Make a new ImageSet by downscaling the input by the given number of octaves. | |
| template<class T> | |
| ImageSet< T > | rescale (const ImageSet< T > &x, const Dims &dims) |
| Make a new ImageSet by rescaling each input image to the given dimensions. | |
| ImageSet< float > | orientedFilterSet (const Image< float > &lowPassedInput, float period, const float *angles, const uint numAngles) |
| template<class T> | |
| ImageSet< T > & | operator-= (ImageSet< T > &x, const Image< T > &y) |
| x -= y, for each image in x; requires isHomogeneous(x). | |
| template<class T> | |
| ImageSet< T > & | operator+= (ImageSet< T > &x, const Image< T > &y) |
| x += y, for each image in x; requires isHomogeneous(x). | |
| template<class T> | |
| ImageSet< T > & | operator *= (ImageSet< T > &x, const Image< T > &y) |
| x *= y, for each image in x; requires isHomogeneous(x). | |
| template<class T> | |
| ImageSet< T > & | operator/= (ImageSet< T > &x, const Image< T > &y) |
| x /= y, for each image in x; requires isHomogeneous(x). | |
| template<class T> | |
| ImageSet< T > & | operator-= (ImageSet< T > &x, const T &v) |
| x -= v, for each image in x | |
| template<class T> | |
| ImageSet< T > & | operator+= (ImageSet< T > &x, const T &v) |
| x += v, for each image in x | |
| template<class T> | |
| ImageSet< T > & | operator *= (ImageSet< T > &x, const T &v) |
| x *= v, for each image in x | |
| template<class T> | |
| ImageSet< T > & | operator/= (ImageSet< T > &x, const T &v) |
| x /= v, for each image in x | |
| template<class T> | |
| ImageSet< T > | operator- (ImageSet< T > &x, const T &v) |
| x - v, for each image in x | |
| template<class T> | |
| ImageSet< T > | operator+ (ImageSet< T > &x, const T &v) |
| x + v, for each image in x | |
| template<class T> | |
| ImageSet< T > | operator * (ImageSet< T > &x, const T &v) |
| x * v, for each image in x | |
| template<class T> | |
| ImageSet< T > | operator/ (ImageSet< T > &x, const T &v) |
| x / v, for each image in x | |
| template<class T> | |
| ImageSet< T > & | operator-= (ImageSet< T > &x, const ImageSet< T > &y) |
| x -= y, for each image in x with the respective image in y | |
| template<class T> | |
| ImageSet< T > & | operator+= (ImageSet< T > &x, const ImageSet< T > &y) |
| x += y, for each image in x with the respective image in y | |
| template<class T> | |
| ImageSet< T > & | operator *= (ImageSet< T > &x, const ImageSet< T > &y) |
| x *= y, for each image in x with the respective image in y | |
| template<class T> | |
| ImageSet< T > & | operator/= (ImageSet< T > &x, const ImageSet< T > &y) |
| x /= y, for each image in x with the respective image in y | |
| template<class T> | |
| ImageSet< T > | clampedDiff (const ImageSet< T > &b, const ImageSet< T > &c) |
| clampedDiff(b,c) for each image | |
| template<class T> | |
| void | doRectify (ImageSet< T > &x) |
| x = rectify(x), for each image in x | |
| template<class T> | |
| void | doLowThresh (ImageSet< T > &x, const T threshold, const T newval) |
| For each image in x, replace values < threshold with newval. | |
| template<class T> | |
| void | doLowThreshAbs (ImageSet< T > &x, const T threshold, const T newval) |
| For each image in x, replace values whose abs is < threshold with newval. | |
| template<class T> | |
| void | doSqrt (ImageSet< T > &x) |
| For each image in x, take the square root at every pixel. | |
| void | doMeanNormalize (ImageSet< float > &x) |
| void | doOneNormalize (ImageSet< float > &x) |
| void | doEnergyNorm (ImageSet< float > &x) |
| void | doApplyBiases (ImageSet< float > &x, const float *biases) |
| void | doAddWeighted (ImageSet< float > &x, const ImageSet< float > &y, float multiple) |
| void | doClear (ImageSet< float > &x, float v) |
| template bool | isDyadic (const ImageSet< int > &pyr) |
|
||||||||||||||||
|
clampedDiff(b,c) for each image
Definition at line 416 of file ImageSetOps.C. Referenced by clampedDiff(), ImageCacheAvg< T >::clampedDiffMean(), OrientationChannel::doInteractions(), and main(). |
|
||||||||||||||||||||
|
For each image in x, replace values < threshold with newval.
Definition at line 443 of file ImageSetOps.C. References i, inplaceLowThresh(), and ImageSet< T >::size(). Referenced by SingleChannel::computePyramid(), OrientationChannel::doInteractions(), and SingleChannel::setClipPyramid(). |
|
||||||||||||||||||||
|
For each image in x, replace values whose abs is < threshold with newval.
Definition at line 451 of file ImageSetOps.C. References i, inplaceLowThreshAbs(), and ImageSet< T >::size(). Referenced by SingleChannel::computePyramid(). |
|
||||||||||
|
x = rectify(x), for each image in x
Definition at line 435 of file ImageSetOps.C. References i, inplaceRectify(), and ImageSet< T >::size(). Referenced by SingleChannel::computePyramid(), and ContourChannel::doInput(). |
|
||||||||||
|
For each image in x, take the square root at every pixel.
Definition at line 459 of file ImageSetOps.C. References i, ImageSet< T >::size(), and sqrt(). Referenced by DirectionChannel::computePyramid(). |
|
||||||||||||||||||||||||||||||||
|
Make a single image-array from the set (see concatArray() in Image_ShapeOps).
Definition at line 148 of file ImageSetOps.C. References concatArray(), drawGrid(), i, isDyadic(), ImageSet< T >::size(), sqrt(), y, and zoomXY(). Referenced by ContourChannel::doInput(), and main(). |
|
||||||||||
|
||||||||||||||||
|
x * v, for each image in x
Definition at line 352 of file ImageSetOps.C. |
|
||||||||||||||||
|
x *= y, for each image in x with the respective image in y
Definition at line 392 of file ImageSetOps.C. References ASSERT, i, and ImageSet< T >::size(). |
|
||||||||||||||||
|
x *= v, for each image in x
Definition at line 316 of file ImageSetOps.C. |
|
||||||||||||||||
|
x *= y, for each image in x; requires isHomogeneous(x).
Definition at line 272 of file ImageSetOps.C. |
|
||||||||||||||||
|
x + v, for each image in x
Definition at line 344 of file ImageSetOps.C. |
|
||||||||||||||||
|
x += y, for each image in x with the respective image in y
Definition at line 380 of file ImageSetOps.C. |
|
||||||||||||||||
|
x += v, for each image in x
Definition at line 306 of file ImageSetOps.C. |
|
||||||||||||||||
|
x += y, for each image in x; requires isHomogeneous(x).
Definition at line 260 of file ImageSetOps.C. |
|
||||||||||||||||
|
x - v, for each image in x
Definition at line 336 of file ImageSetOps.C. |
|
||||||||||||||||
|
x -= y, for each image in x with the respective image in y
Definition at line 368 of file ImageSetOps.C. |
|
||||||||||||||||
|
x -= v, for each image in x
Definition at line 296 of file ImageSetOps.C. |
|
||||||||||||||||
|
x -= y, for each image in x; requires isHomogeneous(x).
Definition at line 248 of file ImageSetOps.C. |
|
||||||||||||||||
|
x / v, for each image in x
Definition at line 360 of file ImageSetOps.C. |
|
||||||||||||||||
|
x /= y, for each image in x with the respective image in y
Definition at line 404 of file ImageSetOps.C. References ASSERT, i, and ImageSet< T >::size(). |
|
||||||||||||||||
|
x /= v, for each image in x
Definition at line 326 of file ImageSetOps.C. |
|
||||||||||||||||
|
x /= y, for each image in x; requires isHomogeneous(x).
Definition at line 284 of file ImageSetOps.C. |
|
||||||||||
|
Returns the overall range of all images in the set.
Definition at line 120 of file ImageSetOps.C. Referenced by buildPyrRetinexLog(), buildTitle(), doOneNormalize(), BackpropLearner::getBiasMap(), FourierFeatureExtractor::illustrate(), Image_xx_rangeOf_xx_1(), Image_xx_rangeOf_xx_2(), Image_xx_sepFilter_xx_1(), Image_xx_sepFilter_xx_3(), Image_xx_sepFilter_xx_4(), Image_xx_sepFilter_xx_5(), inspect(), main(), makeSumoDisplay(), normalizeFloat(), rangeOf(), and stainImg(). |
|
||||||||||||||||
|
Make a new ImageSet by downscaling the input by the given number of octaves.
Definition at line 192 of file ImageSetOps.C. References decXY(), i, lowPass3(), n, and ImageSet< T >::size(). Referenced by ContourChannel::doInput(), and main(). |
|
||||||||||||||||
|
||||||||||
|
Returns the sum of all the images in the set. Requires isHomogeneous().
Definition at line 95 of file ImageSetOps.C. |
|
||||||||||||||||||||
|
Make an ImageSet from the s'th level from each of the N input sets. This is useful, for example, in transforming an array of ImageSets from multiple-scales-per-set/one-orientation-per-set into the reverse, multiple-orientations-per-set/one-scale-per-set. Definition at line 134 of file ImageSetOps.C. References i. Referenced by ContourChannel::doInput(). |
1.4.4