31#include <visp3/rbt/vpObjectMask.h>
32#include <visp3/core/vpImage.h>
33#include <visp3/core/vpDisplay.h>
43#ifdef VISP_HAVE_OPENMP
44#pragma omp parallel for
46 for (
int i = 0; i < static_cast<int>(mask.
getSize()); ++i) {
47 Imask.
bitmap[i] =
static_cast<unsigned char>(mask.
bitmap[i] * 255.f);
static void display(const vpImage< unsigned char > &I)
error that can be emitted by ViSP classes.
@ dimensionError
Bad dimension.
Definition of the vpImage class member functions.
unsigned int getSize() const
Type * bitmap
points toward the bitmap
virtual void display(const vpImage< float > &mask, vpImage< unsigned char > &Imask) const