Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Normalize.H File Reference


Detailed Description

Definition in file Normalize.H.

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Flags for float normalization

const int FLOAT_NORM_0_255 = 1 << 0
 Normalize a float image into the range 0..255.
const int FLOAT_NORM_WITH_SCALE = 1 << 1
 Display the pre-normalization float range to the user somehow.
const int FLOAT_NORM_PRESERVE = 1 << 2
 Try to preserve the full floating-point precision, if possible.

Functions

Image< float > normalizeFloat (const Image< float > &image, const int flags)
 Normalize a grayscale float image, respecting the passed flags.
Image< PixRGB< float > > normalizeFloatRgb (const Image< PixRGB< float > > &image, const int flags)
 Normalize an rgb float image, respecting the passed flags.


Function Documentation

Image<float> normalizeFloat const Image< float > &  image,
const int  flags
 

Normalize a grayscale float image, respecting the passed flags.

Image<PixRGB<float> > normalizeFloatRgb const Image< PixRGB< float > > &  image,
const int  flags
 

Normalize an rgb float image, respecting the passed flags.


Variable Documentation

const int FLOAT_NORM_0_255 = 1 << 0
 

Normalize a float image into the range 0..255.

Definition at line 48 of file Normalize.H.

Referenced by featureClusterVision< FLOAT >::fCVrunStandAloneMSBatchTest(), ColorizeOfilt::filterFrame(), EnvSegmenterColorRegion::getFoa(), main(), normalizeFloat(), normalizeFloatRgb(), ofsWriteFloat(), MbariResultViewer::save(), WinnerTakeAllTempNote::save1(), TaskRelevanceMapTigs2::save1(), TaskRelevanceMapTigs::save1(), TaskRelevanceMapKillStatic::save1(), SingleChannel::saveResults(), IntegerSimpleChannel::saveResults(), IntegerRawVisualCortex::saveResults(), IntegerComplexChannel::saveResults(), ComplexChannel::saveResults(), QtImageFrame::setFrame(), ScaleRemoveSurprise< FLOAT >::SRScomputeBayesFeatureBias(), ScaleRemoveSurprise< FLOAT >::SRScomputeBayesFeatureCurrent(), ScaleSurpriseControl< FLOAT >::SSCgetBetaParts(), submain(), Context::testFrame(), Raster::VisuFloat(), PngWriter::writeFrame(), MrawvEncoder::writeFrame(), OutputMbariFrameSeries::writeMbariFloat(), HmaxFL::writeOutC1Patches(), and CudaHmaxFL::writeOutC1Patches().

const int FLOAT_NORM_PRESERVE = 1 << 2
 

Try to preserve the full floating-point precision, if possible.

For example, in the case of raster files, this flag would be expected to cause the image to be saved in some format with greater than 8-bit precision.

Definition at line 61 of file Normalize.H.

Referenced by RawVisualCortex::combineOutputs(), LeastSquaresLearner::getBiasMap(), mexFunction(), Stimulus2D::peekFrameSpec(), Stimulus2D::readFrame(), TrainingSet::save(), FeatureExtractor::save(), WinnerTakeAllTempNote::save1(), TaskRelevanceMapAdapter::save1(), AttentionGuidanceMap::save1(), saveRaw1(), FourierFeatureExtractor::saveRawIllustrationParts(), SpectralResidualChannel::saveResults(), RawVisualCortex::saveResults(), ScaleRemoveSurprise< FLOAT >::SRScomputeBayesFeatureBias(), Context::testFrame(), PnmWriter::writeFrame(), PngWriter::writeFrame(), and OutputMbariFrameSeries::writeMbariFloat().

const int FLOAT_NORM_WITH_SCALE = 1 << 1
 

Display the pre-normalization float range to the user somehow.

The mode of this display may depend on the exact FrameOstream subclass: it might display the original range on the console, or it draw the original range into the new image, or it might display the range in a GUI text box, etc.

Definition at line 55 of file Normalize.H.

Referenced by main(), normalizeFloat(), normalizeFloatRgb(), and Context::testFrame().


Generated on Mon Nov 23 15:48:29 2009 for iLab Neuromorphic Vision Toolkit by  doxygen 1.4.4