40 #ifndef vpImageSimulator_h
41 #define vpImageSimulator_h
122 #include <visp3/core/vpHomogeneousMatrix.h>
123 #include <visp3/core/vpColVector.h>
124 #include <visp3/core/vpTriangle.h>
125 #include <visp3/core/vpRect.h>
126 #include <visp3/core/vpImage.h>
127 #include <visp3/core/vpCameraParameters.h>
128 #include <visp3/core/vpPoint.h>
143 BILINEAR_INTERPOLATION
144 } vpInterpolationType;
150 std::vector<vpPoint> pt;
151 std::vector<vpPoint> ptClipped;
153 vpInterpolationType interp;
160 double *normal_Cam_optim;
164 double visible_result;
172 double euclideanNorm_u,euclideanNorm_v;
177 double *vbase_u_optim;
178 double *vbase_v_optim;
181 double *Xinter_optim;
184 std::vector<vpTriangle> listTriangle;
193 bool setBackgroundTexture;
212 #ifdef VISP_HAVE_MODULE_IO
217 #ifdef VISP_HAVE_MODULE_IO
218 void init(
const char* file_image,
const std::vector<vpPoint>& X);
240 std::list<vpImageSimulator> &list,
243 std::list <vpImageSimulator> &list,
246 std::vector<vpColVector> get3DcornersTextureRectangle();
248 friend VISP_EXPORT std::ostream& operator<< (std::ostream &os,
const vpImageSimulator& );
259 cleanPrevImage = clean;
270 setBackgroundTexture =
true;
279 bool isVisible() {
return visible;}
283 bool getPixel(
const vpImagePoint &iP,
unsigned char &Ipixelplan);
286 unsigned char &Ipixelplan);
289 bool getPixelDepth(
const vpImagePoint &iP,
double &Zpixelplan);
290 bool getPixelVisibility(
const vpImagePoint &iP,
double &Zpixelplan);
300 void getRoi(
const unsigned int &Iwidth,
const unsigned int &Iheight,
Implementation of a matrix and operations on matrices.
Implementation of an homogeneous matrix and operations on such kind of matrices.
Class to define colors available for display functionnalities.
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)
Implementation of column vector and the associated operations.
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