152 std::vector<vpPoint> pt;
153 std::vector<vpPoint> ptClipped;
155 vpInterpolationType interp;
163 double *normal_Cam_optim;
167 double visible_result;
174 double frobeniusNorm_u, fronbniusNorm_v;
180 double *vbase_u_optim;
181 double *vbase_v_optim;
185 double *Xinter_optim;
188 std::vector<vpTriangle> listTriangle;
197 bool setBackgroundTexture;
217#ifdef VISP_HAVE_MODULE_IO
222#ifdef VISP_HAVE_MODULE_IO
223 void init(
const char *file_image,
const std::vector<vpPoint> &X);
244 std::vector<vpColVector> get3DcornersTextureRectangle();
246 friend VISP_EXPORT std::ostream &operator<<(std::ostream &os,
const vpImageSimulator & );
261 cleanPrevImage = clean;
273 setBackgroundTexture =
true;
283 bool isVisible() {
return visible; }
288 bool getPixel(
const vpImagePoint &iP,
unsigned char &Ipixelplan);
289 bool getPixel(
const vpImagePoint &iP, vpRGBa &Ipixelplan);
290 bool getPixel(vpImage<unsigned char> &Isrc,
const vpImagePoint &iP,
unsigned char &Ipixelplan);
291 bool getPixel(vpImage<vpRGBa> &Isrc,
const vpImagePoint &iP, vpRGBa &Ipixelplan);
292 bool getPixelDepth(
const vpImagePoint &iP,
double &Zpixelplan);
293 bool getPixelVisibility(
const vpImagePoint &iP,
double &Zpixelplan);
296 void project(
const vpColVector &_vin,
const vpHomogeneousMatrix &_cMt, vpColVector &_vout);
298 void getHomogCoord(
const vpColVector &_v, vpColVector &_vH);
300 void getCoordFromHomog(
const vpColVector &_vH, vpColVector &_v);
302 void getRoi(
const unsigned int &Iwidth,
const unsigned int &Iheight,
const vpCameraParameters &cam,
303 const std::vector<vpPoint> &point, vpRect &rect);