GenericFrame.H File Reference

#include "Image/Image.H"
#include "Image/Layout.H"
#include "Image/Pixels.H"
#include "Video/VideoFrame.H"
#include "rutz/shared_ptr.h"
#include <string>
#include <map>
Include dependency graph for GenericFrame.H:

Go to the source code of this file.

Classes

class  GenericFrame
 Discriminated union of rgb, grayscale, floating-point, and video-yuv images. More...
class  GenericFrame::MetaData
 MetaData for storing frame spacific information. More...
struct  GenericFrameSpec
 Gives specification of a GenericFrame. More...

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


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