Developer Documentation |
RAVL, Recognition And Vision Library |
USER | HOME PAGE | CLASS LIST | CONTENTS |
Ravl - Images - Segmentation - ChromaThresholdRGBC |
PUBLIC |
ChromaThresholdRGBC::operator <<(ostream &,const ChromaThresholdRGBC &) ChromaThresholdRGBC::operator >>(istream &,ChromaThresholdRGBC &) ChromaThresholdRGBC::ChromaThresholdRGBC(void) ChromaThresholdRGBC::ChromaThresholdRGBC(RealT,RealT,RealT,RealT,RealT,RealT,RealT,ByteT,ByteT,ByteT) ChromaThresholdRGBC::ChromaThresholdRGBC(const ImageC ChromaThresholdRGBC::Apply(ImageC ChromaThresholdRGBC::Apply(ImageC ChromaThresholdRGBC::ApplyCopyAlpha(ImageC ChromaThresholdRGBC::ApplyCopyAlpha(ImageC |
ChromaThresholdRGBC | |
Chroma threholding | |
include | "Ravl/Image/ChromaThreshold.hh" |
Source file: | Ravl/Image/Processing/Segmentation/ChromaThreshold.hh |
User Level: | Normal |
Library: | RavlImageProc |
In Scope: | RavlImageN |
This is a multi-purpose class for searching for a known colour in an rgb image. Can be used for skin colour detection, blue-screening, etc. Is intended as an easy way to try out new ideas, rather than a very efficient or accurate method.
RGB is normalised by intensity to be robust to illumination changes. The range of colours to be found are modelled as a gaussian. The (incorrect) assumption is made that normalised rgb components are independent, but this seems to work well for many applications. The gaussian can either be constructed directly, or computed from an example image containing only the required colour.
Variables:nr0 | mean red component |
ng0 | mean green component |
nb0 | mean blue component |
nrw | inverse variance of red component |
ngw | inverse variance of green component |
nbw | inverse variance of blue component |
nblack_thresh | luminance in range (0,1] below which a pixel is considered black rather than coloured. |
nlabel_match | label to give to pixels which match the specified colour |
nlabel_no_match | label to give to pixels which do not match the specified colour |
nlabel_black | label to give to black pixels (ones below nblack_thresh) |
image | example image containing only the required colour |
nblack_thresh | luminance in range (0,1] below which a pixel is considered black rather than coloured. |
nlabel_match | label to give to pixels which match the specified colour |
nlabel_no_match | label to give to pixels which do not match the specified colour |
nlabel_black | label to give to black pixels (ones below nblack_thresh) |
Maintainer:Joel Mitchelson, Documentation by CxxDoc: Tue Aug 13 09:59:30 2002 |