161 std::vector<vpPoint> pt;
162 std::vector<vpPoint> ptClipped;
164 vpInterpolationType interp;
172 double *normal_Cam_optim;
176 double visible_result;
183 double frobeniusNorm_u, fronbniusNorm_v;
189 double *vbase_u_optim;
190 double *vbase_v_optim;
194 double *Xinter_optim;
197 std::vector<vpTriangle> listTriangle;
206 bool setBackgroundTexture;
226#ifdef VISP_HAVE_MODULE_IO
231#ifdef VISP_HAVE_MODULE_IO
232 void init(
const char *file_image,
const std::vector<vpPoint> &X);
253 std::vector<vpColVector> get3DcornersTextureRectangle();
255 friend VISP_EXPORT std::ostream &operator<<(std::ostream &os,
const vpImageSimulator & );
270 cleanPrevImage = clean;
282 setBackgroundTexture =
true;
292 bool isVisible() {
return visible; }
297 bool getPixel(
const vpImagePoint &iP,
unsigned char &Ipixelplan);
298 bool getPixel(
const vpImagePoint &iP, vpRGBa &Ipixelplan);
299 bool getPixel(vpImage<unsigned char> &Isrc,
const vpImagePoint &iP,
unsigned char &Ipixelplan);
300 bool getPixel(vpImage<vpRGBa> &Isrc,
const vpImagePoint &iP, vpRGBa &Ipixelplan);
301 bool getPixelDepth(
const vpImagePoint &iP,
double &Zpixelplan);
302 bool getPixelVisibility(
const vpImagePoint &iP,
double &Zpixelplan);
305 void project(
const vpColVector &_vin,
const vpHomogeneousMatrix &_cMt, vpColVector &_vout);
307 void getHomogCoord(
const vpColVector &_v, vpColVector &_vH);
309 void getCoordFromHomog(
const vpColVector &_vH, vpColVector &_v);
311 void getRoi(
const unsigned int &Iwidth,
const unsigned int &Iheight,
const vpCameraParameters &cam,
312 const std::vector<vpPoint> &point, vpRect &rect);