Go to the source code of this file.
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. | |
Variables | |
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. |
Definition in file Normalize.H.
Normalize a grayscale float image, respecting the passed flags.
Definition at line 53 of file Normalize.C.
References Image< T >::clear(), FLOAT_NORM_0_255, FLOAT_NORM_WITH_SCALE, Image< T >::getHeight(), Image< T >::getWidth(), inplaceNormalize(), inplacePaste(), max(), Range< T >::max(), Range< T >::min(), NO_INIT, rangeOf(), sformat(), and writeText().
Referenced by GenericFrame::asGrayU8Layout(), GenericFrame::asGrayU8NTSCLayout(), GenericFrame::asRgbU8Layout(), ColorizeOfilt::filterFrame(), ScaleRemoveSurprise< FLOAT >::SRScomputeBayesFeatureBias(), ScaleRemoveSurprise< FLOAT >::SRScomputeBayesFeatureCurrent(), and ScaleSurpriseControl< FLOAT >::SSCgetBetaParts().
Normalize an rgb float image, respecting the passed flags.
Definition at line 95 of file Normalize.C.
References Image< T >::beginw(), Image< T >::clear(), Image< T >::endw(), FLOAT_NORM_0_255, FLOAT_NORM_WITH_SCALE, getMinMaxC(), inplacePaste(), max(), NO_INIT, sformat(), and writeText().
Referenced by GenericFrame::asRgbU8Layout().
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(), main(), normalizeFloat(), normalizeFloatRgb(), MbariResultViewer::save(), TaskRelevanceMapTigs::save1(), WinnerTakeAllTempNote::save1(), TaskRelevanceMapKillStatic::save1(), TaskRelevanceMapTigs2::save1(), ComplexChannel::saveResults(), IntegerComplexChannel::saveResults(), IntegerRawVisualCortex::saveResults(), IntegerSimpleChannel::saveResults(), SingleChannel::saveResults(), ScaleRemoveSurprise< FLOAT >::SRScomputeBayesFeatureBias(), ScaleRemoveSurprise< FLOAT >::SRScomputeBayesFeatureCurrent(), ScaleSurpriseControl< FLOAT >::SSCgetBetaParts(), Raster::VisuFloat(), MrawvEncoder::writeFrame(), PngWriter::writeFrame(), and OutputMbariFrameSeries::writeMbariFloat().
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(), main(), mexFunction(), Stimulus2D::peekFrameSpec(), Stimulus2D::readFrame(), TaskRelevanceMapAdapter::save1(), WinnerTakeAllTempNote::save1(), AttentionGuidanceMap::save1(), RawVisualCortex::saveResults(), SpectralResidualChannel::saveResults(), ScaleRemoveSurprise< FLOAT >::SRScomputeBayesFeatureBias(), SimulationViewerEyeMvtNeuro::stop1(), 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 normalizeFloat(), and normalizeFloatRgb().