#include <GCoptimization.h>
Classes | |
struct | DataCostBucket |
class | iterator |
Public Member Functions | |
OLGA_INLINE iterator | begin (LabelID label) const |
EnergyTermType | compute (SiteID s, LabelID l) |
DataCostFnSparse (SiteID num_sites, LabelID num_labels) | |
DataCostFnSparse (const DataCostFnSparse &src) | |
OLGA_INLINE iterator | end (LabelID label) const |
SiteID | queryActiveSitesExpansion (LabelID alpha_label, const LabelID *labeling, SiteID *activeSites) |
void | set (LabelID l, const SparseDataCost *costs, SiteID count) |
~DataCostFnSparse () | |
Private Member Functions | |
EnergyTermType | search (DataCostBucket &b, SiteID s) |
Private Attributes | |
DataCostBucket * | m_buckets |
const int | m_buckets_per_label |
const LabelID | m_num_labels |
const SiteID | m_num_sites |
Static Private Attributes | |
static const size_t | cDataCostPtrMask = ~(sizeof(SparseDataCost)-1) |
static const ptrdiff_t | cLinearSearchSize = 64/sizeof(SparseDataCost) |
static const int | cLogSitesPerBucket = 9 |
static const int | cSitesPerBucket = (1 << cLogSitesPerBucket) |
Definition at line 380 of file GCoptimization.h.
GCoptimization::DataCostFnSparse::DataCostFnSparse | ( | SiteID | num_sites, |
LabelID | num_labels | ||
) |
Definition at line 1742 of file GCoptimization.cpp.
Definition at line 1750 of file GCoptimization.cpp.
Definition at line 1759 of file GCoptimization.cpp.
OLGA_INLINE iterator GCoptimization::DataCostFnSparse::begin | ( | LabelID | label | ) | const [inline] |
Definition at line 421 of file GCoptimization.h.
OLGA_INLINE GCoptimization::EnergyTermType GCoptimization::DataCostFnSparse::compute | ( | SiteID | s, |
LabelID | l | ||
) |
Definition at line 1841 of file GCoptimization.cpp.
OLGA_INLINE iterator GCoptimization::DataCostFnSparse::end | ( | LabelID | label | ) | const [inline] |
Definition at line 422 of file GCoptimization.h.
GCoptimization::SiteID GCoptimization::DataCostFnSparse::queryActiveSitesExpansion | ( | LabelID | alpha_label, |
const LabelID * | labeling, | ||
SiteID * | activeSites | ||
) |
Definition at line 1862 of file GCoptimization.cpp.
GCoptimization::EnergyTermType GCoptimization::DataCostFnSparse::search | ( | DataCostBucket & | b, |
SiteID | s | ||
) | [private] |
Definition at line 1805 of file GCoptimization.cpp.
void GCoptimization::DataCostFnSparse::set | ( | LabelID | l, |
const SparseDataCost * | costs, | ||
SiteID | count | ||
) |
Definition at line 1769 of file GCoptimization.cpp.
const size_t GCoptimization::DataCostFnSparse::cDataCostPtrMask = ~(sizeof(SparseDataCost)-1) [static, private] |
Definition at line 388 of file GCoptimization.h.
const ptrdiff_t GCoptimization::DataCostFnSparse::cLinearSearchSize = 64/sizeof(SparseDataCost) [static, private] |
Definition at line 389 of file GCoptimization.h.
const int GCoptimization::DataCostFnSparse::cLogSitesPerBucket = 9 [static, private] |
Definition at line 386 of file GCoptimization.h.
const int GCoptimization::DataCostFnSparse::cSitesPerBucket = (1 << cLogSitesPerBucket) [static, private] |
Definition at line 387 of file GCoptimization.h.
DataCostBucket* GCoptimization::DataCostFnSparse::m_buckets [mutable, private] |
Definition at line 429 of file GCoptimization.h.
const int GCoptimization::DataCostFnSparse::m_buckets_per_label [private] |
Definition at line 428 of file GCoptimization.h.
const LabelID GCoptimization::DataCostFnSparse::m_num_labels [private] |
Definition at line 427 of file GCoptimization.h.
const SiteID GCoptimization::DataCostFnSparse::m_num_sites [private] |
Definition at line 426 of file GCoptimization.h.