#include <GCoptimization.h>
Public Member Functions | |
GCoptimizationGridGraph (SiteID width, SiteID height, LabelID num_labels) | |
void | setSmoothCostVH (EnergyTermType *smoothArray, EnergyTermType *vCosts, EnergyTermType *hCosts) |
virtual | ~GCoptimizationGridGraph () |
Protected Member Functions | |
virtual void | finalizeNeighbors () |
virtual void | giveNeighborInfo (SiteID site, SiteID *numSites, SiteID **neighbors, EnergyTermType **weights) |
Protected Attributes | |
EnergyTermType | m_unityWeights [4] |
int | m_weightedGraph |
Private Member Functions | |
void | computeNeighborWeights (EnergyTermType *vCosts, EnergyTermType *hCosts) |
void | setupNeighbData (SiteID startY, SiteID endY, SiteID startX, SiteID endX, SiteID maxInd, SiteID *indexes) |
Private Attributes | |
SiteID | m_height |
SiteID * | m_neighbors |
EnergyTermType * | m_neighborsWeights |
SiteID | m_width |
Definition at line 520 of file GCoptimization.h.
GCoptimizationGridGraph::GCoptimizationGridGraph | ( | SiteID | width, |
SiteID | height, | ||
LabelID | num_labels | ||
) |
Definition at line 1395 of file GCoptimization.cpp.
GCoptimizationGridGraph::~GCoptimizationGridGraph | ( | ) | [virtual] |
Definition at line 1436 of file GCoptimization.cpp.
void GCoptimizationGridGraph::computeNeighborWeights | ( | EnergyTermType * | vCosts, |
EnergyTermType * | hCosts | ||
) | [private] |
Definition at line 1493 of file GCoptimization.cpp.
void GCoptimizationGridGraph::finalizeNeighbors | ( | ) | [protected, virtual] |
Implements GCoptimization.
Definition at line 1467 of file GCoptimization.cpp.
void GCoptimizationGridGraph::giveNeighborInfo | ( | SiteID | site, |
SiteID * | numSites, | ||
SiteID ** | neighbors, | ||
EnergyTermType ** | weights | ||
) | [protected, virtual] |
Definition at line 1482 of file GCoptimization.cpp.
void GCoptimizationGridGraph::setSmoothCostVH | ( | EnergyTermType * | smoothArray, |
EnergyTermType * | vCosts, | ||
EnergyTermType * | hCosts | ||
) |
Definition at line 1473 of file GCoptimization.cpp.
void GCoptimizationGridGraph::setupNeighbData | ( | SiteID | startY, |
SiteID | endY, | ||
SiteID | startX, | ||
SiteID | endX, | ||
SiteID | maxInd, | ||
SiteID * | indexes | ||
) | [private] |
Definition at line 1447 of file GCoptimization.cpp.
SiteID GCoptimizationGridGraph::m_height [private] |
Definition at line 536 of file GCoptimization.h.
SiteID* GCoptimizationGridGraph::m_neighbors [private] |
Definition at line 537 of file GCoptimization.h.
Definition at line 538 of file GCoptimization.h.
EnergyTermType GCoptimizationGridGraph::m_unityWeights[4] [protected] |
Definition at line 531 of file GCoptimization.h.
int GCoptimizationGridGraph::m_weightedGraph [protected] |
Definition at line 532 of file GCoptimization.h.
SiteID GCoptimizationGridGraph::m_width [private] |
Definition at line 535 of file GCoptimization.h.