44 #ifndef vpImageSimulator_h
45 #define vpImageSimulator_h
126 #include <visp/vpHomogeneousMatrix.h>
127 #include <visp/vpColVector.h>
128 #include <visp/vpTriangle.h>
129 #include <visp/vpRect.h>
130 #include <visp/vpImage.h>
131 #include <visp/vpCameraParameters.h>
132 #include <visp/vpPoint.h>
133 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
134 # include <visp/vpList.h>
150 BILINEAR_INTERPOLATION
151 } vpInterpolationType;
157 std::vector<vpPoint> pt;
158 std::vector<vpPoint> ptClipped;
160 vpInterpolationType interp;
167 double *normal_Cam_optim;
171 double visible_result;
179 double euclideanNorm_u,euclideanNorm_v;
184 double *vbase_u_optim;
185 double *vbase_v_optim;
188 double *Xinter_optim;
191 std::vector<vpTriangle> listTriangle;
200 bool setBackgroundTexture;
222 void init(
const char* file_image,
const std::vector<vpPoint>& X);
243 std::list<vpImageSimulator> &list,
246 std::list <vpImageSimulator> &list,
249 std::vector<vpColVector> get3DcornersTextureRectangle();
251 friend VISP_EXPORT std::ostream& operator<< (std::ostream &os,
const vpImageSimulator& );
262 cleanPrevImage = clean;
273 setBackgroundTexture =
true;
277 #ifdef VISP_BUILD_DEPRECATED_FUNCTIONS
293 bool isVisible() {
return visible;}
297 bool getPixel(
const vpImagePoint &iP,
unsigned char &Ipixelplan);
300 unsigned char &Ipixelplan);
303 bool getPixelDepth(
const vpImagePoint &iP,
double &Zpixelplan);
304 bool getPixelVisibility(
const vpImagePoint &iP,
double &Zpixelplan);
314 void getRoi(
const unsigned int &Iwidth,
const unsigned int &Iheight,
Definition of the vpMatrix class.
The class provides a data structure for the homogeneous matrices as well as a set of operations on th...
Provide simple list management.
Class to define colors available for display functionnalities.
Class that defines a RGB 32 bits structure.
void setInterpolationType(const vpInterpolationType interplt)
Generic class defining intrinsic camera parameters.
Class which enables to project an image in the 3D space and get the view of a virtual camera...
void setBackGroundTexture(const vpImage< unsigned char > &Iback)
Class that provides a data structure for the column vectors as well as a set of operations on these v...
void setCleanPreviousImage(const bool &clean, const vpColor &color=vpColor::white)
Defines a rectangle in the plane.
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
static const vpColor white