Jafar
|
Generic Roi (non convex) implemented with slices NOT TESTED AT ALL (in particular union, intersection and scaling) so NEEDS TESTING BEFORE USING. More...
Generic Roi (non convex) implemented with slices NOT TESTED AT ALL (in particular union, intersection and scaling) so NEEDS TESTING BEFORE USING.
#include <roi.hpp>
Classes | |
struct | SliceImpl |
Public Types | |
typedef std::vector< SliceImpl * > | SliceRoiImpl |
Public Member Functions | |
SliceRoi (cv::Rect &rect) | |
SliceRoi (int x, int y, int width, int height) | |
SliceRoi (jblas::vec2 x, jblas::sym_mat22 P, double scale) | |
SliceRoi (const SliceRoi &roi) | |
SliceRoi & | operator= (const SliceRoi &roi) |
SliceRoi (const ConvexRoi &roi) | |
SliceRoi & | operator= (const ConvexRoi &croi) |
void | init (cv::Rect _rect) |
int | y () const |
roi and bounding box top | |
int | h () const |
roi and bounding box height | |
int | x () const |
bounding box left | |
int | w () const |
bounding box width | |
void | start_slice (Slice &s) const |
bool | next_slice (Slice &s) const |
int | size () const |
roi size | |
int | count () const |
roi elements count | |
bool | isIn (jblas::vec2 p) const |
SliceRoi | operator+ (const SliceRoi &roi) const |
union | |
SliceRoi & | operator+= (const SliceRoi &roi) |
union | |
SliceRoi | operator- (const SliceRoi &roi) const |
difference (A and not B) | |
SliceRoi & | operator-= (const SliceRoi &roi) |
difference (A and not B) | |
SliceRoi | operator* (const SliceRoi &roi) const |
intersection | |
SliceRoi & | operator*= (const SliceRoi &roi) |
intersection | |
SliceRoi | operator+ (const cv::Point &p) const |
shift | |
SliceRoi | operator- (const cv::Point &p) const |
shift | |
SliceRoi & | operator+= (const cv::Point &p) |
shift | |
SliceRoi & | operator-= (const cv::Point &p) |
shift | |
void | scaleTo (cv::Rect &newRect) |
scale | |
SliceRoi | operator* (double f) const |
scale | |
SliceRoi & | operator*= (double f) |
scale | |
SliceRoi & | scale (double f) |
scale preserving center | |
void | draw () |
void | checkIntegrity () |
Private Member Functions | |
void | initSlices (bool full) const |
void | delete_slice_line (SliceImpl **slice_start) |
void | delete_slices () |
int | x (int i) const |
roi left | |
int | w (int i) const |
< roi width | |
Static Private Member Functions | |
static unsigned | merge_line (SliceImpl **newSlice, SliceImpl const *slice1, SliceImpl const *slice2) |
Private Attributes | |
cv::Rect | rect |
SliceRoiImpl | slices |
bool | hasSlices |
int | count_ |
int | y_end |
Friends | |
std::ostream & | operator<< (std::ostream &os, SliceRoi::SliceImpl const &c) |
std::ostream & | operator<< (std::ostream &os, SliceRoi const &roi) |
Generated on Wed Oct 15 2014 00:37:40 for Jafar by doxygen 1.7.6.1 |