GenericFrame.C File Reference

#include "Raster/GenericFrame.H"
#include "Image/ColorOps.H"
#include "Image/Normalize.H"
#include "Util/sformat.H"
#include "Video/VideoFrame.H"
#include <algorithm>
Include dependency graph for GenericFrame.C:

Go to the source code of this file.

Functions

bool operator== (const GenericFrame &f1, const GenericFrame &f2)
 Check equality of two GenericFrame objects, return true if they are identical.

Detailed Description

Discriminated union of rgb, grayscale, floating-point, and video-yuv images

Definition in file GenericFrame.C.


Function Documentation

bool operator== ( const GenericFrame f1,
const GenericFrame f2 
)

Check equality of two GenericFrame objects, return true if they are identical.

If the objects are of the same native type (and same video mode, if the native type is video), then we check equality of the native images; otherwise, we convert both images to RGB_F32 and compare the resulting images.

Definition at line 725 of file GenericFrame.C.

References GenericFrame::asGrayF32(), GenericFrame::asGrayU8(), GenericFrame::asRgbF32(), GenericFrame::asRgbU8(), GenericFrame::asVideo(), VideoFrame::getBuffer(), VideoFrame::getBufSize(), VideoFrame::getMode(), GenericFrame::GRAY_F32, GenericFrame::GRAY_U16, GenericFrame::GRAY_U8, GenericFrame::nativeType(), GenericFrame::NONE, GenericFrame::RGB_F32, GenericFrame::RGB_U16, GenericFrame::RGB_U8, GenericFrame::RGBD, and VideoFrame::toRgb().

Generated on Sun May 8 08:42:47 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3