Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
icl::markers::TiltedQuad Class Reference

Utility class that represents a tilted quad in an image. More...

#include <TiltedQuad.h>

List of all members.

Public Member Functions

 TiltedQuad ()
 creates a null-instance
 TiltedQuad (const utils::Point32f &a, const utils::Point32f &b, const utils::Point32f &c, const utils::Point32f &d, const cv::ImageRegion r)
 creates a TiltedQuad instance with given 4 corners and given ImageRegion
 TiltedQuad (const utils::Point32f *ps, cv::ImageRegion r)
 creates a TiltedQuad instance with given 4D array of points and image region
utils::Point32foperator[] (int i)
 accesses the i-th corner point
const utils::Point32foperator[] (int i) const
 accesses the i-th corner point (const)
cv::ImageRegion getRegion () const
 returns the associated image region (always const)
void setRegion (cv::ImageRegion region)
 sets the image region (this is usually not used explicitly)
 operator bool () const
 returns whether the image region had been set before
const utils::Point32fdata () const
 returns the internal utils::Point-data pointer

Private Attributes

utils::Point32f ps [4]
 list of points (usually sorted in clock-wise order)
cv::ImageRegion region
 associated image region

Detailed Description

Utility class that represents a tilted quad in an image.

A tilted quad is represented by It's for corner points The class provides access to these points using the index operator


Constructor & Destructor Documentation

creates a null-instance

icl::markers::TiltedQuad::TiltedQuad ( const utils::Point32f a,
const utils::Point32f b,
const utils::Point32f c,
const utils::Point32f d,
const cv::ImageRegion  r 
) [inline]

creates a TiltedQuad instance with given 4 corners and given ImageRegion

creates a TiltedQuad instance with given 4D array of points and image region


Member Function Documentation

returns the internal utils::Point-data pointer

returns the associated image region (always const)

icl::markers::TiltedQuad::operator bool ( ) const [inline]

returns whether the image region had been set before

utils::Point32f& icl::markers::TiltedQuad::operator[] ( int  i) [inline]

accesses the i-th corner point

const utils::Point32f& icl::markers::TiltedQuad::operator[] ( int  i) const [inline]

accesses the i-th corner point (const)

sets the image region (this is usually not used explicitly)


Member Data Documentation

list of points (usually sorted in clock-wise order)

associated image region


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