Implements a region adjacency graph for 2D images, and lets you merge similar regions to create a hierarchical breakdown of the image.
|
| | G2DRegionGraph (int nWidth, int nHeight) |
| |
| virtual | ~G2DRegionGraph () |
| |
| void | makeCoarserRegions (G2DRegionGraph *pFineRegions) |
| | Given a G2DRegionGraph, this merges every region with its closest neighbor to form a coarser G2DRegionGraph. More...
|
| |
| void | makeWatershedRegions (const GImage *pImage) |
| | Toboggans the gradient magnitude image of the provided image to produce a list of watershed regions. More...
|
| |
| GImage * | regionMask () |
| | Gets a pointer to the region mask image. More...
|
| |
| void | setMaskPixel (int x, int y, unsigned int c, size_t nRegion) |
| | Specifies which region the given pixel belongs to. The color of the pixel is also specified so it can keep track of the average color of each region. More...
|
| |
| | GRegionAjacencyGraph () |
| |
| virtual | ~GRegionAjacencyGraph () |
| |
| size_t | addRegion () |
| | Creates a new region and returns the region number. More...
|
| |
| void | ajacency (size_t nEdge, size_t *pRegion1, size_t *pRegion2) |
| | Returns the two regions that are ajacent. More...
|
| |
| size_t | ajacencyCount () |
| | Returns the number of ajacencies. More...
|
| |
| bool | areNeighbors (size_t nRegion1, size_t nRegion2) |
| | Returns true if the two specified regions are neighbors. More...
|
| |
| void | averageColor (size_t nRegion, float *pRed, float *pGreen, float *pBlue) |
| | Returns the average pixel color in the specified region. More...
|
| |
| void | makeNeighbors (size_t nRegion1, size_t nRegion2) |
| | Makes the two specified regions neighbors (if they aren't already neighbors) More...
|
| |
| size_t | regionCount () |
| | Returns the number of regions so far. More...
|
| |