|
Darwin
1.10(beta)
|
Each image maintains a W-by-H-by-K array of match records referencing the (approximate) best K matches to other images. Image filename rather than the images themselves are stored. Duplicate filenames (images) are not allowed. More...
Public Member Functions | |
| drwnPatchMatchGraph () | |
| default constructor | |
| drwnPatchMatchGraph (const drwnPatchMatchGraph &graph) | |
| copy constructor | |
| ~drwnPatchMatchGraph () | |
| destructor | |
| bool | write (const char *filestem) const |
| write to persistent storage | |
| bool | read (const char *filestem) |
| read from persistent storage | |
| size_t | size () const |
| number of images in the graph | |
| unsigned int | patchWidth () const |
| patch width used for constructing this graph | |
| unsigned int | patchHeight () const |
| patch height used for constructing this graph | |
| int | findImage (const string &baseName) const |
| returns the index for an image or -1 if not in graph | |
| void | appendImage (const string &baseName) |
| add a single image (do not use while the graph is being learned) | |
| void | appendImage (const string &baseName, const cv::Size &imgSize) |
| add a single image of known size | |
| void | appendImages (const vector< string > &baseNames) |
| add a set of images | |
| int | removeImage (unsigned imgIndx) |
| delete an image from the graph (do not use while the graph is being learned) and returns the number of edges removed which terminated at patches within the deleted image | |
| drwnPatchMatchEdgeList & | edges (const drwnPatchMatchNode &node) |
| returns (a reference to) the list of outgoing edges for a given node | |
| const drwnPatchMatchEdgeList & | edges (const drwnPatchMatchNode &node) const |
| returns (a constant reference to) the list of outgoing edges for a given node | |
| pair< double, double > | energy () const |
| sum of total match scores (first) and best match scores (second) | |
| string | imageFilename (int indx) const |
| full image filename of a given image | |
| string | imageFilename (const string &baseName) const |
| full image filename from an image basename | |
| drwnPatchMatchImagePyramid & | operator[] (unsigned indx) |
reference image pyramid indx | |
| const drwnPatchMatchImagePyramid & | operator[] (unsigned indx) const |
reference image pyramid level indx | |
Public Attributes | |
| string | imageDirectory |
| directory to prepend to instance basename | |
| string | imageExtension |
| extension to append to instance basename | |
Static Public Attributes | |
| static unsigned int | PATCH_WIDTH = 8 |
| default patch width (at base scale) | |
| static unsigned int | PATCH_HEIGHT = 8 |
| default patch height (at base scale) | |
| static unsigned int | K = 10 |
| default number of matches per pixel | |
Protected Attributes | |
| unsigned int | _patchWidth |
| patch width (at base scale in this graph) | |
| unsigned int | _patchHeight |
| patch height (at base scale in this graph) | |
|
vector < drwnPatchMatchImagePyramid * > | _images |
| image pyramid matches | |
Each image maintains a W-by-H-by-K array of match records referencing the (approximate) best K matches to other images. Image filename rather than the images themselves are stored. Duplicate filenames (images) are not allowed.
That is, stores a PatchMatchGraph as described in Gould and Zhang, ECCV 2012.
1.8.6