Developer Documentation
RAVL, Recognition And Vision Library
USER HOME PAGE CLASS LIST CONTENTS
Ravl - Images - Segmentation - BlueScreenC
 

  PUBLIC
BlueScreenC::BlueScreenC(int)
BlueScreenC::SetThreshold(int)
BlueScreenC::GetThreshold(void) const
BlueScreenC::Apply(ImageC &,const ImageC &) const
BlueScreenC::Apply(const ImageC &) const
BlueScreenC::Apply(ImageC &,const ImageC &) const
BlueScreenC::Apply(const ImageC &) const

   BlueScreenC   
 
Simple and fast blue screen mask generation.
 
include "Ravl/Image/BlueScreen.hh"
Source file:Ravl/Image/Processing/Segmentation/BlueScreen.hh
User Level:Normal.
Library:RavlImageProc
In Scope:RavlImageN

Comments:
Calculates "(2*Blue - (Red+Green)) < thresh" for each pixel This is the same as U - 2.3*V in YUV space

Variables:
int thresh;

Methods:
BlueScreenC(int nthresh = 40)
Constructor.

void SetThreshold(int value)
Get colour threshold
Values should be between 0 and 512

int GetThreshold() const
Get threshold used

void Apply(ImageC<ByteT> & mask,const ImageC<ByteRGBValueC> & image) const
Produce a background/foreground mask from an RGB image
255 is assigned to foreground, 0 otherwise

ImageC<ByteT> Apply(const ImageC<ByteRGBValueC> & image) const
Produce a background/foreground mask from an RGB image
255 is assigned to foreground, 0 otherwise

void Apply(ImageC<ByteT> & mask,const ImageC<ByteYUV422ValueC> & image) const
Produce a background/foreground mask from YUV 422 image
255 is assigned to foreground, 0 otherwise

ImageC<ByteT> Apply(const ImageC<ByteYUV422ValueC> & image) const
Produce a background/foreground mask from YUV 422 image
255 is assigned to foreground, 0 otherwise


Maintainer:Charles Galambos, Documentation by CxxDoc: Tue Aug 13 09:59:30 2002