|
Jafar
|
This class is a generic camera mask. More...
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.
#include <mask.hpp>
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::Image * | mask |
| jafar::image::Image * | dilatedMask |
| int | clearColor |
| int | width |
| int | height |
| jafar::camera::CameraMask::CameraMask | ( | jafar::image::Image * | mask, |
| int | width = -1, |
||
| int | height = -1, |
||
| int | clearColor = 0 |
||
| ) |
| mask | a 1 channel image representing the mask; 0 if the pixel is NOT masked, and > 0 if it is masked |
| Generated on Wed Oct 15 2014 00:37:33 for Jafar by doxygen 1.7.6.1 |
|