Public Member Functions | Public Attributes
pal_vision_util::ImageRoi Class Reference

2D roi More...

#include <image_processing.h>

List of all members.

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 ImageRoiresize (double factorHorizontal, double factorVertical)
void set (CvRect rect)
CvRect toCvRect () const
 ~ImageRoi ()

Public Attributes

int height
int width
int x
int y

Detailed Description

2D roi

Author:
Jordi

Definition at line 66 of file image_processing.h.


Constructor & Destructor Documentation

Definition at line 100 of file image_processing.cpp.

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.

Definition at line 117 of file image_processing.cpp.

Definition at line 122 of file image_processing.cpp.


Member Function Documentation

Definition at line 134 of file image_processing.cpp.

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.

Definition at line 147 of file image_processing.cpp.


Member Data Documentation

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.


The documentation for this class was generated from the following files:


pal_vision_segmentation
Author(s): Created by Bence Magyar. Maintained by Jordi Pages
autogenerated on Thu Jan 2 2014 11:36:22