$search

pal_vision_util::ImageRoi Class Reference

2D roi More...

#include <image_processing.h>

List of all members.

Public Member Functions

void clear ()
void clear ()
bool empty () const
bool empty () const
 ImageRoi (CvRect rect)
 ImageRoi (int left, int top, int w, int h)
 ImageRoi (const ImageRoi &roi)
 ImageRoi ()
 ImageRoi (CvRect rect)
 ImageRoi (int left, int top, int w, int h)
 ImageRoi (const ImageRoi &roi)
 ImageRoi ()
void keepInside (int imgWidth, int imgHeight)
void keepInside (int imgWidth, int imgHeight)
const ImageRoiresize (double factorHorizontal, double factorVertical)
const ImageRoiresize (double factorHorizontal, double factorVertical)
void set (CvRect rect)
void set (CvRect rect)
CvRect toCvRect () const
CvRect toCvRect () const
 ~ImageRoi ()
 ~ImageRoi ()

Public Attributes

int height
int width
int x
int y

Detailed Description

2D roi

Author:
Jordi

Definition at line 66 of file include/pal_vision_segmentation/image_processing.h.


Constructor & Destructor Documentation

pal_vision_util::ImageRoi::ImageRoi (  ) 

Definition at line 97 of file image_processing.cpp.

pal_vision_util::ImageRoi::ImageRoi ( const ImageRoi roi  ) 

Definition at line 102 of file image_processing.cpp.

pal_vision_util::ImageRoi::ImageRoi ( int  left,
int  top,
int  w,
int  h 
)

Definition at line 110 of file image_processing.cpp.

pal_vision_util::ImageRoi::ImageRoi ( CvRect  rect  ) 

Definition at line 114 of file image_processing.cpp.

pal_vision_util::ImageRoi::~ImageRoi (  ) 

Definition at line 119 of file image_processing.cpp.

pal_vision_util::ImageRoi::ImageRoi (  ) 
pal_vision_util::ImageRoi::ImageRoi ( const ImageRoi roi  ) 
pal_vision_util::ImageRoi::ImageRoi ( int  left,
int  top,
int  w,
int  h 
)
pal_vision_util::ImageRoi::ImageRoi ( CvRect  rect  ) 
pal_vision_util::ImageRoi::~ImageRoi (  ) 

Member Function Documentation

void pal_vision_util::ImageRoi::clear (  ) 
void pal_vision_util::ImageRoi::clear ( void   ) 

Definition at line 131 of file image_processing.cpp.

bool pal_vision_util::ImageRoi::empty (  )  const
bool pal_vision_util::ImageRoi::empty ( void   )  const

Definition at line 139 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

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 153 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

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 181 of file image_processing.cpp.

void pal_vision_util::ImageRoi::set ( CvRect  rect  ) 
void pal_vision_util::ImageRoi::set ( CvRect  rect  ) 

Definition at line 123 of file image_processing.cpp.

CvRect pal_vision_util::ImageRoi::toCvRect (  )  const
CvRect pal_vision_util::ImageRoi::toCvRect (  )  const

Definition at line 144 of file image_processing.cpp.


Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends


pal_vision_segmentation
Author(s): Created by Bence Magyar. Maintained by Jordi Pages
autogenerated on Fri Mar 1 16:38:33 2013