6 #ifndef CNOID_BODYPLUGIN_FISHEYE_LENS_CONVERTER_H
7 #define CNOID_BODYPLUGIN_FISHEYE_LENS_CONVERTER_H
23 void initialize(
int width,
int height,
double fov,
int screenWidth);
34 std::vector<std::shared_ptr<Image>> screenImages;
36 bool isImageRotationEnabled;
37 bool isAntiAliasingEnabled;
44 std::vector<std::vector<ScreenIndex>> fisheyeLensMap;
50 ScreenIndex screenIndex[4];
53 std::vector<std::vector<ScreenIndex4>> fisheyeLensInterpolationMap;
56 FRONT_UR, FRONT_UL, FRONT_DR, FRONT_DL,
57 LEFT_UR, LEFT_UL, LEFT_DR, LEFT_DL,
58 RIGHT_UR, RIGHT_UL, RIGHT_DR, RIGHT_DL,
59 BOTTOM_UR, BOTTOM_UL, BOTTOM_DR, BOTTOM_DL,
60 TOP_UR, TOP_UL, TOP_DR, TOP_DL,
61 BACK_UR, BACK_UL, BACK_DR, BACK_DL
64 void setCornerPoint(
int i, Corner corner);
65 void setCubeCorner(Corner corner0, Corner corner1, Corner corner2, Corner corner3);
66 void setCenter(
int id,
double sx,
double sy);
67 void setVerticalBorder(
int id0,
int id1,
double sy);
68 void setHorizontalBorder(
int id0,
int id1,
double sx);
69 void convertImageWithoutAntiAliasing(Image* image);
70 void convertImageWithAntiAliasing(Image* image);