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...
|
|
| 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
|
| |
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.
- See also
- PatchMatchGraph Project