2D roi More...
#include <image_processing.h>
Public Member Functions | |
void | clear () |
bool | empty () const |
ImageRoi () | |
ImageRoi (const ImageRoi &roi) | |
ImageRoi (int left, int top, int w, int h) | |
ImageRoi (CvRect rect) | |
void | keepInside (int imgWidth, int imgHeight) |
const ImageRoi & | resize (double factorHorizontal, double factorVertical) |
void | set (CvRect rect) |
CvRect | toCvRect () const |
~ImageRoi () | |
Public Attributes | |
int | height |
int | width |
int | x |
int | y |
2D roi
Definition at line 66 of file image_processing.h.
Definition at line 100 of file image_processing.cpp.
pal_vision_util::ImageRoi::ImageRoi | ( | const ImageRoi & | roi | ) |
Definition at line 105 of file image_processing.cpp.
pal_vision_util::ImageRoi::ImageRoi | ( | int | left, |
int | top, | ||
int | w, | ||
int | h | ||
) |
Definition at line 113 of file image_processing.cpp.
pal_vision_util::ImageRoi::ImageRoi | ( | CvRect | rect | ) |
Definition at line 117 of file image_processing.cpp.
Definition at line 122 of file image_processing.cpp.
void pal_vision_util::ImageRoi::clear | ( | void | ) |
Definition at line 134 of file image_processing.cpp.
bool pal_vision_util::ImageRoi::empty | ( | void | ) | const |
Definition at line 142 of file image_processing.cpp.
void pal_vision_util::ImageRoi::keepInside | ( | int | imgWidth, |
int | imgHeight | ||
) |
Clips the current roi so that it does not fall outside an image of given width and height
Definition at line 156 of file image_processing.cpp.
const ImageRoi & pal_vision_util::ImageRoi::resize | ( | double | factorHorizontal, |
double | factorVertical | ||
) |
Resize the roi width and height by the given factors and keep it centered in the same pixel
Definition at line 184 of file image_processing.cpp.
void pal_vision_util::ImageRoi::set | ( | CvRect | rect | ) |
Definition at line 126 of file image_processing.cpp.
CvRect pal_vision_util::ImageRoi::toCvRect | ( | ) | const |
Definition at line 147 of file image_processing.cpp.
Definition at line 98 of file image_processing.h.
Definition at line 98 of file image_processing.h.
Definition at line 98 of file image_processing.h.
Definition at line 98 of file image_processing.h.