Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes
jafar::camera::CameraMask Class Reference

This class is a generic camera mask. More...


Detailed Description

This class is a generic camera mask.

It can be built from a given image mask, a file, parameters for omni mask, or directly omni camera. You can use it to apply the mask on an image, or to know if a pixel is masked or on the border of the mask.

Definition at line 24 of file mask.hpp.

#include <mask.hpp>

List of all members.

Public Member Functions

 CameraMask (int width, int height)
 CameraMask (char *maskFileName, int width=-1, int height=-1, int clearColor=0)
 CameraMask (jafar::image::Image *mask, int width=-1, int height=-1, int clearColor=0)
 CameraMask (double uCenter, double vCenter, double imageRadius, int width, int height, double maskRadius=0, int clearColor=0)
 CameraMask (CameraBarreto const &camera, int width=-1, int height=-1, int clearColor=0)
void apply (jafar::image::Image &image) const
 apply the mask on the image
bool isMasked (int u, int v) const
 returns whether the pixel (u,v) is masked or touches the mask.

Private Member Functions

void createDilatedMask ()
void createCircleMask (double u0, double v0, double imageRadius, double maskRadius, int width, int height)
void createImageMask (jafar::image::Image *mask, int width, int height)

Private Attributes

jafar::image::Imagemask
jafar::image::ImagedilatedMask
int clearColor
int width
int height

Constructor & Destructor Documentation

jafar::camera::CameraMask::CameraMask ( jafar::image::Image mask,
int  width = -1,
int  height = -1,
int  clearColor = 0 
)
Parameters:
maska 1 channel image representing the mask; 0 if the pixel is NOT masked, and > 0 if it is masked

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:33 for Jafar by doxygen 1.7.6.1
LAAS-CNRS