#include <iostream>
#include <youbot_overhead_vision/markerCoords.h>
#include <youbot_overhead_vision/CalibCameraImg.h>
#include "image_calibration.h"
#include "yaml-cpp/yaml.h"
Go to the source code of this file.
Classes | |
class | createCalibs |
This class allows for easy calibration file generation. More... | |
Defines | |
#define | PI 3.14159 |
#define | SCREEN_RESIZE 2 |
#define | ZOOM_CONSTANT 4 |
Functions | |
void | myMouseCallback (int event, int x, int y, int flags, void *param) |
Variables | |
uint8_t | clickedColorB |
uint8_t | clickedColorG |
uint8_t | clickedColorR |
bool | mouseEvent |
int | mouseX |
int | mouseY |
bool | roomBoundaryModeFlag |
vector< cv::Point > | roomBoundaryPoints |
bool | savePointToBothCameraFlag |
bool | zoom |
int | zoomQuadX |
int | zoomQuadY |
#define PI 3.14159 |
Definition at line 22 of file create_calibs.h.
#define SCREEN_RESIZE 2 |
Definition at line 25 of file create_calibs.h.
#define ZOOM_CONSTANT 4 |
Definition at line 24 of file create_calibs.h.
void myMouseCallback | ( | int | event, |
int | x, | ||
int | y, | ||
int | flags, | ||
void * | param | ||
) |
Mouse call back event function. Has to be outside of the createCalibs class to function properly. This function turns on a flag when the left mouse button has been pressed, and saves the colors of the pixel where the mouse was pressed. This is used in showImage to create a new calibration object with these colors when it sees the mouseEvent flag was set to true.
event,: | marks what kind of mouse even was recorded |
x,: | x value of the position of the cursor |
y,: | y value of the position of the cursor |
flags,: | bitfield of flags (ie: control key pressed, shift key pressed, etc) |
param,: | pointer to the image. |
Definition at line 338 of file create_calibs.cpp.
uint8_t clickedColorB |
Definition at line 30 of file create_calibs.h.
uint8_t clickedColorG |
Definition at line 29 of file create_calibs.h.
uint8_t clickedColorR |
Definition at line 28 of file create_calibs.h.
bool mouseEvent |
Definition at line 27 of file create_calibs.h.
int mouseX |
Definition at line 32 of file create_calibs.h.
int mouseY |
Definition at line 33 of file create_calibs.h.
bool roomBoundaryModeFlag |
Definition at line 36 of file create_calibs.h.
vector<cv::Point> roomBoundaryPoints |
Definition at line 37 of file create_calibs.h.
Definition at line 31 of file create_calibs.h.
bool zoom |
Definition at line 40 of file create_calibs.h.
int zoomQuadX |
Definition at line 41 of file create_calibs.h.
int zoomQuadY |
Definition at line 42 of file create_calibs.h.