Darwin  1.10(beta)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
drwnPatchMatchImageRecord Class Reference

Records matches for one level in an image pyramid. More...

Public Member Functions

 drwnPatchMatchImageRecord ()
 default constructor
 
 drwnPatchMatchImageRecord (uint16_t width, uint16_t height)
 constructor
 
 ~drwnPatchMatchImageRecord ()
 destructor
 
uint16_t width () const
 image width
 
uint16_t height () const
 image height
 
size_t size () const
 number of pixels in image (width * height)
 
void clear ()
 clears all matches for this image
 
uint16_t x (int indx) const
 convert from index to x pixel coordinate
 
uint16_t y (int indx) const
 convert from index to x pixel coordinate
 
cv::Point index2pixel (int indx) const
 convert from index to pixel coordinates
 
int pixel2index (uint16_t x, uint16_t y) const
 convert from pixel coordinates to index
 
bool update (int indx, const drwnPatchMatchEdge &match)
 updates edge list for pixel at index indx with a candidate match and returns true if match is better than existing matches
 
bool update (uint16_t x, uint16_t y, const drwnPatchMatchEdge &match)
 updates edge list for pixel (x,y) with a candidate match and returns true if match is better than existing matches
 
drwnPatchMatchEdgeList & operator() (uint16_t x, uint16_t y)
 reference edges at location (x, y)
 
const drwnPatchMatchEdgeList & operator() (uint16_t x, uint16_t y) const
 reference edges at location (x, y)
 
drwnPatchMatchEdgeList & operator[] (int indx)
 reference edges at index indx
 
const drwnPatchMatchEdgeList & operator[] (int indx) const
 reference edges at index indx
 

Static Public Attributes

static bool ALLOW_MULTIPLE = false
 allow multiple matches within a single image
 

Protected Attributes

uint16_t _width
 width of the image at this pyramid level
 
uint16_t _height
 height of the image at this pyrmaid level More...
 
vector< drwnPatchMatchEdgeList > _matches
 

Detailed Description

Records matches for one level in an image pyramid.

Member Data Documentation

uint16_t drwnPatchMatchImageRecord::_height
protected

height of the image at this pyrmaid level

row-wise storage of pixel matches for this pyramid level


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