Nifty C++ API Reference¶
Highly experimental documentation of C++ classes. This documentation is generated by using doxygen and sphinx in conjunction with breathe.
-
struct
AccOptions¶
-
class
AdjacencyIter¶ Inherits from boost::iterator_facade< AdjacencyIter, NodeAdjacency, std::random_access_iterator_tag, const NodeAdjacency & >
- template <class _CHILD_GRAPH>
-
struct
AdjacencyIterRange¶ Inherits from nifty::tools::ConstIteratorRange< _CHILD_GRAPH::AdjacencyOutIter >
-
struct
AdjacencyIterRange¶ Inherits from nifty::tools::ConstIteratorRange< AdjacencyIter >
- template <class _CHILD_GRAPH>
-
struct
AdjacencyIterRange¶ Inherits from nifty::tools::ConstIteratorRange< _CHILD_GRAPH::AdjacencyIter >
-
struct
AdjacencyTag¶
- template <class CLUSTER_POLICY>
-
class
AgglomerativeClustering¶ Public Types
-
typedef CLUSTER_POLICY
ClusterPolicyType¶
-
typedef ClusterPolicyType::EdgeContractionGraphType::WithEdgeUfd
WithEdgeUfd¶
-
typedef ClusterPolicyType::GraphType
GraphType¶
-
typedef ClusterPolicyType::EdgeContractionGraphType
EdgeContractionGraphType¶
Public Functions
-
AgglomerativeClustering(ClusterPolicyType &clusterPolicy)¶
-
void
run(const bool verbose = false, const uint64_t printNth = 100)¶
- template <class VISITOR>
-
void
run(VISITOR &visitor, const bool verbose = false, const uint64_t printNth = 100)¶
- template <class MERGE_TIMES, class EDGE_DENDROGRAM_HEIGHT>
-
void
runAndGetMergeTimesAndDendrogramHeight(MERGE_TIMES &mergeTimes, EDGE_DENDROGRAM_HEIGHT &dendrogramHeight, const bool verbose = false)¶
- template <class MERGE_TIMES>
-
void
runAndGetMergeTimes(MERGE_TIMES &mergeTimes, const bool verbose = false)¶
- template <class EDGE_DENDROGRAM_HEIGHT>
-
void
runAndGetDendrogramHeight(EDGE_DENDROGRAM_HEIGHT &dendrogramHeight, const bool verbose = false)¶
- template <class EDGE_MAP>
-
void
ucmTransform(EDGE_MAP &edgeMap) const¶
- template <class EDGE_MAP, class EDGE_MAP_OUT>
-
void
ucmTransform(const EDGE_MAP &edgeMap, EDGE_MAP_OUT &edgeMapOut) const¶
-
const ClusterPolicyType &
clusterPolicy() const¶
- template <class NODE_MAP>
-
void
result(NODE_MAP &nodeMap) const¶
Private Members
-
ClusterPolicyType &
clusterPolicy_¶
-
typedef CLUSTER_POLICY
- template <unsigned DIM>
-
struct
ApplyFilters¶ Public Types
Public Functions
-
ApplyFilters(const std::vector<double> &sigmas, const std::vector<FilterBase *> filters)¶
-
void
operator()(const marray::View<float> &in, marray::View<float> &out, parallel::ThreadPool &threadpool) const¶
-
size_t
numberOfChannels() const¶
-
- template <class _CHILD_GRAPH>
-
struct
ArcIterRange¶ Inherits from nifty::tools::ConstIteratorRange< _CHILD_GRAPH::ArcIter >
-
struct
ArcTag¶
- template <class G, class T>
-
class
ArithmeticMeanEdgeMap¶ Public Types
-
typedef G
GraphType¶
-
typedef
GraphType:: template EdgeMap<T> nifty::graph::agglo::merge_rules::ArithmeticMeanEdgeMap::MeanEdgeMapType
-
typedef
GraphType:: template EdgeMap<nifty::float16_t> nifty::graph::agglo::merge_rules::ArithmeticMeanEdgeMap::SizeEdgeMapType
-
typedef ArithmeticMeanSettings
SettingsType¶
Public Functions
-
auto
name() const¶
- template <class VALUES, class WEIGHTS>
-
ArithmeticMeanEdgeMap(const GraphType &g, const VALUES &values, const WEIGHTS &weights, const SettingsType &settings = SettingsType ())¶
-
void
merge(const uint64_t aliveEdge, const uint64_t deadEdge)¶
-
void
setValueFrom(const uint64_t targetEdge, const uint64_t sourceEdge)¶
-
void
setFrom(const uint64_t targetEdge, const uint64_t sourceEdge)¶
-
void
set(const uint64_t targetEdge, const T &value, const T &weight)¶
-
T
operator[](const uint64_t edge) const¶
Public Static Functions
-
static auto
staticName()¶
-
typedef G
- template <typename ArrayType, typename Value, bool Resizable, size_t Size = 0>
-
struct
array_caster_¶ Public Types
-
template<>
usingvalue_conv= make_caster<Value>¶
Public Functions
-
bool
load(handle src, bool convert)¶
-
pybind11::detail::array_caster_::PYBIND11_TYPE_CASTER(ArrayType, _("List[")+value_conv::name()+_< Resizable >(_(""), _("[")+_< Size >()+_("]"))+_("]"))
Public Static Functions
-
static handle
cast(const ArrayType &src, return_value_policy policy, handle parent)¶
-
template<>
- template <class ARRAY_CLASS>
-
class
ArrayExtender¶ Inherits from ARRAY_CLASS
- template <class GRAPH>
-
class
BidirectionalBreadthFirstSearch¶ Public Types
-
typedef GRAPH
GraphType¶
-
typedef
GraphType:: template NodeMap<int64_t> nifty::graph::BidirectionalBreadthFirstSearch::Parents
Public Functions
-
bool
runSingleSourceSingleTarget(const int64_t source, const int64_t target)¶
- template <class SUBGRAPH_MASK>
-
bool
runSingleSourceSingleTarget(const int64_t source, const int64_t target, const SUBGRAPH_MASK &mask)¶
Private Types
-
typedef GRAPH
- template <typename T, typename U>
-
struct
binary_specialized¶
-
struct
binary_t¶
- template <typename T>
-
struct
bits¶ Subclassed by half_float::detail::bits< const T >, half_float::detail::bits< const volatile T >, half_float::detail::bits< volatile T >
Public Types
-
typedef unsigned char
type¶
-
typedef unsigned char
- template <typename T>
-
template<>
structbits<const T>¶ Inherits from half_float::detail::bits< T >
- template <typename T>
-
template<>
structbits<volatile const T>¶ Inherits from half_float::detail::bits< T >
- template <>
-
template<>
structbits<float>¶ Inherits from half_float::detail::conditional< std::numeric_limits< unsigned int >::digits >, unsigned int, unsigned long
- template <typename T>
-
template<>
structbits<volatile T>¶ Inherits from half_float::detail::bits< T >
- template <std::size_t DIM, class T = int64_t>
-
class
Block¶ Public Types
-
typedef T
ValueType¶
Public Functions
-
Block(const VectorType &begin = VectorType (0), const VectorType &end = VectorType (0))¶
-
const VectorType &
begin() const¶
-
const VectorType &
end() const¶
-
VectorType
shape() const¶
-
typedef T
- template <std::size_t DIM, class T = int64_t>
-
class
Blocking¶ Public Types
-
typedef BlockWithHalo<DIM, T>
BlockWithHaloType¶
-
typedef BlockWithHaloType::BlockType
BlockType¶
-
typedef BlockWithHaloType::ValueType
ValueType¶
-
typedef BlockWithHaloType::ValueType
value_type¶
-
typedef BlockWithHaloType::VectorType
VectorType¶
Public Functions
-
Blocking(const VectorType &roiBegin, const VectorType &roiEnd, const VectorType &blockShape, const VectorType &blockShift = VectorType (0))¶
-
const VectorType &
roiBegin() const¶
-
const VectorType &
roiEnd() const¶
-
const VectorType &
blockShape() const¶
-
const VectorType &
blockShift() const¶
-
const VectorType &
blocksPerAxis() const¶
-
const size_t
numberOfBlocks() const¶
-
BlockWithHaloType
getBlockWithHalo(const uint64_t blockIndex, const VectorType &haloBegin, const VectorType &haloEnd) const¶
-
BlockWithHaloType
getBlockWithHalo(const uint64_t blockIndex, const VectorType &halo) const¶
-
BlockWithHaloType
addHalo(const BlockType innerBlock, const VectorType &haloBegin, const VectorType &haloEnd) const¶
-
BlockWithHaloType
addHalo(const BlockType innerBlock, const VectorType &halo) const¶
Private Members
-
VectorType
roiBegin_¶
-
VectorType
roiEnd_¶
-
VectorType
blockShape_¶
-
VectorType
blockShift_¶
-
VectorType
blocksPerAxis_¶
-
VectorType
blocksPerAxisStrides_¶
-
size_t
numberOfBlocks_¶
-
typedef BlockWithHalo<DIM, T>
- template <class OBJECTIVE>
-
class
BlockMulticut¶ Inherits from nifty::graph::opt::multicut::MulticutBase< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef ObjectiveType::WeightType
WeightType¶
-
typedef MulticutBase<ObjectiveType>
BaseType¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef ObjectiveType::WeightsMap
WeightsMap¶
-
typedef
GraphType:: template EdgeMap<uint8_t> nifty::graph::opt::multicut::BlockMulticut::IsDirtyEdge
-
typedef MulticutFactoryBase<ObjectiveType>
McFactoryBase¶
Public Functions
-
virtual
~BlockMulticut()¶
-
BlockMulticut(const ObjectiveType &objective, const SettingsType &settings = SettingsType ())¶
-
void
optimize(NodeLabels &nodeLabels, VisitorBaseType *visitor)¶
-
const BlockMulticut<OBJECTIVE>::ObjectiveType &
objective() const¶
-
virtual const NodeLabels &
currentBestNodeLabels()¶
-
virtual void
weightsChanged()¶
-
virtual double
currentBestEnergy()¶
Private Members
-
const ObjectiveType &
objective_¶
-
SettingsType
settings_¶
-
NodeLabels *
currentBest_¶
-
double
currentBestEnergy_¶
-
typedef OBJECTIVE
- template <class T>
-
class
BlockStorage¶ -
Public Functions
- template <class SHAPE>
-
BlockStorage(nifty::parallel::ThreadPool &threadpool, const SHAPE &maxShape, const std::size_t numberOfBlocks)¶
- template <class ARRAY>
-
struct
BlockStorageSelector¶
- template <class T>
-
template<>
structBlockStorageSelector<hdf5::Hdf5Array<T>>¶ Public Types
-
typedef BlockStorage<T>
type¶
-
typedef BlockStorage<T>
- template <class T, size_t DIM, bool AUTO_CAST_TYPE>
-
template<>
structBlockStorageSelector<marray::PyView<T, DIM, AUTO_CAST_TYPE>>¶ Public Types
-
typedef BlockView<T>
type
-
typedef BlockView<T>
- template <class T, bool C, class A>
-
template<>
structBlockStorageSelector<marray::View<T, C, A>>¶ Public Types
-
typedef BlockView<T>
type
-
typedef BlockView<T>
- template <class T>
-
class
BlockView¶ -
Public Functions
- template <class SHAPE>
-
BlockView(nifty::parallel::ThreadPool &threadpool, const SHAPE &maxShape, const std::size_t numberOfBlocks)¶
- template <std::size_t DIM, class T = int64_t>
-
class
BlockWithHalo¶ Public Types
- template <bool>
-
struct
bool_type¶ Subclassed by half_float::detail::is_float< typename >, half_float::detail::is_float< double >, half_float::detail::is_float< float >, half_float::detail::is_float< long double >, half_float::detail::is_float< T >
- template <size_t DIM>
-
class
Bounds¶
- template <>
-
template<>
classBounds<2>¶ Public Types
-
typedef TopologicalGrid<2>
TopologicalGridType¶
Public Functions
-
Bounds(const TopologicalGridType &tGrid)¶
- template <size_t CELL_TYPE>
-
const CellBoundsVector<2, CELL_TYPE> &
bounds() const¶
Private Members
-
std::tuple<CellBoundsVector<2, 0>, CellBoundsVector<2, 1>>
bounds_¶
-
typedef TopologicalGrid<2>
-
struct
CacheSettings¶ Public Functions
-
CacheSettings(const int hashTabelSize_ = 977, const int nBytes_ = 36000000, const float rddc_ = 1.0)¶
-
- template <class OBJECTIVE>
-
class
CcFusionMoveBased¶ -
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef nifty::graph::opt::common::detail_cc_fusion::CcFusionMoveBasedImpl<OBJECTIVE, MulticutBase<OBJECTIVE>, FusionMove<OBJECTIVE>>
BaseType¶
Public Functions
-
virtual
~CcFusionMoveBased()¶
-
CcFusionMoveBased(const ObjectiveType &objective, const SettingsType &settings = SettingsType ())¶
-
typedef OBJECTIVE
- template <class OBJECTIVE, class SOLVER_BASE, class FUSION_MOVE>
-
class
CcFusionMoveBasedImpl¶ Inherits from SOLVER_BASE
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef SOLVER_BASE
BaseType¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef nifty::graph::opt::common::ProposalGeneratorBase<ObjectiveType>
ProposalGeneratorBaseType¶
-
typedef nifty::graph::opt::common::ProposalGeneratorFactoryBase<ObjectiveType>
ProposalGeneratorFactoryBaseType¶
Public Functions
-
~CcFusionMoveBasedImpl()¶
-
CcFusionMoveBasedImpl(const ObjectiveType &objective, const SettingsType &settings = SettingsType ())¶
-
void
optimize(NodeLabelsType &nodeLabels, VisitorBaseType *visitor)¶
-
const CcFusionMoveBasedImpl<OBJECTIVE, SOLVER_BASE, FUSION_MOVE>::ObjectiveType &
objective() const¶
-
virtual const NodeLabelsType &
currentBestNodeLabels()¶
Private Types
-
typedef FUSION_MOVE
FusionMoveType¶
-
typedef FusionMoveType::SettingsType
FusionMoveSettingsType¶
Private Functions
-
void
optimizeSingleThread(VisitorProxyType &visitorProxy)¶
-
void
optimizeMultiThread(VisitorProxyType &visitorProxy)¶
Private Members
-
const ObjectiveType &
objective_¶
-
SettingsType
settings_¶
-
NodeLabelsType *
currentBest_¶
-
double
currentBestEnergy_¶
-
nifty::parallel::ParallelOptions
parallelOptions_¶
-
nifty::parallel::ThreadPool
threadPool_¶
-
ProposalGeneratorBaseType *
proposalGenerator_¶
-
std::vector<FusionMoveType *>
fusionMoves_¶
-
std::vector<NodeLabelsType *>
solBufferIn_¶
-
std::vector<NodeLabelsType *>
solBufferOut_¶
-
typedef OBJECTIVE
-
class
Cell1BasicGeometricFeatures2D¶ Public Functions
-
Cell1BasicGeometricFeatures2D()¶
-
size_t
numberOfFeatures() const¶
- template <class T>
-
void
operator()(const CellGeometryVector<2, 1> &cell1GeometryVector, const CellGeometryVector<2, 2> &cell2GeometryVector, const CellBoundsVector<2, 1> &cell1BoundsVector, nifty::marray::View<T> &features) const¶
Private Types
-
typedef nifty::features::DefaultAccumulatedStatistics<float>
AccType¶
-
-
class
Cell1BasicTopologicalFeatures¶ Public Functions
-
Cell1BasicTopologicalFeatures()¶
-
size_t
numberOfFeatures() const¶
- template <class T>
-
void
operator()(const CellBoundsVector<2, 0> &cell0BoundsVector, const CellBoundsVector<2, 1> &cell1BoundsVector, const CellBoundedByVector<2, 1> &cell1BoundedByVector, const CellBoundedByVector<2, 2> &cell2BoundedByVector, nifty::marray::View<T> &features) const¶
-
-
class
Cell1CurvatureFeatures2D¶ Public Functions
-
Cell1CurvatureFeatures2D(const std::vector<float> &sigmas = std::vector< float >({1.0f, 2.0f, 4.0f}))¶
-
size_t
numberOfFeatures() const¶
- template <class T>
-
void
operator()(const CellGeometryVector<2, 1> &cell1GeometryVector, const CellBoundedByVector<2, 1> &cell1BoundedByVector, nifty::marray::View<T> &features) const¶
Private Types
-
typedef nifty::features::DefaultAccumulatedStatistics<float>
AccType¶
-
-
class
Cell1LineSegmentDist2D¶ Public Functions
-
Cell1LineSegmentDist2D(const std::vector<size_t> &dists = std::vector< size_t >({size_t(3), size_t(5), size_t(7)}))¶
-
size_t
numberOfFeatures() const¶
- template <class T>
-
void
operator()(const CellGeometryVector<2, 1> &cell1GeometryVector, nifty::marray::View<T> &features) const¶
Private Types
-
typedef nifty::features::DefaultAccumulatedStatistics<float>
AccType¶
-
- template <size_t DIM, size_t CELL_TYPE>
-
class
CellBoundedBy¶
- template <>
-
template<>
classCellBoundedBy<2, 1>¶ Public Functions
-
CellBoundedBy()¶
-
uint32_t
size() const¶
-
const uint32_t &
operator[](const size_t i) const¶
Private Members
-
template<>
uint32_tdata_[2]¶
Friends
-
friend
nifty::cgp::CellBoundedBy< 2, 1 >::CellBoundedByVector< 2, 1 >
-
- template <>
-
template<>
classCellBoundedBy<2, 2>¶ Public Functions
-
CellBoundedBy()¶
-
uint32_t
size() const¶
-
const uint32_t &
operator[](const size_t i) const¶
Friends
-
friend
nifty::cgp::CellBoundedBy< 2, 2 >::CellBoundedByVector< 2, 2 >
-
- template <size_t DIM, size_t CELL_TYPE>
-
class
CellBoundedByVector¶
- template <>
-
template<>
classCellBoundedByVector<2, 1>¶ Inherits from std::vector< CellBoundedBy< 2, 1 > >
Public Types
-
typedef std::vector<CellBoundedBy<2, 1>>
BaseType¶
Public Functions
-
CellBoundedByVector(const CellBoundsVector<2, 0> &cell0Bounds)¶
-
typedef std::vector<CellBoundedBy<2, 1>>
- template <>
-
template<>
classCellBoundedByVector<2, 2>¶ Inherits from std::vector< CellBoundedBy< 2, 2 > >
Public Types
-
typedef std::vector<CellBoundedBy<2, 2>>
BaseType¶
Public Functions
-
CellBoundedByVector(const CellBoundsVector<2, 1> &cell1Bounds)¶
-
typedef std::vector<CellBoundedBy<2, 2>>
- template <size_t DIM, size_t CELL_TYPE>
-
class
CellBounds¶
- template <>
-
template<>
classCellBounds<2, 0>¶ Public Functions
-
CellBounds(const uint32_t a = 0, const uint32_t b = 0, const uint32_t c = 0, const uint32_t d = 0)¶
-
uint32_t
size() const¶
-
const uint32_t &
operator[](const unsigned int i) const¶
Private Members
-
template<>
uint32_tdata_[4]¶
-
- template <>
-
template<>
classCellBounds<2, 1>¶ Public Functions
-
CellBounds(const uint32_t a = 0, const uint32_t b = 0)¶
-
uint32_t
size() const¶
-
const uint32_t &
operator[](const unsigned int i) const¶
Private Members
-
template<>
uint32_tdata_[2]¶
-
- template <size_t DIM, size_t CELL_TYPE>
-
class
CellBoundsVector¶ Inherits from std::vector< CellBounds< DIM, CELL_TYPE > >
Public Types
-
typedef std::vector<CellBounds<DIM, CELL_TYPE>>
BaseType¶
Public Functions
-
const NumberOfCellsType &
numberOfCells() const¶
Private Members
-
NumberOfCellsType
numberOfCells_¶
Friends
-
friend
nifty::cgp::CellBoundsVector::Bounds< DIM >
-
typedef std::vector<CellBounds<DIM, CELL_TYPE>>
- template <size_t DIM, size_t CELL_TYPE>
-
class
CellGeometry¶ Inherits from std::vector< array::StaticArray< uint32_t, DIM > >
Public Types
-
typedef std::vector<CoordinateType>
BaseType¶
Public Functions
-
FloatCoordinateType
centerOfMass() const¶
-
typedef std::vector<CoordinateType>
- template <>
-
template<>
classCellGeometry<2, 1>¶ Inherits from std::vector< array::StaticArray< uint32_t, 2 > >
Public Types
-
typedef std::vector<CoordinateType>
BaseType¶
Public Static Attributes
-
const size_t
DIM= 2¶
Private Members
-
bool
isSorted_¶
Friends
-
friend
nifty::cgp::CellGeometry< 2, 1 >::Geometry< 2 >
-
typedef std::vector<CoordinateType>
- template <size_t DIM>
-
template<>
classCellGeometry<DIM, 0>¶ Inherits from std::array< array::StaticArray< uint32_t, 2 >, 1 >
Public Types
-
typedef std::array<CoordinateType, 1>
BaseType
Public Functions
-
FloatCoordinateType
centerOfMass() const
-
typedef std::array<CoordinateType, 1>
- template <size_t DIM, size_t CELL_TYPE>
-
class
CellGeometryVector¶ Inherits from std::vector< CellGeometry< DIM, CELL_TYPE > >
- template <T>
-
class
CellVector¶ Inherits from std::vector< T >
- template <class OBJECTIVE>
-
class
Cgc¶ Inherits from nifty::graph::opt::multicut::MulticutBase< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef ObjectiveType::WeightType
WeightType¶
-
typedef MulticutBase<ObjectiveType>
BaseType¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef ObjectiveType::WeightsMap
WeightsMap¶
-
typedef
GraphType:: template EdgeMap<uint8_t> nifty::graph::opt::multicut::Cgc::IsDirtyEdge
-
typedef UndirectedGraph
SubGraph¶
-
typedef mincut::MincutObjective<SubGraph, double>
MincutSubObjective¶
-
typedef mincut::MincutBase<MincutSubObjective>
MincutSubBase¶
-
typedef nifty::graph::opt::common::SolverFactoryBase<MincutSubBase>
MincutSubMcFactoryBase¶
-
typedef MincutSubBase::NodeLabelsType
MincutSubNodeLabels¶
-
typedef MulticutObjective<SubGraph, double>
MulticutSubObjective¶
-
typedef MulticutBase<MulticutSubObjective>
MulticutSubBase¶
-
typedef nifty::graph::opt::common::SolverFactoryBase<MulticutSubBase>
MulticutSubMcFactoryBase¶
-
typedef MulticutSubBase::NodeLabelsType
MulticutSubNodeLabels¶
Public Functions
-
virtual
~Cgc()¶
-
Cgc(const ObjectiveType &objective, const SettingsType &settings = SettingsType ())¶
-
void
optimize(NodeLabelsType &nodeLabels, VisitorBaseType *visitor)¶
-
virtual const NodeLabelsType &
currentBestNodeLabels()¶
-
virtual void
weightsChanged()¶
-
virtual double
currentBestEnergy()¶
Private Types
-
typedef ComponentsUfd<GraphType>
Components¶
-
typedef detail_cgc::PartitionCallback<OBJECTIVE, SettingsType>
CallbackType¶
Private Functions
-
void
cutPhase(VisitorProxyType &visitorProxy)¶
-
void
betterCutPhase(VisitorProxyType &visitorProxy)¶
-
void
glueAndCutPhase(VisitorProxyType &visitorProxy)¶
Private Members
-
const ObjectiveType &
objective_¶
-
const WeightsMap &
weights_¶
-
Components
components_¶
-
SettingsType
settings_¶
-
IsDirtyEdge
isDirtyEdge_¶
-
detail_cgc::SubmodelOptimizer<ObjectiveType>
submodel_¶
-
NodeLabelsType *
currentBest_¶
-
double
currentBestEnergy_¶
-
typedef OBJECTIVE
- template <class OBJECTIVE>
-
class
ChainedSolvers¶ Inherits from nifty::graph::opt::lifted_multicut::LiftedMulticutBase< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef ObjectiveType::WeightType
WeightType¶
-
typedef LiftedMulticutBase<ObjectiveType>
BaseType¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef ObjectiveType::WeightsMap
WeightsMap¶
Public Functions
-
virtual
~ChainedSolvers()¶
-
ChainedSolvers(const ObjectiveType &objective, const SettingsType &settings = SettingsType ())¶
-
void
optimize(NodeLabelsType &nodeLabels, VisitorBaseType *visitor)¶
-
const ChainedSolvers<OBJECTIVE>::ObjectiveType &
objective() const¶
-
virtual const NodeLabelsType &
currentBestNodeLabels()¶
-
virtual void
weightsChanged()¶
Private Members
-
const ObjectiveType &
objective_¶
-
SettingsType
settings_¶
-
NodeLabelsType *
currentBest_¶
-
double
currentBestEnergy_¶
-
typedef OBJECTIVE
- template <class OBJECTIVE>
-
class
ChainedSolvers¶ Inherits from nifty::graph::opt::multicut::MulticutBase< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef ObjectiveType::WeightType
WeightType¶
-
typedef MulticutBase<ObjectiveType>
BaseType¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef ObjectiveType::WeightsMap
WeightsMap¶
-
typedef
GraphType:: template EdgeMap<uint8_t> nifty::graph::opt::multicut::ChainedSolvers::IsDirtyEdge
Public Functions
-
virtual
~ChainedSolvers()¶
-
ChainedSolvers(const ObjectiveType &objective, const SettingsType &settings = SettingsType ())¶
-
void
optimize(NodeLabelsType &nodeLabels, VisitorBaseType *visitor)¶
-
const ChainedSolvers<OBJECTIVE>::ObjectiveType &
objective() const¶
-
virtual const NodeLabelsType &
currentBestNodeLabels()¶
-
virtual void
weightsChanged()¶
Private Members
-
const ObjectiveType &
objective_¶
-
SettingsType
settings_¶
-
NodeLabelsType *
currentBest_¶
-
double
currentBestEnergy_¶
-
typedef OBJECTIVE
- template <class T, class COMPARE = std::less<T>>
-
class
ChangeablePriorityQueue¶ -
Public Functions
-
ChangeablePriorityQueue(const size_t maxSize)¶
-
void
reset()¶
-
bool
empty() const¶
-
void
clear()¶
-
bool
contains(const int i) const¶
-
int
size() const¶
-
void
push(const value_type i, const priority_type p)¶
-
const_reference
top() const¶
-
priority_type
topPriority() const¶
-
void
pop()¶
-
priority_type
priority(const value_type i) const¶
-
void
deleteItem(const value_type i)¶
-
void
changePriority(const value_type i, const priority_type p)¶
Private Functions
-
void
swapItems(const int i, const int j)¶
-
void
bubbleUp(int k)¶
-
void
bubbleDown(int k)¶
-
bool
_lt(const T &a, const T &b) const¶
-
bool
_leqt(const T &a, const T &b) const¶
-
bool
_eq(const T &a, const T &b) const¶
-
bool
_gt(const T &a, const T &b) const¶
-
bool
_geqt(const T &a, const T &b) const¶
-
- template <class GRAPH>
-
class
ComponentsBfs¶ Public Types
-
typedef GRAPH
GraphType¶
-
typedef
GraphType:: template EdgeMap<uint64_t> nifty::graph::ComponentsBfs::LabelsMapType
-
typedef
GraphType:: template EdgeMap<bool> nifty::graph::ComponentsBfs::VisitedMapType
-
typedef GRAPH
- template <class GRAPH>
-
class
ComponentsUfd¶ Public Types
-
typedef GRAPH
GraphType¶
Public Functions
-
uint64_t
build()¶
- template <class NODE_LABELS>
-
uint64_t
buildFromLabels(const NODE_LABELS &nodeLabels)¶
- template <class EDGE_LABELS>
-
uint64_t
buildFromEdgeLabels(const EDGE_LABELS &edgeLabels)¶
- template <class SUBGRAPH_MASK>
-
uint64_t
build(const SUBGRAPH_MASK &mask)¶
-
void
reset()¶
-
bool
areConnected(const int64_t u, const int64_t v) const¶
-
bool
areConnected(const int64_t u, const int64_t v)¶
-
uint64_t
componentLabel(const uint64_t u) const¶
-
uint64_t
componentLabel(const uint64_t u)¶
-
uint64_t
operator[](const uint64_t u) const¶
-
uint64_t
maxLabel() const¶
- template <class NODE_MAP>
-
void
denseRelabeling(NODE_MAP &nodeMap) const¶
- template <class NODE_MAP, class COMP_SIZE>
-
void
denseRelabeling(NODE_MAP &nodeMap, COMP_SIZE &compSize) const¶
-
typedef GRAPH
- template <typename T, typename F>
-
template<>
structconditional<false, T, F>¶ Public Types
-
typedef F
type¶
-
typedef F
- template <class ITERATOR>
-
class
ConstIteratorRange¶ Public Types
-
typedef ITERATOR
const_iterator¶
Public Functions
-
ConstIteratorRange(const_iterator b, const_iterator e)¶
-
const_iterator
begin() const¶
-
const_iterator
begin()¶
-
const_iterator
end() const¶
-
const_iterator
end()¶
-
typedef ITERATOR
-
class
ConstProxy¶
-
class
ConstProxy¶
-
struct
ContiguousTag¶
-
class
Cplex¶ Public Types
-
typedef IlpBackendSettings
SettingsType¶
Public Functions
-
Cplex(const SettingsType &settings = SettingsType ())¶
-
~Cplex()¶
-
void
initModel(const size_t numberOfVariables, const double *coefficients)¶
- template <class Iterator>
-
void
setStart(Iterator valueIterator)¶
- template <class VariableIndexIterator, class CoefficientIterator>
-
void
addConstraint(VariableIndexIterator viBegin, VariableIndexIterator viEnd, CoefficientIterator coefficient, const double lowerBound, const double upperBound)¶
-
void
optimize()¶
-
double
label(const size_t variableIndex) const¶
- template <class OBJECTIVE_ITERATOR>
-
void
changeObjective(OBJECTIVE_ITERATOR objectiveIter)¶
-
typedef IlpBackendSettings
-
struct
CycleWithNegativeWeightsDetectedError¶ Inherits from runtime_error
Public Functions
-
CycleWithNegativeWeightsDetectedError()¶
-
- template <class T>
-
class
DefaultAccumulatedStatistics¶ Public Types
-
typedef bacc::accumulator_set<T, bacc::stats<bacc::tag::count, bacc::tag::mean, bacc::tag::min, bacc::tag::max, bacc::tag::moment<2>, bacc::tag::moment<3>, bacc::tag::tail_quantile<bacc::right>>>
AccType¶
Public Functions
-
DefaultAccumulatedStatistics(const size_t rightTailCacheSize = 1000)¶
-
DefaultAccumulatedStatistics &
acc(const T &val, const size_t pass = 0)¶
- template <class RESULT_ITER>
-
void
result(RESULT_ITER rBegin, RESULT_ITER rEnd)¶
-
size_t
requiredPasses() const¶
-
size_t
nFeatures() const¶
Private Functions
-
T
replaceRotten(const T &val, const T &replaceVal)¶
-
typedef bacc::accumulator_set<T, bacc::stats<bacc::tag::count, bacc::tag::mean, bacc::tag::min, bacc::tag::max, bacc::tag::moment<2>, bacc::tag::moment<3>, bacc::tag::tail_quantile<bacc::right>>>
-
struct
DefaultProposalGeneratorMock¶
- template <class G>
-
struct
DefaultSubgraphMask¶
- template <class AGGLOMERATIVE_CLUSTERING>
-
class
DendrogramAgglomerativeClusteringVisitor¶ Public Types
-
typedef AGGLOMERATIVE_CLUSTERING
AgglomerativeClusteringType¶
-
typedef AgglomerativeClusteringType::GraphType
GraphType¶
-
typedef
GraphType:: template NodeMap<double> nifty::graph::agglo::DendrogramAgglomerativeClusteringVisitor::NodeToEncoding
-
typedef
GraphType:: template NodeMap<double> nifty::graph::agglo::DendrogramAgglomerativeClusteringVisitor::NodeSize
Public Functions
-
DendrogramAgglomerativeClusteringVisitor(const AgglomerativeClusteringType &agglomerativeClustering)¶
- template <class NODE_SIZES>
-
DendrogramAgglomerativeClusteringVisitor(const AgglomerativeClusteringType &agglomerativeClustering, NODE_SIZES &nodeSizes)¶
-
bool
isDone() const¶
-
void
visit(const uint64_t aliveNode, const uint64_t deadNode, const double p)¶
-
const auto &
agglomerativeClustering() const¶
-
const auto &
dendrogramEncoding() const¶
Private Members
-
const AgglomerativeClusteringType &
agglomerativeClustering_¶
-
NodeSize
nodeSizes_¶
-
NodeToEncoding
nodeToEncoding_¶
-
std::vector<MergeEncodingType>
encoding_¶
-
uint64_t
timeStamp_¶
-
typedef AGGLOMERATIVE_CLUSTERING
- template <class CHILD_GRAPH>
-
class
DirectedGraphBase¶ -
Public Functions
-
NodeIterRange<ChildGraph>
nodes() const¶
-
ArcIterRange<ChildGraph>
arcs() const¶
-
ArcIterRange<ChildGraph>
edges() const¶
-
AdjacencyIterRange<ChildGraph>
adjacency(const int64_t node) const¶
-
int64_t
findEdge(const uint64_t u, const uint64_t v)¶
-
int64_t
edgeIdUpperBound() const¶
-
int64_t
numberOfEdges() const¶
-
NodeIterRange<ChildGraph>
-
struct
DontComputeRag¶
- template <class GRAPH, class ACC_0, class ACC_1, bool ENABLE_UCM>
-
class
DualClusterPolicy¶ Public Types
-
typedef GRAPH
GraphType¶
-
typedef FloatEdgeMap
EdgePrioType¶
-
typedef FloatEdgeMap
EdgeSizesType¶
-
typedef FloatNodeMap
NodeSizesType¶
-
typedef EdgeContractionGraph<GraphType, SelfType>
EdgeContractionGraphType¶
Public Functions
- template <class MERGE_PRIOS, class NOT_MERGE_PRIOS, class IS_LOCAL_EDGE, class EDGE_SIZES>
-
DualClusterPolicy(const GraphType &graph, const MERGE_PRIOS &mergePrios, const NOT_MERGE_PRIOS ¬MergePrios, const IS_LOCAL_EDGE &isLocalEdge, const EDGE_SIZES &edgeSizes, const SettingsType &settings = SettingsType ())¶
-
bool
isDone()¶
-
DualClusterPolicy<GRAPH, ACC_0, ACC_1, ENABLE_UCM>::EdgeContractionGraphType &
edgeContractionGraph()¶
-
void
contractEdge(const uint64_t edgeToContract)¶
-
void
mergeNodes(const uint64_t aliveNode, const uint64_t deadNode)¶
-
void
mergeEdges(const uint64_t aliveEdge, const uint64_t deadEdge)¶
-
void
contractEdgeDone(const uint64_t edgeToContract)¶
-
bool
isMergeAllowed(const uint64_t edge)¶
Private Types
-
typedef DualClusterPolicy<GRAPH, ACC_0, ACC_1, ENABLE_UCM>
SelfType¶
-
typedef
GRAPH:: template EdgeMap<uint8_t> nifty::graph::agglo::DualClusterPolicy::UInt8EdgeMap
-
typedef
GRAPH:: template EdgeMap<double> nifty::graph::agglo::DualClusterPolicy::FloatEdgeMap
-
typedef
GRAPH:: template NodeMap<double> nifty::graph::agglo::DualClusterPolicy::FloatNodeMap
-
typedef ACC_0
Acc0Type¶
-
typedef ACC_1
Acc1Type¶
-
typedef nifty::tools::ChangeablePriorityQueue<double, std::greater<double>>
QueueType¶
Private Functions
-
double
pqMergePrio(const uint64_t edge) const¶
Private Members
-
ACC_0
acc0_¶
-
ACC_1
acc1_¶
-
UInt8EdgeMap
isLocalEdge_¶
-
UInt8EdgeMap
isPureLocal_¶
-
UInt8EdgeMap
isPureLifted_¶
-
SettingsType
settings_¶
-
EdgeContractionGraphType
edgeContractionGraph_¶
-
uint64_t
edgeToContractNext_¶
-
double
edgeToContractNextMergePrio_¶
Friends
-
friend
nifty::graph::agglo::DualClusterPolicy::EdgeContractionGraph< GraphType, SelfType, ENABLE_UCM >
-
typedef GRAPH
- template <class GRAPH, class CALLBACK, bool WITH_EDGE_UFD>
-
class
EdgeContractionGraph¶ Inherits from detail_edge_contraction_graph::EdgeContractionGraphEdgeUfdHelper< GRAPH, WITH_EDGE_UFD >
Public Types
-
typedef GRAPH
GraphType¶
-
typedef CALLBACK
Callback¶
-
typedef NodeStorage::const_iterator
AdjacencyIter¶
Public Functions
-
EdgeContractionGraph<GRAPH, CALLBACK, WITH_EDGE_UFD>::AdjacencyIterRange
adjacency(const int64_t node) const¶
-
EdgeContractionGraph<GRAPH, CALLBACK, WITH_EDGE_UFD>::AdjacencyIter
adjacencyBegin(const int64_t node) const¶
-
EdgeContractionGraph<GRAPH, CALLBACK, WITH_EDGE_UFD>::AdjacencyIter
adjacencyEnd(const int64_t node) const¶
-
EdgeContractionGraph<GRAPH, CALLBACK, WITH_EDGE_UFD>::AdjacencyIter
adjacencyOutBegin(const int64_t node) const¶
-
EdgeContractionGraph<GRAPH, CALLBACK, WITH_EDGE_UFD>::EdgeStorage
uv(const uint64_t edge) const¶
-
int64_t
u(const uint64_t edge) const¶
-
int64_t
v(const uint64_t edge) const¶
-
uint64_t
numberOfNodes() const¶
-
uint64_t
numberOfEdges() const¶
-
uint64_t
nodeIdUpperBound() const¶
-
uint64_t
edgeIdUpperBound() const¶
-
int64_t
findEdge(const int64_t u, const int64_t v) const¶
-
void
contractEdge(const uint64_t edgeToContract)¶
-
void
reset()¶
-
const EdgeContractionGraph<GRAPH, CALLBACK, WITH_EDGE_UFD>::GraphType &
baseGraph() const¶
-
const EdgeContractionGraph<GRAPH, CALLBACK, WITH_EDGE_UFD>::GraphType &
graph() const¶
-
uint64_t
findRepresentativeNode(const uint64_t node) const¶
-
uint64_t
findRepresentativeNode(const uint64_t node)¶
-
uint64_t
nodeOfDeadEdge(const uint64_t deadEdge) const¶
-
const NodeUfdType &
nodeUfd() const¶
Private Types
-
typedef detail_graph::UndirectedAdjacency<int64_t, int64_t, int64_t, int64_t>
NodeAdjacency¶
-
typedef nifty::container::BoostFlatSet<NodeAdjacency>
NodeStorage¶
-
typedef
GraphType:: template NodeMap<NodeStorage> nifty::graph::EdgeContractionGraph::NodesContainer
-
typedef
GraphType:: template EdgeMap<EdgeStorage> nifty::graph::EdgeContractionGraph::EdgeContainer
Private Functions
-
void
relabelEdge(const uint64_t edge, const uint64_t deadNode, const uint64_t aliveNode)¶
-
typedef GRAPH
- template <class GRAPH, class OUTER_CALLBACK, class SET>
-
class
EdgeContractionGraphWithSets¶ -
Public Types
-
typedef TypeHelper::GraphType
GraphType¶
-
typedef TypeHelper::OuterCallbackType
OuterCallbackType¶
-
typedef TypeHelper::SetType
SetType¶
-
typedef TypeHelper::NodeUfdType
NodeUfdType¶
-
typedef TypeHelper::EdgeIter
EdgeIter¶
-
typedef TypeHelper::NodeIter
NodeIter¶
-
typedef TypeHelper::AdjacencyIter
AdjacencyIter¶
Public Functions
-
EdgeContractionGraphWithSets(const GraphType &graph, OuterCallbackType &outerCallback)¶
- template <class F>
-
void
forEachEdge(F &&f) const¶
- template <class F>
-
void
forEachNode(F &&f) const¶
-
AdjacencyIter
adjacencyBegin(const int64_t node) const¶
-
AdjacencyIter
adjacencyEnd(const int64_t node) const¶
-
AdjacencyIter
adjacencyOutBegin(const int64_t node) const¶
-
EdgeStorage
uv(const uint64_t edge) const¶
-
int64_t
u(const uint64_t edge) const¶
-
int64_t
v(const uint64_t edge) const¶
-
uint64_t
numberOfNodes() const¶
-
uint64_t
numberOfEdges() const¶
-
int64_t
nodeIdUpperBound() const¶
-
int64_t
edgeIdUpperBound() const¶
-
int64_t
findEdge(const int64_t u, const int64_t v) const¶
-
void
contractEdge(const uint64_t edgeToContract)¶
-
void
reset()¶
-
uint64_t
findRepresentativeNode(const uint64_t node) const¶
-
uint64_t
findRepresentativeNode(const uint64_t node)¶
-
uint64_t
findRepresentativeEdge(const uint64_t edge) const¶
-
uint64_t
findRepresentativeEdge(const uint64_t edge)¶
-
uint64_t
nodeOfDeadEdge(const uint64_t deadEdge) const¶
-
const NodeUfdType &
nodeUfd() const¶
Private Types
-
typedef EdgeContractionGraphWithSetsHelper<GRAPH, OUTER_CALLBACK, SET>
TypeHelper¶
-
typedef TypeHelper::SelfType
SelfType¶
-
typedef TypeHelper::CGraphType
CGraphType¶
-
typedef TypeHelper::EdgeStorage
EdgeStorage¶
-
typedef detail_edge_contraction_graph::InnerCallback<GraphType, OuterCallbackType, SetType>
InnerCallbackType¶
-
typedef TypeHelper::GraphType
- template <class GRAPH, class OUTER_CALLBACK, class SET>
-
struct
EdgeContractionGraphWithSetsHelper¶ Public Types
-
typedef GRAPH
GraphType¶
-
typedef OUTER_CALLBACK
OuterCallbackType¶
-
typedef SET
SetType¶
-
typedef EdgeContractionGraphWithSets<GraphType, OuterCallbackType, SET>
SelfType¶
-
typedef detail_edge_contraction_graph::InnerCallback<GraphType, OuterCallbackType, SetType>
InnerCallbackType¶
-
typedef EdgeContractionGraph<GRAPH, InnerCallbackType>
CGraphType¶
-
typedef CGraphType::AdjacencyIter
AdjacencyIter¶
-
typedef CGraphType::EdgeStorage
EdgeStorage¶
-
typedef CGraphType::NodeUfdType
NodeUfdType¶
-
typedef GRAPH
- template <class GRAPH>
-
class
EdgeIndicesToContiguousEdgeIndices¶ Inherits from nifty::graph::detail_graph::EdgeIndicesToContiguousEdgeIndicesImpl< GRAPH, GRAPH::EdgeIdTag >
- template <class GRAPH, class EDGE_ID_TAG>
-
class
EdgeIndicesToContiguousEdgeIndicesImpl¶ Public Types
-
typedef GRAPH
GraphType¶
Public Functions
-
int64_t
operator[](const int64_t edge) const¶
Private Types
-
typedef
GraphType:: template EdgeMap<uint64_t> nifty::graph::detail_graph::EdgeIndicesToContiguousEdgeIndicesImpl::ContiguousIdStorage
Private Members
-
ContiguousIdStorage
ids_¶
-
typedef GRAPH
- template <class GRAPH>
-
template<>
classEdgeIndicesToContiguousEdgeIndicesImpl<GRAPH, nifty::graph::ContiguousTag>¶ Public Types
-
typedef GRAPH
GraphType¶
-
typedef GRAPH
-
class
EdgeIter¶ Inherits from boost::counting_iterator< int64_t >
- template <class _CHILD_GRAPH>
-
struct
EdgeIterRange¶ Inherits from nifty::tools::ConstIteratorRange< _CHILD_GRAPH::EdgeIter >
- template <class T>
-
struct
EdgeMap¶ Inherits from nifty::graph::graph_maps::EdgeMap< ChildGraph, T >
- template <class T>
-
struct
EdgeMap¶ Inherits from nifty::graph::graph_maps::EdgeMap< ChildGraph, T >
- template <class G, class T>
-
struct
EdgeMap¶ Inherits from std::vector< T >
- template <class GRAPH, class NODE_MAP, class BINARY_FUNCTOR>
-
class
EdgeMapFromNodeMap¶ Public Types
-
typedef GRAPH
GraphType¶
-
typedef BINARY_FUNCTOR
BinaryFunctorType¶
-
typedef BinaryFunctorType::value_type
value_type¶
-
typedef NODE_MAP
NodeMapType¶
Public Functions
-
EdgeMapFromNodeMap(const GraphType &graph, NodeMapType nodeMap, BinaryFunctorType binaryFunctor)¶
-
value_type
operator[](const uint64_t edgeIndex) const¶
-
typedef GRAPH
-
struct
EdgeTag¶
- template <class GRAPH, bool ENABLE_UCM>
-
class
EdgeWeightedClusterPolicy¶ Public Types
-
typedef GRAPH
GraphType¶
-
typedef FloatEdgeMap
EdgeIndicatorsType¶
-
typedef FloatEdgeMap
EdgeSizesType¶
-
typedef FloatNodeMap
NodeSizesType¶
-
typedef EdgeWeightedClusterPolicySettings
SettingsType¶
-
typedef EdgeContractionGraph<GraphType, SelfType>
EdgeContractionGraphType¶
Public Functions
- template <class EDGE_INDICATORS, class EDGE_SIZES, class NODE_SIZES>
-
EdgeWeightedClusterPolicy(const GraphType &graph, const EDGE_INDICATORS &edgeIndicators, const EDGE_SIZES &edgeSizes, const NODE_SIZES &nodeSizes, const SettingsType &settings = SettingsType ())¶
-
bool
isDone() const¶
-
EdgeWeightedClusterPolicy<GRAPH, ENABLE_UCM>::EdgeContractionGraphType &
edgeContractionGraph()¶
-
void
contractEdge(const uint64_t edgeToContract)¶
-
void
mergeNodes(const uint64_t aliveNode, const uint64_t deadNode)¶
-
void
mergeEdges(const uint64_t aliveEdge, const uint64_t deadEdge)¶
-
void
contractEdgeDone(const uint64_t edgeToContract)¶
-
const EdgeIndicatorsType &
edgeIndicators() const¶
-
const EdgeSizesType &
edgeSizes() const¶
-
const NodeSizesType &
nodeSizes() const¶
Private Types
-
typedef EdgeWeightedClusterPolicy<GRAPH, ENABLE_UCM>
SelfType¶
-
typedef
GRAPH:: template EdgeMap<double> nifty::graph::agglo::EdgeWeightedClusterPolicy::FloatEdgeMap
-
typedef
GRAPH:: template NodeMap<double> nifty::graph::agglo::EdgeWeightedClusterPolicy::FloatNodeMap
-
typedef nifty::tools::ChangeablePriorityQueue<double, std::less<double>>
QueueType¶
Private Members
-
EdgeIndicatorsType
edgeIndicators_¶
-
EdgeSizesType
edgeSizes_¶
-
NodeSizesType
nodeSizes_¶
-
SettingsType
settings_¶
-
EdgeContractionGraphType
edgeContractionGraph_¶
Friends
-
friend
nifty::graph::agglo::EdgeWeightedClusterPolicy::EdgeContractionGraph< GraphType, SelfType, ENABLE_UCM >
-
typedef GRAPH
-
struct
EdgeWeightedClusterPolicySettings¶ Subclassed by nifty::graph::agglo::MalaClusterPolicy< GRAPH, ENABLE_UCM >::SettingsType
- template <class SOLVER>
-
class
EmptyVisitor¶ Inherits from nifty::graph::opt::common::VisitorBase< SOLVER >
Public Types
-
typedef SOLVER
SolverType¶
Public Functions
-
virtual void
begin(SolverType *solver)¶
-
virtual bool
visit(SolverType *solver)¶
-
virtual void
end(SolverType *solver)¶
-
typedef SOLVER
- template <typename T, typename, typename = void, typename = void>
-
struct
enable¶
- template <std::size_t DIM, class LABEL_TYPE>
-
class
ExplicitLabels¶ Public Types
-
typedef LABEL_TYPE
LabelType¶
Public Functions
-
ExplicitLabels(const nifty::marray::View<LABEL_TYPE, false> &labels = nifty::marray::View < LABEL_TYPE, false >())¶
-
uint64_t
numberOfLabels() const¶
-
typedef LABEL_TYPE
- template <bool WITH_UCM>
-
struct
ExportUcmFunctions¶ Public Static Functions
- template <class AGGLO_CLUSTER_TYPE>
-
static void
exportUcm(py::class_<AGGLO_CLUSTER_TYPE> &aggloCls)¶
- template <>
-
template<>
structExportUcmFunctions<true>¶ Public Static Functions
- template <class AGGLO_CLUSTER_TYPE>
-
static void
exportUcm(py::class_<AGGLO_CLUSTER_TYPE> &aggloCls)¶
- template <typename fastfilters_array_t>
-
struct
FastfiltersDim¶
- template <>
-
template<>
structFastfiltersDim<fastfilters_array2d_t>¶ Public Static Functions
-
static void
set_z(size_t, fastfilters_array2d_t)¶
-
static void
set_stride_z(size_t, fastfilters_array2d_t)¶
Public Static Attributes
-
const unsigned int
ndim= 2¶
-
static void
- template <>
-
template<>
structFastfiltersDim<fastfilters_array3d_t>¶ Public Static Functions
-
static void
set_z(size_t n_z, fastfilters_array3d_t &k)¶
-
static void
set_stride_z(size_t stride_z, fastfilters_array3d_t &k)¶
Public Static Attributes
-
const unsigned int
ndim= 3¶
-
static void
- template <class S = std::size_t>
-
class
FFT¶ Public Types
-
typedef S
size_type¶
Private Members
-
fftw_plan
plan_¶
-
typedef S
- template <class T>
-
struct
FiFo¶ Inherits from std::queue< T >
Public Functions
-
const T &
nextElement()¶
-
const T &
- template <size_t DIM>
-
class
FilledTopologicalGrid¶
- template <>
-
template<>
classFilledTopologicalGrid<2>¶ Public Types
-
typedef TopologicalGrid<2>
TopologicalGridType¶
Public Functions
-
FilledTopologicalGrid(const TopologicalGridType &tGrid)¶
-
const NumberOfCellsType &
numberOfCells() const¶
-
const CoordinateType &
shape() const¶
-
const CoordinateType &
topologicalGridShape() const¶
-
const NumberOfCellsType &
cellTypeOffset() const¶
Private Members
-
CoordinateType
shape_¶
-
CoordinateType
tShape_¶
-
NumberOfCellsType
numberOfCells_¶
-
NumberOfCellsType
cellTypeOffset_¶
-
typedef TopologicalGrid<2>
-
struct
FilterBase¶ Subclassed by nifty::features::GaussianGradientMagnitude, nifty::features::GaussianSmoothing, nifty::features::HessianOfGaussianEigenvalues, nifty::features::LaplacianOfGaussian, nifty::features::StructureTensorEigenvalues
Public Functions
-
FilterBase()¶
-
virtual void
operator()(const fastfilters_array2d_t&, marray::View<float>&, const double) const = 0¶
-
virtual void
operator()(const fastfilters_array3d_t&, marray::View<float>&, const double) const = 0¶
-
virtual bool
isMultiChannel() const = 0¶
-
void
set_window_ratio(const double ratio)¶
Protected Attributes
-
fastfilters_options_t
opt_¶
-
- template <class GRAPH, class ACC_0, class ACC_1, bool ENABLE_UCM>
-
class
FixationClusterPolicy¶ Public Types
-
typedef GRAPH
GraphType¶
-
typedef FloatEdgeMap
EdgePrioType¶
-
typedef FloatEdgeMap
EdgeSizesType¶
-
typedef FloatNodeMap
NodeSizesType¶
-
typedef EdgeContractionGraph<GraphType, SelfType>
EdgeContractionGraphType¶
Public Functions
- template <class MERGE_PRIOS, class NOT_MERGE_PRIOS, class IS_LOCAL_EDGE, class EDGE_SIZES>
-
FixationClusterPolicy(const GraphType &graph, const MERGE_PRIOS &mergePrios, const NOT_MERGE_PRIOS ¬MergePrios, const IS_LOCAL_EDGE &isLocalEdge, const EDGE_SIZES &edgeSizes, const SettingsType &settings = SettingsType ())¶
-
bool
isDone()¶
-
FixationClusterPolicy<GRAPH, ACC_0, ACC_1, ENABLE_UCM>::EdgeContractionGraphType &
edgeContractionGraph()¶
-
void
contractEdge(const uint64_t edgeToContract)¶
-
void
mergeNodes(const uint64_t aliveNode, const uint64_t deadNode)¶
-
void
mergeEdges(const uint64_t aliveEdge, const uint64_t deadEdge)¶
-
void
contractEdgeDone(const uint64_t edgeToContract)¶
-
bool
isMergeAllowed(const uint64_t edge)¶
Private Types
-
typedef FixationClusterPolicy<GRAPH, ACC_0, ACC_1, ENABLE_UCM>
SelfType¶
-
typedef
GRAPH:: template EdgeMap<uint8_t> nifty::graph::agglo::FixationClusterPolicy::UInt8EdgeMap
-
typedef
GRAPH:: template EdgeMap<float> nifty::graph::agglo::FixationClusterPolicy::FloatEdgeMap
-
typedef
GRAPH:: template NodeMap<float> nifty::graph::agglo::FixationClusterPolicy::FloatNodeMap
-
typedef ACC_0
Acc0Type¶
-
typedef ACC_1
Acc1Type¶
-
typedef nifty::tools::ChangeablePriorityQueue<float, std::greater<float>>
QueueType¶
Private Functions
-
double
pqMergePrio(const uint64_t edge) const¶
Private Members
-
ACC_0
acc0_¶
-
ACC_1
acc1_¶
-
GRAPH:: template EdgeMap<EdgeStates> nifty::graph::agglo::FixationClusterPolicy::edgeState_
-
SettingsType
settings_¶
-
EdgeContractionGraphType
edgeContractionGraph_¶
-
uint64_t
edgeToContractNext_¶
-
double
edgeToContractNextMergePrio_¶
Friends
-
friend
nifty::graph::agglo::FixationClusterPolicy::EdgeContractionGraph< GraphType, SelfType, ENABLE_UCM >
-
typedef GRAPH
- template <class Key, class Comparison = std::less<Key>, class Allocator = std::allocator<Key>>
-
class
FlatSet¶ Public Types
-
typedef Key
key_type¶
-
typedef Key
value_type¶
-
typedef Comparison
key_compare¶
-
typedef Comparison
value_compare¶
-
typedef Allocator
allocator_type¶
-
typedef Allocator::const_reference
const_reference¶
Public Functions
-
FlatSet(const std::size_t reserveSize, const Comparison &comparison = Comparison(), const Allocator &allocator = Allocator())¶
-
FlatSet(const Comparison &comparison = Comparison(), const Allocator &allocator = Allocator())¶
- template <class Iterator>
-
FlatSet(Iterator beginInput, Iterator endInput, const Comparison &comparison = Comparison(), const Allocator &allocator = Allocator())¶
-
bool
empty() const¶
-
std::pair<const_iterator, bool>
insert(const value_type&)¶
- template <class Iterator>
-
void
insert(Iterator first, Iterator last)¶
-
const_iterator
insert(iterator, const value_type&)¶
-
void
clear()¶
-
std::pair<typename FlatSet<Key, Comparison, Allocator>::const_iterator, typename FlatSet<Key, Comparison, Allocator>::const_iterator>
equal_range(const key_type &value) const¶
-
typedef Key
-
struct
FlexibleCallback¶
-
struct
functions¶ Public Static Functions
- template <typename charT, typename traits>
-
static std::basic_ostream<charT, traits> &
write(std::basic_ostream<charT, traits> &out, float arg)¶
- template <class OBJECTIVE>
-
class
FusionMove¶ Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef
GraphType:: template NodeMap<uint64_t> nifty::graph::opt::multicut::FusionMove::NodeLabelsType
-
typedef UndirectedGraph
FmGraph¶
-
typedef MulticutObjective<FmGraph, double>
FmObjective¶
-
typedef MulticutBase<FmObjective>
FmMcBase¶
-
typedef MulticutEmptyVisitor<FmObjective>
FmEmptyVisitor¶
Public Functions
-
FusionMove(const ObjectiveType &objective, const SettingsType &settings = SettingsType ())¶
Private Functions
- template <class NODE_MAP>
-
void
fuseImpl(NODE_MAP *result)¶
-
typedef OBJECTIVE
- template <class OBJECTIVE>
-
class
FusionMove¶ Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef
GraphType:: template NodeMap<uint8_t> nifty::graph::opt::common::FusionMove::NodeLabels
-
typedef UndirectedGraph
FmGraph¶
-
typedef MulticutFactoryBase<FmObjective>
FmMcFactoryBase¶
-
typedef MulticutBase<FmObjective>
FmMcBase¶
-
typedef MulticutEmptyVisitor<FmObjective>
FmEmptyVisitor¶
Public Functions
-
FusionMove(const ObjectiveType &objective, const SettingsType &settings = SettingsType ())¶
Private Functions
- template <class NODE_MAP>
-
void
fuseImpl(NODE_MAP *result)¶
-
typedef OBJECTIVE
- template <class OBJECTIVE>
-
class
FusionMove¶ Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef ObjectiveType::LiftedGraphType
LiftedGraphType¶
-
typedef
GraphType:: template NodeMap<uint64_t> nifty::graph::opt::lifted_multicut::FusionMove::NodeLabels
-
typedef UndirectedGraph
FmGraphType¶
-
typedef UndirectedGraph
FmLiftedGraphType¶
-
typedef LiftedMulticutObjective<FmGraphType, double>
FmObjective¶
-
typedef LiftedMulticutBase<FmObjective>
FmLmcBase¶
Public Functions
-
FusionMove(const ObjectiveType &objective, const SettingsType &settings = SettingsType ())¶
Private Functions
- template <class NODE_MAP>
-
void
fuseImpl(NODE_MAP *result)¶
Private Members
-
const ObjectiveType &
objective_¶
-
const LiftedGraphType &
liftedGraph_¶
-
SettingsType
settings_¶
-
NodeLabels
nodeToDense_¶
-
typedef OBJECTIVE
- template <class PROPPOSAL_GEN>
-
class
FusionMoveBased¶ Inherits from nifty::graph::opt::multicut::MulticutBase< PROPPOSAL_GEN::ObjectiveType >
Public Types
-
typedef PROPPOSAL_GEN::ObjectiveType
ObjectiveType¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef MulticutBase<ObjectiveType>
BaseType¶
-
typedef FusionMove<ObjectiveType>
FusionMoveType¶
-
typedef PROPPOSAL_GEN
ProposalGen¶
-
typedef ProposalGen::SettingsType
ProposalGenSettings¶
-
typedef FusionMoveType::SettingsType
FusionMoveSettings¶
-
typedef
GraphType:: template EdgeMap<double> nifty::graph::opt::multicut::FusionMoveBased::EdgeWeights
Public Functions
-
FusionMoveBased(const ObjectiveType &objective, const SettingsType &settings = SettingsType ())¶
-
~FusionMoveBased()¶
-
void
optimize(NodeLabelsType &nodeLabels, VisitorBaseType *visitor)¶
-
const FusionMoveBased<PROPPOSAL_GEN>::ObjectiveType &
objective() const¶
-
virtual const NodeLabelsType &
currentBestNodeLabels()¶
-
virtual void
weightsChanged()¶
Private Functions
-
void
optimizeParallel(NodeLabelsType &nodeLabels, VisitorBaseType *visitor)¶
-
void
optimizeSerial(NodeLabelsType &nodeLabels, VisitorBaseType *visitor)¶
Private Members
-
const ObjectiveType &
objective_¶
-
SettingsType
settings_¶
-
nifty::parallel::ParallelOptions
parallelOptions_¶
-
std::vector<ProposalGen *>
pgens_¶
-
std::vector<NodeLabelsType *>
solBufferIn_¶
-
std::vector<NodeLabelsType *>
solBufferOut_¶
-
std::vector<FusionMoveType *>
fusionMoves_¶
-
NodeLabelsType *
currentBest_¶
-
nifty::parallel::ThreadPool
threadPool_¶
-
typedef PROPPOSAL_GEN::ObjectiveType
- template <class OBJECTIVE>
-
class
FusionMoveBased¶ Inherits from nifty::graph::opt::lifted_multicut::LiftedMulticutBase< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef LiftedMulticutBase<ObjectiveType>
BaseType¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef ObjectiveType::LiftedGraphType
LiftedGraphType¶
-
typedef ProposalGeneratorBase<ObjectiveType>
ProposalGeneratorBaseType¶
-
typedef ProposalGeneratorFactoryBase<ObjectiveType>
ProposalGeneratorFactoryBaseType¶
-
typedef WatershedProposalGenerator<ObjectiveType>
DefaultProposalGeneratorType¶
-
typedef ProposalGeneratorFactory<DefaultProposalGeneratorType>
DefaultProposalGeneratorFactoryType¶
Public Functions
-
~FusionMoveBased()¶
-
FusionMoveBased(const ObjectiveType &objective, const SettingsType &settings = SettingsType ())¶
-
void
optimize(NodeLabelsType &nodeLabels, VisitorBaseType *visitor)¶
-
const FusionMoveBased<OBJECTIVE>::ObjectiveType &
objective() const¶
-
virtual const NodeLabelsType &
currentBestNodeLabels()¶
Private Types
-
typedef FusionMove<ObjectiveType>
FusionMoveType¶
Private Functions
-
void
optimizeSingleThread(VisitorProxyType &visitorProxy)¶
-
void
optimizeMultiThread(VisitorProxyType &visitorProxy)¶
Private Members
-
const ObjectiveType &
objective_¶
-
SettingsType
settings_¶
-
const LiftedGraphType &
liftedGraph_¶
-
NodeLabelsType *
currentBest_¶
-
double
currentBestEnergy_¶
-
nifty::parallel::ParallelOptions
parallelOptions_¶
-
nifty::parallel::ThreadPool
threadPool_¶
-
ProposalGeneratorBaseType *
proposalGenerator_¶
-
std::vector<FusionMoveType *>
fusionMoves_¶
-
typedef OBJECTIVE
- template <class T = long double>
-
class
GaussianCurvature2D¶ Public Types
-
typedef nifty::math::NumericTraits<T>::RealPromote
ValueType¶
Public Functions
- template <class T0, class T1>
-
void
operator()(const nifty::marray::View<T0> &coordinates, nifty::marray::View<T1> &out, const bool closedLine) const¶
- template <class COORD_ITER, class OUT_ITER>
-
void
operator()(COORD_ITER coordsBegin, COORD_ITER coordsEnd, OUT_ITER outIter, const bool closedLine) const¶
-
int
radius() const¶
Private Functions
- template <class COORD_ITER, class OUT_ITER>
-
void
impl(COORD_ITER coordsBegin, OUT_ITER outIter, const size_t size, const bool closedLine) const¶
-
typedef nifty::math::NumericTraits<T>::RealPromote
-
struct
GaussianGradientMagnitude¶ Inherits from nifty::features::FilterBase
-
struct
GaussianSmoothing¶ Inherits from nifty::features::FilterBase
- template <class G, class T>
-
class
GeneralizedMeanEdgeMap¶ Public Types
-
typedef G
GraphType¶
-
typedef
GraphType:: template EdgeMap<T> nifty::graph::agglo::merge_rules::GeneralizedMeanEdgeMap::MeanEdgeMapType
-
typedef
GraphType:: template EdgeMap<nifty::float16_t> nifty::graph::agglo::merge_rules::GeneralizedMeanEdgeMap::SizeEdgeMapType
-
typedef GeneralizedMeanSettings
SettingsType¶
Public Functions
-
auto
name() const¶
- template <class VALUES, class WEIGHTS>
-
GeneralizedMeanEdgeMap(const GraphType &g, const VALUES &values, const WEIGHTS &weights, const SettingsType &settings = SettingsType ())¶
-
void
merge(const uint64_t aliveEdge, const uint64_t deadEdge)¶
-
void
setValueFrom(const uint64_t targetEdge, const uint64_t sourceEdge)¶
-
void
setFrom(const uint64_t targetEdge, const uint64_t sourceEdge)¶
-
void
set(const uint64_t targetEdge, const T &value, const T &weight)¶
-
T
operator[](const uint64_t edge) const¶
Public Static Functions
-
static auto
staticName()¶
-
typedef G
- template <size_t DIM>
-
class
Geometry¶
- template <>
-
template<>
classGeometry<2>¶ Public Types
-
typedef TopologicalGrid<2>
TopologicalGridType¶
Public Functions
-
Geometry(const TopologicalGridType &tGrid, const bool fill = false, const bool sort1Cells = true)¶
- template <size_t CELL_TYPE>
-
const CellGeometryVector<2, CELL_TYPE> &
geometry() const¶
Private Members
-
std::tuple<CellGeometryVector<2, 0>, CellGeometryVector<2, 1>, CellGeometryVector<2, 2>>
geometry_¶
-
typedef TopologicalGrid<2>
-
class
gil_release¶
-
class
Glpk¶ Public Types
-
typedef IlpBackendSettings
SettingsType¶
Public Functions
-
Glpk(const SettingsType &settings = SettingsType ())¶
-
~Glpk()¶
-
void
initModel(const size_t numberOfVariables, const double *coefficients)¶
- template <class Iterator>
-
void
setStart(Iterator valueIterator)¶
- template <class VariableIndexIterator, class CoefficientIterator>
-
void
addConstraint(VariableIndexIterator viBegin, VariableIndexIterator viEnd, CoefficientIterator coefficient, const double lowerBound, const double upperBound)¶
-
void
optimize()¶
-
double
label(const size_t variableIndex) const¶
- template <class OBJECTIVE_ITERATOR>
-
void
changeObjective(OBJECTIVE_ITERATOR objectiveIter)¶
-
typedef IlpBackendSettings
- template <class GRAPH>
-
struct
GraphName¶
- template <class BASE_GRAPH>
-
template<>
structGraphName<PyContractionGraph<BASE_GRAPH>>¶
- template <>
-
template<>
structGraphName<PyUndirectedGraph>¶
- template <size_t DIM, bool SIMPLE_NH>
-
template<>
structGraphName<UndirectedGridGraph<DIM, SIMPLE_NH>>¶
- template <size_t DIM>
-
template<>
structGraphName<UndirectedLongRangeGridGraph<DIM>>¶
- template <bool TAKE_UNCUT = true>
-
struct
GraphSubgraphWithCut¶
- template <class OBJECTIVE>
-
class
GreedyAdditiveMulticutProposals¶ Inherits from nifty::graph::opt::common::ProposalGeneratorBase< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef nifty::graph::opt::MulticutBase<ObjectiveType>
Base¶
-
typedef MulticutGreedyAdditive<Objective>
Solver¶
-
typedef
GraphType:: template NodeMap<uint64_t> nifty::graph::opt::common::GreedyAdditiveMulticutProposals::ProposalType
-
typedef
GraphType:: template EdgeMap<float> nifty::graph::opt::common::GreedyAdditiveMulticutProposals::EdgeWeights
Public Functions
-
GreedyAdditiveMulticutProposals(const ObjectiveType &objective, const size_t numberOfThreads, const SettingsType &settings = SettingsType ())¶
-
void
reset()¶
-
virtual
~GreedyAdditiveMulticutProposals()¶
-
virtual void
generateProposal(const ProposalType ¤tBest, ProposalType &proposal, const size_t tid)¶
-
typedef OBJECTIVE
- template <class OBJECTIVE>
-
class
GreedyAdditiveProposals¶ Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef MulticutBase<ObjectiveType>
Base¶
-
typedef MulticutGreedyAdditive<ObjectiveType>
Solver¶
Public Functions
-
GreedyAdditiveProposals(const ObjectiveType &objective, const SettingsType &settings, const size_t threadIndex)¶
-
~GreedyAdditiveProposals()¶
-
void
generate(const NodeLabelsType ¤tBest, NodeLabelsType &proposal)¶
-
void
reset()¶
Private Members
-
const ObjectiveType &
objective_¶
-
SettingsType
settings_¶
-
size_t
threadIndex_¶
-
size_t
proposalNumber_¶
-
typedef OBJECTIVE
- template <size_t DIM, class LABELS_PROXY>
-
class
GridRag¶ Inherits from nifty::graph::UndirectedGraph<>
Public Types
-
typedef LABELS_PROXY
LabelsProxy¶
Public Functions
-
GridRag(const LabelsProxy &labelsProxy, const SettingsType &settings = SettingsType ())¶
- template <class ITER>
-
GridRag(const LabelsProxy &labelsProxy, ITER serializationBegin, const SettingsType &settings = SettingsType ())¶
-
const LabelsProxy &
labelsProxy() const¶
Protected Functions
-
GridRag(const LabelsProxy &labelsProxy, const SettingsType &settings, const DontComputeRag)¶
Friends
-
friend
nifty::graph::GridRag::detail_rag::ComputeRag< SelfType >
-
typedef LABELS_PROXY
- template <class LABELS_PROXY>
-
class
GridRag3DStacked2D¶
- template <class LABEL_PROXY>
-
class
GridRagStacked2D¶ Inherits from nifty::graph::GridRag< 3, LABEL_PROXY >
Public Types
Public Functions
-
GridRagStacked2D(const LabelsProxy &labelsProxy, const SettingsType &settings = SettingsType ())¶
-
uint64_t
numberOfNodes(const uint64_t sliceIndex) const¶
-
uint64_t
numberOfInSliceEdges(const uint64_t sliceIndex) const¶
-
uint64_t
numberOfInBetweenSliceEdges(const uint64_t sliceIndex) const¶
-
uint64_t
inSliceEdgeOffset(const uint64_t sliceIndex) const¶
-
uint64_t
betweenSliceEdgeOffset(const uint64_t sliceIndex) const¶
Private Types
-
typedef LABEL_PROXY
LabelsProxyType¶
-
typedef GridRagStacked2D<LABEL_PROXY>
SelfType¶
-
typedef LabelsProxyType::LabelType
LabelType¶
Private Members
-
std::vector<PerSliceData>
perSliceDataVec_¶
-
uint64_t
numberOfInSliceEdges_¶
-
uint64_t
numberOfInBetweenSliceEdges_¶
Friends
-
friend
nifty::graph::GridRagStacked2D::detail_rag::ComputeRag< SelfType >
-
-
class
Gurobi¶ Public Types
-
typedef IlpBackendSettings
SettingsType¶
Public Functions
-
Gurobi(const SettingsType &settings = SettingsType ())¶
-
~Gurobi()¶
-
void
initModel(const size_t numberOfVariables, const double *coefficients)¶
- template <class Iterator>
-
void
setStart(Iterator valueIterator)¶
- template <class VariableIndexIterator, class CoefficientIterator>
-
void
addConstraint(VariableIndexIterator viBegin, VariableIndexIterator viEnd, CoefficientIterator coefficient, const double lowerBound, const double upperBound)¶
-
void
optimize()¶
-
double
label(const size_t variableIndex) const¶
- template <class OBJECTIVE_ITERATOR>
-
void
changeObjective(OBJECTIVE_ITERATOR objectiveIter)¶
-
typedef IlpBackendSettings
-
class
half¶ -
Private Static Attributes
-
const std::float_round_style
round_style= (std::float_round_style)(HALF_ROUND_STYLE)¶
Friends
-
friend
half_float::half::detail::functions
-
friend
half_float::half::detail::unary_specialized< half >
-
friend
half_float::half::detail::binary_specialized< half, half >
-
friend
half_float::half::detail::half_caster
-
friend
half_float::half::std::numeric_limits< half >
-
const std::float_round_style
- template <typename T, typename U, std::float_round_style R = (std::float_round_style)(HALF_ROUND_STYLE)>
-
struct
half_caster¶
- template <std::float_round_style R>
-
template<>
structhalf_caster<half, expr, R>¶ Inherits from half_float::detail::half_caster< half, half, R >
- template <std::float_round_style R>
-
template<>
structhalf_caster<half, half, R>¶ Subclassed by half_float::detail::half_caster< half, expr, R >
- template <typename T, std::float_round_style R>
-
template<>
structhalf_caster<T, expr, R>¶ -
Private Static Functions
-
static T
cast_impl(half arg, false_type)¶
-
static T
- template <class T>
-
class
Hdf5Array¶ Public Functions
- template <class SHAPE_ITER, class CHUNK_SHAPE_ITER>
-
Hdf5Array(const hid_t &groupHandle, const std::string &datasetName, SHAPE_ITER shapeBegin, SHAPE_ITER shapeEnd, CHUNK_SHAPE_ITER chunkShapeBegin, const int compression = -1)¶
-
int
setCache()¶
-
~Hdf5Array()¶
-
uint64_t
dimension() const¶
-
bool
isChunked() const¶
Private Functions
- template <class BaseIterator, class ShapeIterator>
-
void
loadHyperslab(BaseIterator baseBegin, BaseIterator baseEnd, ShapeIterator shapeBegin, marray::View<T> &out) const¶
- template <std::size_t DIM, class LABEL_TYPE>
-
class
Hdf5Labels¶ Public Types
-
typedef tools::BlockStorage<LABEL_TYPE>
BlockStorageType¶
-
typedef LABEL_TYPE
LabelType¶
Public Functions
-
Hdf5Labels(const Hdf5ArrayType &labels, const uint64_t numberOfLabels)¶
-
uint64_t
numberOfLabels() const¶
-
typedef tools::BlockStorage<LABEL_TYPE>
-
struct
HessianOfGaussianEigenvalues¶ Inherits from nifty::features::FilterBase
- template <class WEIGHT_TYPE = float>
-
class
HigherOrderFactor¶ Public Functions
- template <class GRAPH, class WEIGHT_TYPE>
-
class
HigherOrderMulticutObjective¶ Public Types
-
typedef GRAPH
GraphType¶
-
typedef
GraphType:: template NodeMap<uint64_t> nifty::graph::opt::higher_order_multicut::HigherOrderMulticutObjective::NodeLabelsType
-
typedef WEIGHT_TYPE
WeightType¶
-
typedef graph_maps::EdgeMap<GraphType, WeightType>
WeightsMap¶
Public Functions
-
WeightsMap &
weights()¶
-
const WeightsMap &
weights() const¶
-
const std::vector<HigherOrderFactor> &
higherOrderFactors() const¶
-
typedef GRAPH
- template <class T, class BINCOUNT = float>
-
class
Histogram¶ Public Types
-
typedef BINCOUNT
BincountType¶
Public Functions
-
Histogram(const T minVal = 0, const T maxVal = 1, const size_t bincount = 40)¶
-
void
assign(const T minVal = 0, const T maxVal = 1, const size_t bincount = 40)¶
- template <class ITER>
-
void
clearSetMinMaxAndFillFrom(ITER begin, ITER end)¶
-
void
setMinMax(const T minVal, const T maxVal)¶
-
const BincountType &
operator[](const size_t i) const¶
-
size_t
numberOfBins() const¶
-
BincountType
sum() const¶
-
void
insert(const T &value, const double w = 1.0)¶
-
void
normalize(const BincountType &targetSum)¶
-
void
clear()¶
-
void
clearCounts()¶
-
double
binToValue(const double fbin) const¶
-
float
binWidth() const¶
-
double
rank(const double q) const¶
Private Members
-
std::vector<BincountType>
counts_¶
-
T
minVal_¶
-
T
maxVal_¶
-
T
binWidth_¶
-
BincountType
sum_¶
-
typedef BINCOUNT
- template <class S = std::size_t>
-
class
IFFT¶ Public Types
-
typedef S
size_type¶
Private Members
-
fftw_plan
plan_¶
-
typedef S
-
struct
IlpBackendSettings¶
-
struct
InitializationSkipping¶
- template <class OBJECTIVE>
-
class
InterfaceFlipperProposalGenerator¶ Inherits from nifty::graph::opt::common::ProposalGeneratorBase< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef
GraphType:: template NodeMap<uint64_t> nifty::graph::opt::common::InterfaceFlipperProposalGenerator::ProposalType
-
typedef
GraphType:: template NodeMap<bool> nifty::graph::opt::common::InterfaceFlipperProposalGenerator::IsUsed
Public Functions
-
InterfaceFlipperProposalGenerator(const ObjectiveType &objective, const size_t numberOfThreads, const SettingsType &settings = SettingsType ())¶
-
void
reset()¶
-
virtual
~InterfaceFlipperProposalGenerator()¶
-
virtual void
generateProposal(const ProposalType ¤tBest, ProposalType &proposal, const size_t tid)¶
-
typedef OBJECTIVE
- template <typename>
-
struct
is_float¶ Inherits from half_float::detail::bool_type< false >
- template <typename T>
-
template<>
structis_float<const T>¶ Inherits from half_float::detail::is_float< T >
- template <typename T>
-
template<>
structis_float<volatile const T>¶ Inherits from half_float::detail::is_float< T >
- template <>
-
template<>
structis_float<double>¶ Inherits from half_float::detail::bool_type< true >
- template <>
-
template<>
structis_float<float>¶ Inherits from half_float::detail::bool_type< true >
- template <>
-
template<>
structis_float<long double>¶ Inherits from half_float::detail::bool_type< true >
- template <typename T>
-
template<>
structis_float<volatile T>¶ Inherits from half_float::detail::is_float< T >
- template <class T, bool isConst, class A>
-
class
Iterator¶ Public Types
-
typedef T
value_type¶
-
typedef ptrdiff_t
difference_type¶
-
typedef marray_detail::IfBool<isConst, const T *, T *>::type
pointer¶
-
typedef marray_detail::IfBool<isConst, const T&, T&>::type
reference¶
Public Functions
-
Iterator()¶
-
Iterator<T, isConst, A> &
operator+=(const difference_type &x)¶
-
Iterator<T, isConst, A> &
operator-=(const difference_type &x)¶
-
Iterator<T, isConst, A>
operator+(const difference_type &x) const¶
-
Iterator<T, isConst, A>
operator-(const difference_type &x) const¶
- template <bool isConstLocal>
-
Iterator<T, isConst, A>::difference_type
operator-(const Iterator<T, isConstLocal, A> &it) const¶
-
bool
hasMore() const¶
- template <class CoordinateIterator>
-
void
coordinate(CoordinateIterator it) const¶
Private Functions
-
void
testInvariant() const¶
Private Members
-
view_pointer
view_¶
Friends
-
friend
andres::Iterator::Marray< T, A >
-
friend
andres::Iterator::Iterator< T, !isConst, A >
-
typedef T
- template <class OBJECTIVE>
-
class
KernighanLin¶ Inherits from nifty::graph::opt::multicut::MulticutBase< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef ObjectiveType::WeightType
WeightType¶
-
typedef MulticutBase<ObjectiveType>
BaseType¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef ObjectiveType::WeightsMap
WeightsMap¶
-
typedef
GraphType:: template EdgeMap<uint8_t> nifty::graph::opt::multicut::KernighanLin::IsDirtyEdge
Public Functions
-
virtual
~KernighanLin()¶
-
KernighanLin(const ObjectiveType &objective, const SettingsType &settings = SettingsType ())¶
-
void
optimize(NodeLabelsType &nodeLabels, VisitorBaseType *visitor)¶
-
const KernighanLin<OBJECTIVE>::ObjectiveType &
objective() const¶
-
virtual const NodeLabelsType &
currentBestNodeLabels()¶
-
virtual void
weightsChanged()¶
Private Functions
- template <class NODE_LABELS>
-
uint64_t
maxLabel(const NODE_LABELS &nodeLabels)¶
Private Members
-
const ObjectiveType &
objective_¶
-
SettingsType
settings_¶
-
NodeLabelsType *
currentBest_¶
-
double
currentBestEnergy_¶
-
TwoCutBuffers
buffer_¶
-
typedef OBJECTIVE
-
struct
LaplacianOfGaussian¶ Inherits from nifty::features::FilterBase
- template <class T>
-
struct
LiFo¶ Inherits from std::stack< T >
Public Functions
-
const T &
nextElement()¶
-
const T &
- template <class GRAPH, bool ENABLE_UCM>
-
class
LiftedAggloClusterPolicy¶ Public Types
-
typedef GRAPH
GraphType¶
-
typedef FloatEdgeMap
EdgePrioType¶
-
typedef FloatEdgeMap
EdgeSizesType¶
-
typedef FloatNodeMap
NodeSizesType¶
-
typedef EdgeContractionGraph<GraphType, SelfType>
EdgeContractionGraphType¶
Public Functions
- template <class MERGE_PRIOS, class NOT_MERGE_PRIOS, class IS_MERGE_EDGE, class EDGE_SIZES>
-
LiftedAggloClusterPolicy(const GraphType&, const MERGE_PRIOS&, const NOT_MERGE_PRIOS&, const IS_MERGE_EDGE&, const EDGE_SIZES&, const SettingsType &settings = SettingsType ())¶
-
bool
isDone()¶
-
LiftedAggloClusterPolicy<GRAPH, ENABLE_UCM>::EdgeContractionGraphType &
edgeContractionGraph()¶
-
void
contractEdge(const uint64_t edgeToContract)¶
-
void
mergeNodes(const uint64_t aliveNode, const uint64_t deadNode)¶
-
void
mergeEdges(const uint64_t aliveEdge, const uint64_t deadEdge)¶
-
void
contractEdgeDone(const uint64_t edgeToContract)¶
- template <class MERGE_PRIOS, class NOT_MERGE_PRIOS, class IS_MERGE_EDGE, class EDGE_SIZES>
-
LiftedAggloClusterPolicy(const GraphType &graph, const MERGE_PRIOS &mergePrios, const IS_MERGE_EDGE &isMergeEdge, const EDGE_SIZES &edgeSizes, const SettingsType &settings)¶
Private Types
-
typedef LiftedAggloClusterPolicy<GRAPH, ENABLE_UCM>
SelfType¶
-
typedef
GRAPH:: template EdgeMap<uint8_t> nifty::graph::agglo::LiftedAggloClusterPolicy::UInt8EdgeMap
-
typedef
GRAPH:: template EdgeMap<double> nifty::graph::agglo::LiftedAggloClusterPolicy::FloatEdgeMap
-
typedef
GRAPH:: template NodeMap<double> nifty::graph::agglo::LiftedAggloClusterPolicy::FloatNodeMap
-
typedef nifty::tools::ChangeablePriorityQueue<double, std::greater<double>>
QueueType¶
Private Functions
-
double
pqActionPrio(const uint64_t edge) const¶
Private Members
-
EdgePrioType
mergePrios_¶
-
EdgePrioType
notMergePrios_¶
-
UInt8EdgeMap
isMergeEdge_¶
-
EdgeSizesType
edgeSizes_¶
-
SettingsType
settings_¶
-
EdgeContractionGraphType
edgeContractionGraph_¶
-
uint64_t
edgeToContractNext_¶
-
double
edgeToContractNextMergePrio_¶
Friends
-
friend
nifty::graph::agglo::LiftedAggloClusterPolicy::EdgeContractionGraph< GraphType, SelfType, ENABLE_UCM >
-
typedef GRAPH
- template <class GRAPH, class ACC, bool ENABLE_UCM>
-
class
LiftedGraphEdgeWeightedClusterPolicy¶ Public Types
-
typedef GRAPH
GraphType¶
-
typedef FloatEdgeMap
EdgePrioType¶
-
typedef FloatEdgeMap
EdgeSizesType¶
-
typedef FloatNodeMap
NodeSizesType¶
-
typedef EdgeContractionGraph<GraphType, SelfType>
EdgeContractionGraphType¶
-
typedef GRAPH
GraphType¶
-
typedef EDGE_INDICATORS
EdgeIndicatorsType¶
-
typedef EDGE_SIZES
EdgeSizesType¶
-
typedef NODE_SIZES
NodeSizesType¶
-
typedef EDGE_IS_LIFTED
EdgeIsLifted¶
-
typedef EdgeWeightedClusterPolicySettings
SettingsType¶
-
typedef EdgeContractionGraph<GraphType, SelfType>
EdgeContractionGraphType¶
Public Functions
- template <class MERGE_PRIOS, class IS_LOCAL_EDGE, class EDGE_SIZES>
-
LiftedGraphEdgeWeightedClusterPolicy(const GraphType &graph, const MERGE_PRIOS &mergePrios, const IS_LOCAL_EDGE &isLocalEdge, const EDGE_SIZES &edgeSizes, const SettingsType &settings = SettingsType ())¶
-
bool
isDone()¶
-
LiftedGraphEdgeWeightedClusterPolicy<GRAPH, EDGE_INDICATORS, EDGE_SIZES, NODE_SIZES, EDGE_IS_LIFTED, ENABLE_UCM>::EdgeContractionGraphType &
edgeContractionGraph()¶
-
void
contractEdge(const uint64_t edgeToContract)¶
-
void
mergeNodes(const uint64_t aliveNode, const uint64_t deadNode)¶
-
void
mergeEdges(const uint64_t aliveEdge, const uint64_t deadEdge)¶
-
void
contractEdgeDone(const uint64_t edgeToContract)¶
-
LiftedGraphEdgeWeightedClusterPolicy(const GraphType &graph, EdgeIndicatorsType edgeIndicators, EdgeSizesType edgeSizes, NodeSizesType nodeSizes, EdgeIsLifted edgeIsLifted, const SettingsType &settings = SettingsType ())¶
-
bool
isDone() const¶
-
EdgeContractionGraphType &
edgeContractionGraph()¶
-
void
contractEdge(const uint64_t edgeToContract)¶
-
void
mergeNodes(const uint64_t aliveNode, const uint64_t deadNode)¶
-
void
mergeEdges(const uint64_t aliveEdge, const uint64_t deadEdge)¶
-
void
contractEdgeDone(const uint64_t edgeToContract)¶
Private Types
-
typedef LiftedGraphEdgeWeightedClusterPolicy<GRAPH, ACC, ENABLE_UCM>
SelfType¶
-
typedef
GRAPH:: template EdgeMap<uint8_t> nifty::graph::agglo::LiftedGraphEdgeWeightedClusterPolicy::UInt8EdgeMap
-
typedef
GRAPH:: template EdgeMap<double> nifty::graph::agglo::LiftedGraphEdgeWeightedClusterPolicy::FloatEdgeMap
-
typedef
GRAPH:: template NodeMap<double> nifty::graph::agglo::LiftedGraphEdgeWeightedClusterPolicy::FloatNodeMap
-
typedef ACC
AccType¶
-
typedef nifty::tools::ChangeablePriorityQueue<double, std::greater<double>>
QueueType¶
-
typedef LiftedGraphEdgeWeightedClusterPolicy<GRAPH, EDGE_INDICATORS, EDGE_SIZES, NODE_SIZES, EDGE_IS_LIFTED, ENABLE_UCM>
SelfType¶
-
typedef
GraphType:: template EdgeMap<double> nifty::graph::agglo::LiftedGraphEdgeWeightedClusterPolicy::CurrentWeightMap
-
typedef nifty::tools::ChangeablePriorityQueue<double, std::less<double>>
QueueType¶
Private Functions
-
double
pqMergePrio(const uint64_t edge) const¶
-
void
initializeWeights()¶
-
double
computeWeight(const uint64_t edge) const¶
Private Members
-
ACC
acc_¶
-
UInt8EdgeMap
isLocalEdge_¶
-
UInt8EdgeMap
isPureLocal_¶
-
UInt8EdgeMap
isPureLifted_¶
-
SettingsType
settings_¶
-
EdgeContractionGraphType
edgeContractionGraph_¶
-
uint64_t
edgeToContractNext_¶
-
double
edgeToContractNextMergePrio_¶
-
EdgeIndicatorsType
edgeIndicators_¶
-
EdgeSizesType
edgeSizes_¶
-
NodeSizesType
nodeSizes_¶
-
EdgeIsLifted
edgeIsLifted_¶
-
CurrentWeightMap
currentWeight_¶
Friends
-
friend
nifty::graph::agglo::LiftedGraphEdgeWeightedClusterPolicy::EdgeContractionGraph< GraphType, SelfType, ENABLE_UCM >
-
typedef GRAPH
- template <class OBJECTIVE>
-
class
LiftedMulticutAndresGreedyAdditive¶ Inherits from nifty::graph::opt::lifted_multicut::LiftedMulticutBase< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef LiftedMulticutBase<ObjectiveType>
BaseType¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef ObjectiveType::LiftedGraphType
LiftedGraphType¶
Public Functions
-
virtual
~LiftedMulticutAndresGreedyAdditive()¶
-
LiftedMulticutAndresGreedyAdditive(const ObjectiveType &objective, const SettingsType &settings = SettingsType ())¶
-
void
optimize(NodeLabelsType &nodeLabels, VisitorBaseType *visitor)¶
-
const LiftedMulticutAndresGreedyAdditive<OBJECTIVE>::ObjectiveType &
objective() const¶
-
virtual const NodeLabelsType &
currentBestNodeLabels()¶
Private Members
-
const ObjectiveType &
objective_¶
-
SettingsType
settings_¶
-
const LiftedGraphType &
liftedGraph_¶
-
NodeLabelsType *
currentBest_¶
-
typedef OBJECTIVE
- template <class OBJECTIVE>
-
class
LiftedMulticutAndresKernighanLin¶ Inherits from nifty::graph::opt::lifted_multicut::LiftedMulticutBase< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef LiftedMulticutBase<ObjectiveType>
BaseType¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef ObjectiveType::LiftedGraphType
LiftedGraphType¶
Public Functions
-
virtual
~LiftedMulticutAndresKernighanLin()¶
-
LiftedMulticutAndresKernighanLin(const ObjectiveType &objective, const SettingsType &settings = SettingsType ())¶
-
void
optimize(NodeLabelsType &nodeLabels, VisitorBaseType *visitor)¶
-
const LiftedMulticutAndresKernighanLin<OBJECTIVE>::ObjectiveType &
objective() const¶
-
virtual const NodeLabelsType &
currentBestNodeLabels()¶
Private Members
-
const ObjectiveType &
objective_¶
-
SettingsType
settings_¶
-
const LiftedGraphType &
liftedGraph_¶
-
NodeLabelsType *
currentBest_¶
-
typedef OBJECTIVE
- template <class OBJECTIVE>
-
class
LiftedMulticutBase¶ Inherits from nifty::graph::opt::common::SolverBase< OBJECTIVE, LiftedMulticutBase< OBJECTIVE > >
Subclassed by nifty::graph::opt::lifted_multicut::ChainedSolvers< OBJECTIVE >, nifty::graph::opt::lifted_multicut::FusionMoveBased< OBJECTIVE >, nifty::graph::opt::lifted_multicut::LiftedMulticutAndresGreedyAdditive< OBJECTIVE >, nifty::graph::opt::lifted_multicut::LiftedMulticutAndresKernighanLin< OBJECTIVE >, nifty::graph::opt::lifted_multicut::LiftedMulticutGreedyAdditive< OBJECTIVE >, nifty::graph::opt::lifted_multicut::LiftedMulticutIlp< OBJECTIVE, ILP_SOLVER >, nifty::graph::opt::lifted_multicut::LiftedMulticutKernighanLin< OBJECTIVE >, nifty::graph::opt::lifted_multicut::LiftedMulticutMp< OBJECTIVE >, nifty::graph::opt::lifted_multicut::PyLiftedMulticutBase< OBJECTIVE >
- template <class OBJECTIVE>
-
class
LiftedMulticutGreedyAdditive¶ Inherits from nifty::graph::opt::lifted_multicut::LiftedMulticutBase< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef ObjectiveType::LiftedGraph
LiftedGraph¶
-
typedef detail_lifted_multicut_greedy_additive::LiftedMulticutGreedyAdditiveCallback<ObjectiveType>
Callback¶
-
typedef LiftedMulticutBase<OBJECTIVE>
BaseType¶
Public Functions
-
virtual
~LiftedMulticutGreedyAdditive()¶
-
LiftedMulticutGreedyAdditive(const ObjectiveType &objective, const SettingsType &settings = SettingsType ())¶
-
void
optimize(NodeLabelsType &nodeLabels, VisitorBaseType *visitor)¶
-
const LiftedMulticutGreedyAdditive<OBJECTIVE>::ObjectiveType &
objective() const¶
-
void
reset()¶
-
void
changeSettings(const SettingsType &settings)¶
-
virtual void
weightsChanged()¶
-
virtual const NodeLabelsType &
currentBestNodeLabels()¶
Private Members
-
const ObjectiveType &
objective_¶
-
NodeLabelsType *
currentBest_¶
-
EdgeContractionGraph<LiftedGraph, Callback>
edgeContractionGraph_¶
-
typedef OBJECTIVE
- template <class OBJECTIVE, class ILP_SOLVER>
-
class
LiftedMulticutIlp¶ Inherits from nifty::graph::opt::lifted_multicut::LiftedMulticutBase< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef LiftedMulticutBase<OBJECTIVE>
BaseType¶
-
typedef ILP_SOLVER
IlpSovler¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef ObjectiveType::LiftedGraph
LiftedGraph¶
Public Functions
-
virtual
~LiftedMulticutIlp()¶
-
LiftedMulticutIlp(const ObjectiveType &objective, const SettingsType &settings = SettingsType ())¶
-
void
optimize(NodeLabelsType &nodeLabels, VisitorBaseType *visitor)¶
-
const LiftedMulticutIlp<OBJECTIVE, ILP_SOLVER>::ObjectiveType &
objective() const¶
-
virtual const NodeLabelsType &
currentBestNodeLabels()¶
-
virtual void
weightsChanged()¶
Private Types
-
typedef ComponentsUfd<GraphType>
Components¶
-
typedef detail_graph::EdgeIndicesToContiguousEdgeIndices<LiftedGraph>
DenseIds¶
Private Functions
-
void
initializeIlp()¶
-
void
repairSolution(NodeLabelsType &nodeLabels)¶
-
size_t
addViolatedInequalities(const bool searchForCutConstraitns, VisitorProxyType &visitor)¶
-
void
addThreeCyclesConstraintsExplicitly()¶
Private Members
-
const ObjectiveType &
objective_¶
-
const LiftedGraph &
liftedGraph_¶
-
Components
components_¶
-
SettingsType
settings_¶
-
NodeLabelsType *
currentBest_¶
-
size_t
addedConstraints_¶
-
size_t
numberOfOptRuns_¶
-
typedef OBJECTIVE
- template <class OBJECTIVE>
-
class
LiftedMulticutKernighanLin¶ Inherits from nifty::graph::opt::lifted_multicut::LiftedMulticutBase< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef LiftedMulticutBase<ObjectiveType>
BaseType¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef ObjectiveType::LiftedGraphType
LiftedGraphType¶
Public Functions
-
virtual
~LiftedMulticutKernighanLin()¶
-
LiftedMulticutKernighanLin(const ObjectiveType &objective, const SettingsType &settings = SettingsType ())¶
-
void
optimize(NodeLabelsType &nodeLabels, VisitorBaseType *visitor)¶
-
const LiftedMulticutKernighanLin<OBJECTIVE>::ObjectiveType &
objective() const¶
-
const LiftedMulticutKernighanLin<OBJECTIVE>::NodeLabelsType &
currentBestNodeLabels()¶
-
double
currentBestEnergy()¶
Private Types
-
typedef detail_kernighang_lin::TwoCut<ObjectiveType>
TwoCutType¶
-
typedef ComponentsUfd<GraphType>
ComponentsType¶
-
typedef subgraph_masks::SubgraphWithCutFromNodeLabels<GraphType, NodeLabelsType>
SubgraphWithCut¶
Private Functions
-
void
initializePartiton()¶
-
void
buildRegionAdjacencyGraph()¶
-
void
optimizePairs(double &energyDecrease)¶
-
void
introduceNewPartitions(double &energyDecrease)¶
-
void
connectedComponentLabeling()¶
-
bool
hasChanges()¶
-
void
formNewPartition()¶
-
void
checkIfPartitonChanged()¶
Private Members
-
const ObjectiveType &
objective_¶
-
SettingsType
settings_¶
-
const LiftedGraphType &
liftedGraph_¶
-
NodeLabelsType *
currentBest_¶
-
double
currentBestEnergy_¶
-
TwoCutType
twoCut_¶
-
ComponentsType
components_¶
-
TwoCutBuffersType
twoCutBuffers_¶
-
NodeLabelsType
lastGoodVertexLabels_¶
-
GraphType:: template NodeMap<uint8_t> nifty::graph::opt::lifted_multicut::LiftedMulticutKernighanLin::visited_
-
uint64_t
numberOfComponents_¶
-
typedef OBJECTIVE
- template <class OBJECTIVE>
-
class
LiftedMulticutMp¶ Inherits from nifty::graph::opt::lifted_multicut::LiftedMulticutBase< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef LiftedMulticutBase<ObjectiveType>
BaseType¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef ObjectiveType::LiftedGraphType
LiftedGraphType¶
-
typedef LP_MP::FMC_LIFTED_MULTICUT<LiftedRounder>
FMC¶
-
typedef LP_MP::Solver<FMC, LP_MP::LP, LP_MP::StandardTighteningVisitor, LiftedRounder>
SolverBase¶
-
typedef LP_MP::ProblemConstructorRoundingSolver<SolverBase>
SolverType¶
Public Functions
-
LiftedMulticutMp(const ObjectiveType &objective, const SettingsType &settings = SettingsType ())¶
-
void
optimize(NodeLabels &nodeLabels, VisitorBaseType *visitor)¶
-
virtual
~LiftedMulticutMp()¶
-
virtual const ObjectiveType &
objective() const¶
-
virtual const NodeLabels &
currentBestNodeLabels()¶
Private Members
-
const ObjectiveType &
objective_¶
-
SettingsType
settings_¶
-
const LiftedGraphType &
liftedGraph_¶
-
NodeLabels *
currentBest_¶
-
SolverType *
mpSolver_¶
-
typedef OBJECTIVE
- template <class GRAPH, class WEIGHT_TYPE>
-
class
LiftedMulticutObjective¶ -
Public Types
-
typedef GRAPH
GraphType¶
-
typedef UndirectedGraph
LiftedGraphType¶
-
typedef
GraphType:: template NodeMap<uint64_t> nifty::graph::opt::lifted_multicut::LiftedMulticutObjective::NodeLabelsType
-
typedef LiftedGraphType
LiftedGraph¶
-
typedef WEIGHT_TYPE
WeightType¶
-
typedef graph_maps::EdgeMap<LiftedGraph, WeightType>
WeightsMapType¶
-
typedef WeightsMapType
WeightsMap¶
Public Functions
-
std::pair<bool, uint64_t>
setCost(const uint64_t u, const uint64_t v, const WeightType &w = 0.0, const bool overwrite = false)¶
-
WeightsMap &
weights()¶
-
const WeightsMap &
weights() const¶
-
const LiftedGraph &
liftedGraph() const¶
- template <class DIST_VEC_TYPE>
-
void
insertLiftedEdgesBfs(const std::size_t maxDistance, DIST_VEC_TYPE &distVec)¶
-
int64_t
graphEdgeInLiftedGraph(const uint64_t graphEdge) const¶
-
int64_t
liftedGraphEdgeInGraph(const uint64_t liftedGraphEdge) const¶
- template <class F>
-
void
forEachGraphEdge(F &&f) const¶
- template <class F>
-
void
parallelForEachGraphEdge(parallel::ThreadPool &threadpool, F &&f) const¶
- template <class F>
-
void
forEachLiftedeEdge(F &&f) const¶
- template <class F>
-
void
parallelForEachLiftedeEdge(parallel::ThreadPool &threadpool, F &&f) const¶
Private Types
-
typedef std::is_same<typename GRAPH::NodeIdTag, ContiguousTag>
GraphHasContiguousNodeIds¶
-
typedef GRAPH
- template <class CHILD_OBJECTIVE, class GRAPH, class LIFTED_GRAPH, class WEIGHT_TYPE>
-
class
LiftedMulticutObjectiveBase¶ Public Types
-
typedef CHILD_OBJECTIVE
ChildObjective¶
-
typedef LiftedMulticutObjectiveBase<ChildObjective, GRAPH, LIFTED_GRAPH, WEIGHT_TYPE>
Self¶
-
typedef CHILD_OBJECTIVE
- template <class OBJECTIVE>
-
struct
LiftedMulticutObjectiveName¶
- template <class GRAPH, class T>
-
template<>
structLiftedMulticutObjectiveName<LearnableLiftedMulticutObjective<GRAPH, T>>¶
- template <class GRAPH>
-
template<>
structLiftedMulticutObjectiveName<PyDefaultMulticutObjective<GRAPH>>¶
-
struct
LiftedRounder¶ Public Types
-
template<>
typedef UndirectedGraphGraphType¶
-
template<>
typedef LiftedMulticutObjective<GraphType, typename ObjectiveType::WeightType>PrimalRounderObjectiveType¶
-
template<>
typedef LiftedMulticutBase<PrimalRounderObjectiveType>PrimalRounderBaseType¶
-
template<>
typedef PrimalRounderObjectiveType::LiftedGraphTypePrimalRounderLiftedGraphType¶
-
template<>
typedef PrimalRounderBaseType::NodeLabelsTypePrimalRounderNodeLabels¶
-
template<>
typedef nifty::graph::opt::common::SolverFactoryBase<PrimalRounderBaseType>PrimalRounderLmcFactoryBase¶
Public Functions
-
template<>
std::vector<char>operator()(GraphType &&originalGraph, PrimalRounderLiftedGraphType &&liftedGraph, std::vector<double> &&edgeValues)¶
Private Members
-
template<>
std::shared_ptr<PrimalRounderLmcFactoryBase>factory_¶
-
template<>
boolgreedyWarmstart_¶
-
template<>
- template <class SOLVER>
-
class
LoggingVisitor¶ Inherits from nifty::graph::opt::common::VisitorBase< SOLVER >
Public Functions
-
LoggingVisitor(const int visitNth = 1, const bool verbose = true, const double timeLimitSolver = std::numeric_limits< double >::infinity(), const double timeLimitTotal = std::numeric_limits< double >::infinity(), const nifty::logging::LogLevel logLevel = nifty::logging::LogLevel::WARN)¶
-
virtual void
begin(SolverType *)¶
-
virtual bool
visit(SolverType *solver)¶
-
virtual void
end(SolverType *solver)¶
-
virtual void
clearLogNames()¶
-
void
stopOptimize()¶
Private Functions
-
void
checkRuntime()¶
-
- template <class GRAPH, bool ENABLE_UCM>
-
class
MalaClusterPolicy¶ Public Types
-
typedef GRAPH
GraphType¶
-
typedef FloatEdgeMap
EdgeIndicatorsType¶
-
typedef FloatEdgeMap
EdgeSizesType¶
-
typedef FloatNodeMap
NodeSizesType¶
-
typedef UInt64EdgeMap
MergeTimesType¶
-
typedef EdgeContractionGraph<GraphType, SelfType>
EdgeContractionGraphType¶
Public Functions
- template <class EDGE_INDICATORS, class EDGE_SIZES, class NODE_SIZES>
-
MalaClusterPolicy(const GraphType &graph, const EDGE_INDICATORS &edgeIndicators, const EDGE_SIZES &edgeSizes, const NODE_SIZES &nodeSizes, const SettingsType &settings = SettingsType ())¶
-
bool
isDone() const¶
-
MalaClusterPolicy<GRAPH, ENABLE_UCM>::EdgeContractionGraphType &
edgeContractionGraph()¶
-
void
contractEdge(const uint64_t edgeToContract)¶
-
void
mergeNodes(const uint64_t aliveNode, const uint64_t deadNode)¶
-
void
mergeEdges(const uint64_t aliveEdge, const uint64_t deadEdge)¶
-
void
contractEdgeDone(const uint64_t edgeToContract)¶
-
const EdgeIndicatorsType &
edgeIndicators() const¶
-
const EdgeSizesType &
edgeSizes() const¶
-
const MergeTimesType &
mergeTimes() const¶
-
const NodeSizesType &
nodeSizes() const¶
Private Types
-
typedef MalaClusterPolicy<GRAPH, ENABLE_UCM>
SelfType¶
-
typedef
GRAPH:: template EdgeMap<uint64_t> nifty::graph::agglo::MalaClusterPolicy::UInt64EdgeMap
-
typedef
GRAPH:: template EdgeMap<double> nifty::graph::agglo::MalaClusterPolicy::FloatEdgeMap
-
typedef
GRAPH:: template NodeMap<double> nifty::graph::agglo::MalaClusterPolicy::FloatNodeMap
-
typedef
GRAPH:: template EdgeMap<HistogramType> nifty::graph::agglo::MalaClusterPolicy::EdgeHistogramMap
-
typedef nifty::tools::ChangeablePriorityQueue<double, std::less<double>>
QueueType¶
Private Functions
-
float
histogramToMedian(const uint64_t edge) const¶
Private Members
-
EdgeIndicatorsType
edgeIndicators_¶
-
EdgeSizesType
edgeSizes_¶
-
NodeSizesType
nodeSizes_¶
-
MergeTimesType
mergeTimes_¶
-
SettingsType
settings_¶
-
EdgeContractionGraphType
edgeContractionGraph_¶
-
EdgeHistogramMap
histograms_¶
-
uint64_t
time_¶
Private Static Attributes
-
const size_t
NumberOfBins= 20¶
Friends
-
friend
nifty::graph::agglo::MalaClusterPolicy::EdgeContractionGraph< GraphType, SelfType, ENABLE_UCM >
-
typedef GRAPH
- template <class T, class A>
-
class
Marray¶ Inherits from andres::View< T, false, A >
Public Types
-
typedef
A::template rebind<value_type>::other andres::Marray::allocator_type
Public Functions
-
Marray(const allocator_type &allocator = allocator_type ())¶
-
Marray(const T &value, const CoordinateOrder &coordinateOrder = defaultOrder, const allocator_type &allocator = allocator_type ())¶
- template <class ShapeIterator>
-
Marray(ShapeIterator begin, ShapeIterator end, const T &value = T(), const CoordinateOrder &coordinateOrder = defaultOrder, const allocator_type &allocator = allocator_type ())¶
- template <class ShapeIterator>
-
Marray(const InitializationSkipping &is, ShapeIterator begin, ShapeIterator end, const CoordinateOrder &coordinateOrder = defaultOrder, const allocator_type &allocator = allocator_type ())¶
- template <class E, class Te>
-
Marray(const ViewExpression<E, Te> &expression, const allocator_type &allocator = allocator_type ())¶
- template <class TLocal, bool isConstLocal, class ALocal>
-
Marray(const View<TLocal, isConstLocal, ALocal> &in)¶
-
~Marray()¶
- template <class TLocal, bool isConstLocal, class ALocal>
-
Marray<T, A> &
operator=(const View<TLocal, isConstLocal, ALocal> &in)¶
- template <class E, class Te>
-
Marray<T, A> &
operator=(const ViewExpression<E, Te> &expression)¶
-
void
assign(const allocator_type &allocator = allocator_type ())¶
- template <class ShapeIterator>
-
void
resize(ShapeIterator begin, ShapeIterator end, const T &value = T())¶
- template <class ShapeIterator>
-
void
resize(const InitializationSkipping &is, ShapeIterator begin, ShapeIterator end)¶
Private Functions
-
void
testInvariant() const¶
- template <bool SKIP_INITIALIZATION, class ShapeIterator>
-
void
resizeHelper(ShapeIterator begin, ShapeIterator end, const T &value = T())¶
Private Members
-
allocator_type
dataAllocator_¶
-
typedef
- template <class G, class T>
-
class
MaxEdgeMap¶ Public Types
-
typedef G
GraphType¶
-
typedef
GraphType:: template EdgeMap<T> nifty::graph::agglo::merge_rules::MaxEdgeMap::MaxEdgeMapType
-
typedef
GraphType:: template EdgeMap<nifty::float16_t> nifty::graph::agglo::merge_rules::MaxEdgeMap::SizeEdgeMapType
-
typedef MaxSettings
SettingsType¶
Public Functions
-
auto
name() const¶
- template <class VALUES, class WEIGHTS>
-
MaxEdgeMap(const GraphType &g, const VALUES &values, const WEIGHTS &weights, const SettingsType &settings = SettingsType ())¶
-
void
merge(const uint64_t aliveEdge, const uint64_t deadEdge)¶
-
void
setValueFrom(const uint64_t targetEdge, const uint64_t sourceEdge)¶
-
void
setFrom(const uint64_t targetEdge, const uint64_t sourceEdge)¶
-
void
set(const uint64_t targetEdge, const T &value, const T &weight)¶
-
T
operator[](const uint64_t edge) const¶
Public Static Functions
-
static auto
staticName()¶
Private Members
-
MaxEdgeMapType
values_¶
-
typedef G
- template <class GRAPH, class T>
-
class
MaxMerging¶ Public Functions
-
MaxMerging(const SettingsType &settings = SettingsType ())¶
-
void
set(const uint64_t edge, const T val)¶
-
void
get(const uint64_t edge, const T val) const¶
-
void
merge(const uint64_t aliveEdge, const uint64_t deadEdge)¶
Public Members
-
MaxMerging::SettingsType= { }
Private Types
-
typedef
GRAPH:: template EdgeMap<double> MaxMerging::FloatEdgeMap
Private Members
-
FloatEdgeMap
values_¶
-
- template <class OBJECTIVE>
-
class
MincutBase¶ Inherits from nifty::graph::opt::common::SolverBase< OBJECTIVE, MincutBase< OBJECTIVE > >
Subclassed by nifty::graph::opt::mincut::MincutGreedyAdditive< OBJECTIVE >, nifty::graph::opt::mincut::MincutQpbo< OBJECTIVE >, nifty::graph::opt::mincut::PyMincutBase< OBJECTIVE >
- template <class OBJECTIVE>
-
class
MincutCcFusionMove¶ Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef
GraphType:: template NodeMap<uint64_t> nifty::graph::opt::mincut::MincutCcFusionMove::NodeLabelsType
-
typedef UndirectedGraph
FmGraph¶
-
typedef MincutObjective<FmGraph, double>
FmObjective¶
-
typedef MincutBase<FmObjective>
FmMcBase¶
-
typedef MincutEmptyVisitor<FmObjective>
FmEmptyVisitor¶
Public Functions
-
MincutCcFusionMove(const ObjectiveType &objective, const SettingsType &settings = SettingsType ())¶
Private Functions
- template <class NODE_MAP>
-
void
fuseImpl(NODE_MAP *result)¶
-
typedef OBJECTIVE
- template <class OBJECTIVE>
-
class
MincutCcFusionMoveBased¶ -
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef nifty::graph::opt::common::detail_cc_fusion::CcFusionMoveBasedImpl<OBJECTIVE, MincutBase<OBJECTIVE>, MincutCcFusionMove<OBJECTIVE>>
BaseType¶
Public Functions
-
virtual
~MincutCcFusionMoveBased()¶
-
MincutCcFusionMoveBased(const ObjectiveType &objective, const SettingsType &settings = SettingsType ())¶
-
typedef OBJECTIVE
- template <class OBJECTIVE>
-
class
MincutGreedyAdditive¶ Inherits from nifty::graph::opt::mincut::MincutBase< OBJECTIVE >
Public Types
-
typedef float
QpboValueType¶
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef detail_mincut_greedy_additive::MincutGreedyAdditiveCallback<ObjectiveType>
CallbackType¶
-
typedef nifty::graph::EdgeContractionGraph<GraphType, CallbackType>
ContractionGraphType¶
-
typedef MincutBase<OBJECTIVE>
BaseType¶
-
typedef CallbackType::SettingsType
SettingsType¶
Public Functions
-
virtual
~MincutGreedyAdditive()¶
-
MincutGreedyAdditive(const ObjectiveType &objective, const SettingsType &settings = SettingsType ())¶
-
void
optimize(NodeLabelsType &nodeLabels, VisitorBaseType *visitor)¶
-
const MincutGreedyAdditive<OBJECTIVE>::ObjectiveType &
objective() const¶
-
void
reset()¶
-
void
changeSettings(const SettingsType &settings)¶
-
virtual void
weightsChanged()¶
-
virtual const NodeLabelsType &
currentBestNodeLabels()¶
-
virtual double
currentBestEnergy()¶
Private Members
-
const ObjectiveType &
objective_¶
-
NodeLabelsType *
currentBest_¶
-
double
currentBestEnergy_¶
-
CallbackType
callback_¶
-
ContractionGraphType
edgeContractionGraph_¶
-
QPBO<QpboValueType>
qpbo_¶
-
typedef float
- template <class GRAPH, class WEIGHT_TYPE>
-
class
MincutObjective¶ Inherits from nifty::graph::opt::mincut::MincutObjectiveBase< MincutObjective< GRAPH, WEIGHT_TYPE >, GRAPH, WEIGHT_TYPE >
Public Types
-
typedef GRAPH
GraphType¶
-
typedef WEIGHT_TYPE
WeightType¶
-
typedef graph_maps::EdgeMap<GraphType, WeightType>
WeightsMap¶
-
typedef
GraphType:: template NodeMap<uint64_t> nifty::graph::opt::mincut::MincutObjective::NodeLabelsType
-
typedef GRAPH
- template <class CHILD_OBJECTIVE, class GRAPH, class WEIGHT_TYPE>
-
class
MincutObjectiveBase¶ Public Types
-
typedef CHILD_OBJECTIVE
ChildObjective¶
-
typedef MincutObjectiveBase<ChildObjective, GRAPH, WEIGHT_TYPE>
Self¶
Public Functions
- template <class NODE_LABELS>
-
WEIGHT_TYPE
evalNodeLabels(const NODE_LABELS &nodeLabels) const¶
-
typedef CHILD_OBJECTIVE
- template <class OBJECTIVE>
-
struct
MincutObjectiveName¶
- template <class GRAPH>
-
template<>
structMincutObjectiveName<PyDefaultMincutObjective<GRAPH>>¶
- template <class OBJECTIVE>
-
class
MincutQpbo¶ Inherits from nifty::graph::opt::mincut::MincutBase< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef MincutBase<OBJECTIVE>
BaseType¶
-
typedef ObjectiveType::GraphType
GraphType¶
Public Functions
-
virtual
~MincutQpbo()¶
-
MincutQpbo(const ObjectiveType &objective, const SettingsType &settings = SettingsType ())¶
-
void
optimize(NodeLabelsType &nodeLabels, VisitorBaseType *visitor)¶
-
const MincutQpbo<OBJECTIVE>::ObjectiveType &
objective() const¶
-
virtual const NodeLabelsType &
currentBestNodeLabels()¶
-
virtual double
currentBestEnergy()¶
-
virtual void
weightsChanged()¶
Private Types
-
typedef float
QpboValueType¶
-
typedef detail_graph::NodeIndicesToContiguousNodeIndices<GraphType>
DenseIds¶
Private Functions
-
void
initializeQpbo()¶
-
void
repairSolution(NodeLabelsType &nodeLabels)¶
-
size_t
addCycleInequalities()¶
-
void
addThreeCyclesConstraintsExplicitly()¶
Private Members
-
const ObjectiveType &
objective_¶
-
SettingsType
settings_¶
-
NodeLabelsType *
currentBest_¶
-
double
currentBestEnergy_¶
-
QPBO<QpboValueType>
qpbo_¶
-
typedef OBJECTIVE
- template <class G, class T>
-
class
MinEdgeMap¶ Public Types
-
typedef G
GraphType¶
-
typedef
GraphType:: template EdgeMap<T> nifty::graph::agglo::merge_rules::MinEdgeMap::MinEdgeMapType
-
typedef
GraphType:: template EdgeMap<nifty::float16_t> nifty::graph::agglo::merge_rules::MinEdgeMap::SizeEdgeMapType
-
typedef MinSettings
SettingsType¶
Public Functions
-
auto
name() const¶
- template <class VALUES, class WEIGHTS>
-
MinEdgeMap(const GraphType &g, const VALUES &values, const WEIGHTS &weights, const SettingsType &settings = SettingsType ())¶
-
void
merge(const uint64_t aliveEdge, const uint64_t deadEdge)¶
-
void
setValueFrom(const uint64_t targetEdge, const uint64_t sourceEdge)¶
-
void
setFrom(const uint64_t targetEdge, const uint64_t sourceEdge)¶
-
void
set(const uint64_t targetEdge, const T &value, const T &weight)¶
-
T
operator[](const uint64_t edge) const¶
Public Static Functions
-
static auto
staticName()¶
Private Members
-
MinEdgeMapType
values_¶
-
typedef G
- template <class GRAPH>
-
class
MinimumNodeSizeClusterPolicy¶ Public Types
-
typedef GRAPH
GraphType¶
-
typedef FloatEdgeMap
EdgeIndicatorsType¶
-
typedef FloatEdgeMap
EdgeSizesType¶
-
typedef FloatNodeMap
NodeSizesType¶
-
typedef EdgeContractionGraph<GraphType, SelfType>
EdgeContractionGraphType¶
Public Functions
- template <class EDGE_INDICATORS, class EDGE_SIZES, class NODE_SIZES>
-
MinimumNodeSizeClusterPolicy(const GraphType &graph, const EDGE_INDICATORS &edgeIndicators, const EDGE_SIZES &edgeSizes, const NODE_SIZES &nodeSizes, const SettingsType &settings = SettingsType ())¶
-
bool
isDone() const¶
-
MinimumNodeSizeClusterPolicy<GRAPH>::EdgeContractionGraphType &
edgeContractionGraph()¶
-
void
contractEdge(const uint64_t edgeToContract)¶
-
void
mergeNodes(const uint64_t aliveNode, const uint64_t deadNode)¶
-
void
mergeEdges(const uint64_t aliveEdge, const uint64_t deadEdge)¶
-
void
contractEdgeDone(const uint64_t edgeToContract)¶
-
const EdgeIndicatorsType &
edgeIndicators() const¶
-
const EdgeSizesType &
edgeSizes() const¶
-
const NodeSizesType &
nodeSizes() const¶
Private Types
-
typedef MinimumNodeSizeClusterPolicy<GRAPH>
SelfType¶
-
typedef
GRAPH:: template EdgeMap<double> nifty::graph::agglo::MinimumNodeSizeClusterPolicy::FloatEdgeMap
-
typedef
GRAPH:: template NodeMap<double> nifty::graph::agglo::MinimumNodeSizeClusterPolicy::FloatNodeMap
-
typedef nifty::tools::ChangeablePriorityQueue<double, std::less<double>>
QueueType¶
Private Members
-
EdgeIndicatorsType
edgeIndicators_¶
-
EdgeSizesType
edgeSizes_¶
-
NodeSizesType
nodeSizes_¶
-
SettingsType
settings_¶
-
EdgeContractionGraphType
edgeContractionGraph_¶
Friends
-
friend
nifty::graph::agglo::MinimumNodeSizeClusterPolicy::EdgeContractionGraph< GraphType, SelfType, false >
-
typedef GRAPH
- template <class OBJECTIVE>
-
class
MinstcutBase¶ Inherits from nifty::graph::opt::common::SolverBase< OBJECTIVE, MinstcutBase< OBJECTIVE > >
Subclassed by nifty::graph::opt::minstcut::PyMinstcutBase< OBJECTIVE >
- template <class GRAPH, class WEIGHT_TYPE>
-
class
MinstcutObjective¶ Inherits from nifty::graph::opt::minstcut::MinstcutObjectiveBase< MinstcutObjective< GRAPH, WEIGHT_TYPE >, GRAPH, WEIGHT_TYPE >
Public Types
-
typedef GRAPH
GraphType¶
-
typedef WEIGHT_TYPE
WeightType¶
-
typedef graph_maps::EdgeMap<GraphType, WeightType>
WeightsMap¶
-
typedef graph_maps::NodeMap<GraphType, std::pair<float, float>>
UnaryMap¶
-
typedef
GraphType:: template NodeMap<uint64_t> nifty::graph::opt::minstcut::MinstcutObjective::NodeLabelsType
-
typedef GRAPH
- template <class CHILD_OBJECTIVE, class GRAPH, class WEIGHT_TYPE>
-
class
MinstcutObjectiveBase¶ Public Types
-
typedef CHILD_OBJECTIVE
ChildObjective¶
-
typedef MinstcutObjectiveBase<ChildObjective, GRAPH, WEIGHT_TYPE>
Self¶
Public Functions
- template <class NODE_LABELS>
-
WEIGHT_TYPE
evalNodeLabels(const NODE_LABELS &nodeLabels) const¶
-
typedef CHILD_OBJECTIVE
- template <class OBJECTIVE>
-
struct
MinstcutObjectiveName¶
- template <class GRAPH>
-
template<>
structMinstcutObjectiveName<PyDefaultMinstcutObjective<GRAPH>>¶
- template <class ARRAY>
-
struct
MultibandArrayViewNodeMap¶ Public Types
-
typedef ARRAY::value_type
value_type¶
-
typedef ARRAY::reference
reference¶
-
typedef ARRAY::const_reference
const_reference¶
Public Functions
-
MultibandArrayViewNodeMap(const ARRAY &array)¶
-
ConstProxy
operator[](const uint64_t nodeIndex) const¶
-
const size_t
numberOfChannels() const¶
-
typedef ARRAY::value_type
- template <class G, class T>
-
struct
MultibandNodeMap¶ Public Functions
-
MultibandNodeMap(const G &g, const size_t nChannels)¶
-
MultibandNodeMap(const G &g, const size_t nChannels, const T &val)¶
-
ConstProxy
operator[](const uint64_t nodeIndex) const¶
-
const size_t
numberOfChannels() const¶
-
- template <class OBJECTIVE>
-
class
MulticutAndres¶ Inherits from nifty::graph::opt::multicut::MulticutBase< OBJECTIVE >
Subclassed by nifty::graph::opt::multicut::MulticutAndresGreedyAdditive< OBJECTIVE >, nifty::graph::opt::multicut::MulticutAndresKernighanLin< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef MulticutBase<OBJECTIVE>
BaseType¶
Public Functions
-
MulticutAndres(const ObjectiveType &objective)¶
-
virtual void
optimize(NodeLabelsType &nodelabels, VisitorBaseType *visitor)¶
-
virtual const ObjectiveType &
objective() const¶
-
virtual const NodeLabelsType &
currentBestNodeLabels()¶
Protected Functions
Private Functions
-
void
initGraph()¶
-
typedef OBJECTIVE
- template <class OBJECTIVE>
-
class
MulticutAndresGreedyAdditive¶ Inherits from nifty::graph::opt::multicut::MulticutAndres< OBJECTIVE >
Public Functions
-
MulticutAndresGreedyAdditive(const ObjectiveType &objective, const SettingsType &settings = SettingsType ())¶
-
void
optimize(NodeLabelsType &nodeLabels, VisitorBaseType *visitor)¶
-
virtual const ObjectiveType &
objective() const¶
-
virtual const NodeLabelsType &
currentBestNodeLabels()¶
-
- template <class OBJECTIVE>
-
class
MulticutAndresKernighanLin¶ Inherits from nifty::graph::opt::multicut::MulticutAndres< OBJECTIVE >
Public Functions
-
MulticutAndresKernighanLin(const ObjectiveType &objective, const SettingsType &settings = SettingsType ())¶
-
void
optimize(NodeLabelsType &nodeLabels, VisitorBaseType *visitor)¶
-
virtual const ObjectiveType &
objective() const¶
-
virtual const NodeLabelsType &
currentBestNodeLabels()¶
-
- template <class OBJECTIVE>
-
class
MulticutBase¶ Inherits from nifty::graph::opt::common::SolverBase< OBJECTIVE, MulticutBase< OBJECTIVE > >, nifty::graph::opt::common::SolverBase< OBJECTIVE, MulticutBase< OBJECTIVE > >
Subclassed by nifty::graph::opt::multicut::BlockMulticut< OBJECTIVE >, nifty::graph::opt::multicut::Cgc< OBJECTIVE >, nifty::graph::opt::multicut::ChainedSolvers< OBJECTIVE >, nifty::graph::opt::multicut::KernighanLin< OBJECTIVE >, nifty::graph::opt::multicut::MulticutAndres< OBJECTIVE >, nifty::graph::opt::multicut::MulticutDecomposer< OBJECTIVE >, nifty::graph::opt::multicut::MulticutGreedyAdditive< OBJECTIVE >, nifty::graph::opt::multicut::MulticutIlp< OBJECTIVE, ILP_SOLVER >, nifty::graph::opt::multicut::MulticutMp< OBJECTIVE >, nifty::graph::opt::multicut::PyMulticutBase< OBJECTIVE >, nifty::graph::opt::multicut::PyMulticutBase< OBJECTIVE >
- template <class OBJECTIVE>
-
class
MulticutDecomposer¶ Inherits from nifty::graph::opt::multicut::MulticutBase< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef ObjectiveType::WeightType
WeightType¶
-
typedef MulticutBase<OBJECTIVE>
BaseType¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef ObjectiveType::WeightsMap
WeightsMap¶
-
typedef UndirectedGraph
SubmodelGraph¶
-
typedef MulticutObjective<SubmodelGraph, WeightType>
SubmodelObjective¶
-
typedef MulticutBase<SubmodelObjective>
SubmodelMulticutBaseType¶
-
typedef nifty::graph::opt::common::SolverFactoryBase<SubmodelMulticutBaseType>
SubmodelFactoryBase¶
-
typedef SubmodelMulticutBaseType::NodeLabelsType
SubmodelNodeLabels¶
Public Functions
-
virtual
~MulticutDecomposer()¶
-
MulticutDecomposer(const ObjectiveType &objective, const SettingsType &settings = SettingsType ())¶
-
void
optimize(NodeLabelsType &nodeLabels, VisitorBaseType *visitor)¶
-
const MulticutDecomposer<OBJECTIVE>::ObjectiveType &
objective() const¶
-
virtual const NodeLabelsType &
currentBestNodeLabels()¶
-
virtual void
weightsChanged()¶
Private Types
-
typedef ComponentsUfd<GraphType>
Components¶
Private Members
-
const ObjectiveType &
objective_¶
-
const WeightsMap &
weights_¶
-
Components
components_¶
-
NodeLabelsType *
currentBest_¶
-
SettingsType
settings_¶
-
typedef OBJECTIVE
- template <class OBJECTIVE>
-
class
MulticutGreedyAdditive¶ Inherits from nifty::graph::opt::multicut::MulticutBase< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef detail_multicut_greedy_additive::MulticutGreedyAdditiveCallback<ObjectiveType>
Callback¶
-
typedef MulticutBase<OBJECTIVE>
BaseType¶
Public Functions
-
virtual
~MulticutGreedyAdditive()¶
-
MulticutGreedyAdditive(const ObjectiveType &objective, const SettingsType &settings = SettingsType ())¶
-
void
optimize(NodeLabelsType &nodeLabels, VisitorBaseType *visitor)¶
-
const MulticutGreedyAdditive<OBJECTIVE>::ObjectiveType &
objective() const¶
-
void
reset()¶
-
void
changeSettings(const SettingsType &settings)¶
-
virtual void
weightsChanged()¶
-
virtual const NodeLabelsType &
currentBestNodeLabels()¶
Private Members
-
const ObjectiveType &
objective_¶
-
NodeLabelsType *
currentBest_¶
-
EdgeContractionGraph<GraphType, Callback>
edgeContractionGraph_¶
-
typedef OBJECTIVE
- template <class OBJECTIVE, class ILP_SOLVER>
-
class
MulticutIlp¶ Inherits from nifty::graph::opt::multicut::MulticutBase< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef MulticutBase<OBJECTIVE>
BaseType¶
-
typedef ILP_SOLVER
IlpSovler¶
Public Functions
-
virtual
~MulticutIlp()¶
-
MulticutIlp(const ObjectiveType &objective, const SettingsType &settings = SettingsType ())¶
-
void
optimize(NodeLabelsType &nodeLabels, VisitorBaseType *visitor)¶
-
const MulticutIlp<OBJECTIVE, ILP_SOLVER>::ObjectiveType &
objective() const¶
-
virtual const NodeLabelsType &
currentBestNodeLabels()¶
-
virtual void
weightsChanged()¶
Private Types
-
typedef ComponentsUfd<GraphType>
Components¶
-
typedef detail_graph::EdgeIndicesToContiguousEdgeIndices<GraphType>
DenseIds¶
Private Functions
-
void
initializeIlp()¶
-
void
repairSolution(NodeLabelsType &nodeLabels)¶
-
size_t
addCycleInequalities()¶
-
void
addThreeCyclesConstraintsExplicitly()¶
Private Members
-
const ObjectiveType &
objective_¶
-
Components
components_¶
-
SettingsType
settings_¶
-
NodeLabelsType *
currentBest_¶
-
size_t
addedConstraints_¶
-
size_t
numberOfOptRuns_¶
-
typedef OBJECTIVE
- template <class OBJECTIVE>
-
class
MulticutMp¶ Inherits from nifty::graph::opt::multicut::MulticutBase< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef MulticutBase<OBJECTIVE>
BaseType¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef NiftyRounder
Rounder¶
-
typedef LP_MP::ProblemConstructorRoundingSolver<SolverBase>
SolverType¶
Public Functions
-
virtual
~MulticutMp()¶
-
MulticutMp(const ObjectiveType &objective, const SettingsType &settings = SettingsType ())¶
-
void
optimize(NodeLabelsType &nodeLabels, VisitorBaseType *visitor)¶
-
virtual const ObjectiveType &
objective() const¶
-
virtual const NodeLabelsType &
currentBestNodeLabels()¶
Private Members
-
const ObjectiveType &
objective_¶
-
SettingsType
settings_¶
-
NodeLabelsType *
currentBest_¶
-
size_t
numberOfOptRuns_¶
-
SolverType *
mpSolver_¶
-
typedef OBJECTIVE
- template <class GRAPH, class WEIGHT_TYPE>
-
class
MulticutObjective¶ Inherits from nifty::graph::opt::multicut::MulticutObjectiveBase< MulticutObjective< GRAPH, WEIGHT_TYPE >, GRAPH, WEIGHT_TYPE >
Public Types
-
typedef GRAPH
GraphType¶
-
typedef
GraphType:: template NodeMap<uint64_t> nifty::graph::opt::multicut::MulticutObjective::NodeLabelsType
-
typedef WEIGHT_TYPE
WeightType¶
-
typedef graph_maps::EdgeMap<GraphType, WeightType>
WeightsMap¶
-
typedef GRAPH
- template <class CHILD_OBJECTIVE, class GRAPH, class WEIGHT_TYPE>
-
class
MulticutObjectiveBase¶ Public Types
-
typedef CHILD_OBJECTIVE
ChildObjective¶
-
typedef MulticutObjectiveBase<ChildObjective, GRAPH, WEIGHT_TYPE>
Self¶
Public Functions
- template <class NODE_LABELS>
-
WEIGHT_TYPE
evalNodeLabels(const NODE_LABELS &nodeLabels) const¶
-
typedef CHILD_OBJECTIVE
- template <class OBJECTIVE>
-
struct
MulticutObjectiveName¶
- template <class GRAPH>
-
template<>
structMulticutObjectiveName<PyDefaultMulticutObjective<GRAPH>>¶
- template <class GRAPH, bool ENABLE_UCM>
-
class
NewPolicy¶ Public Types
-
typedef GRAPH
GraphType¶
-
typedef FloatEdgeMap
EdgePrioType¶
-
typedef FloatEdgeMap
EdgeSizesType¶
-
typedef FloatNodeMap
NodeSizesType¶
-
typedef EdgeContractionGraph<GraphType, SelfType>
EdgeContractionGraphType¶
Public Functions
- template <class MERGE_PRIOS, class NOT_MERGE_PRIOS, class IS_LOCAL_EDGE, class EDGE_SIZES>
-
NewPolicy(const GraphType &graph, const MERGE_PRIOS &mergePrios, const NOT_MERGE_PRIOS ¬MergePrios, const IS_LOCAL_EDGE &isLocalEdge, const EDGE_SIZES &edgeSizes, const SettingsType &settings = SettingsType ())¶
-
bool
isDone()¶
-
void
contractEdge(const uint64_t edgeToContract)¶
-
void
mergeNodes(const uint64_t aliveNode, const uint64_t deadNode)¶
-
void
mergeEdges(const uint64_t aliveEdge, const uint64_t deadEdge)¶
-
void
contractEdgeDone(const uint64_t edgeToContract)¶
-
bool
isMergeAllowed(const uint64_t edge)¶
-
const EdgePrioType &
mergePrios() const¶
-
const EdgePrioType &
notMergePrios() const¶
-
const EdgeSizesType &
edgeSizes() const¶
Private Types
-
typedef
GRAPH:: template EdgeMap<uint8_t> nifty::graph::agglo::NewPolicy::UInt8EdgeMap
-
typedef
GRAPH:: template EdgeMap<double> nifty::graph::agglo::NewPolicy::FloatEdgeMap
-
typedef
GRAPH:: template NodeMap<double> nifty::graph::agglo::NewPolicy::FloatNodeMap
-
typedef boost::container::flat_set<uint64_t>
SetType¶
-
typedef nifty::tools::ChangeablePriorityQueue<double, std::greater<double>>
QueueType¶
Private Functions
-
double
pqMergePrio(const uint64_t edge) const¶
-
const double
getMergePrio(const uint64_t edge) const¶
-
const double
notMergePrio(const uint64_t edge) const¶
Private Members
-
EdgePrioType
mergePrios_¶
-
EdgePrioType
notMergePrios_¶
-
UInt8EdgeMap
isLocalEdge_¶
-
UInt8EdgeMap
isPureLocal_¶
-
UInt8EdgeMap
isPureLifted_¶
-
EdgeSizesType
edgeSizes_¶
-
SettingsType
settings_¶
-
EdgeContractionGraphType
edgeContractionGraph_¶
-
uint64_t
edgeToContractNext_¶
-
double
edgeToContractNextMergePrio_¶
Friends
-
friend
nifty::graph::agglo::NewPolicy::EdgeContractionGraph< GraphType, SelfType, ENABLE_UCM >
-
typedef GRAPH
-
struct
NiftyRounder¶ -
Public Functions
-
class
NoBeginEndVisitor¶ Inherits from VisitorBaseType
Public Functions
-
template<>
NoBeginEndVisitor(VisitorBaseType *visitor)¶
-
template<>
virtual voidbegin(BaseType *solver)¶
-
template<>
virtual boolvisit(BaseType *solver)¶
-
template<>
virtual voidend(BaseType *solver)¶
-
template<>
virtual voidclearLogNames()¶
-
template<>
virtual voidsetLogValue(const size_t logIndex, double logValue)¶
Private Members
-
template<>
VisitorBaseType *visitor_¶
-
template<>
-
class
NoBeginEndVisitor¶ Inherits from VisitorBaseType
Public Functions
-
template<>
NoBeginEndVisitor(VisitorBaseType *visitor)¶
-
template<>
virtual voidbegin(BaseType *solver)¶
-
template<>
virtual boolvisit(BaseType *solver)¶
-
template<>
virtual voidend(BaseType *solver)¶
-
template<>
virtual voidclearLogNames()¶
-
template<>
virtual voidsetLogValue(const size_t logIndex, double logValue)¶
Private Members
-
template<>
VisitorBaseType *visitor_¶
-
template<>
- template <class GRAPH, bool ENABLE_UCM>
-
class
NodeAndEdgeWeightedClusterPolicy¶ Public Types
-
typedef GRAPH
GraphType¶
-
typedef
GRAPH:: template EdgeMap<double> nifty::graph::agglo::NodeAndEdgeWeightedClusterPolicy::FloatEdgeMap
-
typedef
GRAPH:: template NodeMap<double> nifty::graph::agglo::NodeAndEdgeWeightedClusterPolicy::FloatNodeMap
-
typedef nifty::graph::graph_maps::MultibandNodeMap<GraphType, double>
NodeFeatureMap¶
-
typedef FloatEdgeMap
EdgeIndicatorsType¶
-
typedef FloatEdgeMap
EdgeSizesType¶
-
typedef FloatNodeMap
NodeSizesType¶
-
typedef EdgeContractionGraph<GraphType, SelfType>
EdgeContractionGraphType¶
Public Functions
- template <class EDGE_INDICATORS, class EDGE_SIZES, class NODE_FEATURES, class NODE_SIZES>
-
NodeAndEdgeWeightedClusterPolicy(const GraphType &graph, const EDGE_INDICATORS &edgeIndicators, const EDGE_SIZES &edgeSizes, const NODE_FEATURES &nodeFeatures, const NODE_SIZES &nodeSizes, const SettingsType &settings = SettingsType ())¶
-
bool
isDone() const¶
-
NodeAndEdgeWeightedClusterPolicy<GRAPH, ENABLE_UCM>::EdgeContractionGraphType &
edgeContractionGraph()¶
-
void
contractEdge(const uint64_t edgeToContract)¶
-
void
mergeNodes(const uint64_t aliveNode, const uint64_t deadNode)¶
-
void
mergeEdges(const uint64_t aliveEdge, const uint64_t deadEdge)¶
-
void
contractEdgeDone(const uint64_t edgeToContract)¶
-
const EdgeIndicatorsType &
edgeIndicators() const¶
-
const EdgeSizesType &
edgeSizes() const¶
-
const NodeSizesType &
nodeSizes() const¶
Private Types
-
typedef NodeAndEdgeWeightedClusterPolicy<GRAPH, ENABLE_UCM>
SelfType¶
-
typedef nifty::tools::ChangeablePriorityQueue<double, std::less<double>>
QueueType¶
Private Functions
-
void
initializeWeights()¶
-
double
computeWeight(const uint64_t edge) const¶
-
double
weightFromNodes(const uint64_t u, const uint64_t v) const¶
Private Members
-
EdgeIndicatorsType
edgeIndicators_¶
-
EdgeSizesType
edgeSizes_¶
-
NodeFeatureMap
nodeFeatures_¶
-
NodeSizesType
nodeSizes_¶
-
SettingsType
settings_¶
-
const uint64_t
nChannels_¶
-
EdgeContractionGraphType
edgeContractionGraph_¶
Friends
-
friend
nifty::graph::agglo::NodeAndEdgeWeightedClusterPolicy::EdgeContractionGraph< GraphType, SelfType, ENABLE_UCM >
-
typedef GRAPH
- template <class GRAPH>
-
class
NodeIndicesToContiguousNodeIndices¶ Inherits from nifty::graph::detail_graph::NodeIndicesToContiguousNodeIndicesImpl< GRAPH, GRAPH::NodeIdTag >
- template <class GRAPH, class NODE_ID_TAG>
-
class
NodeIndicesToContiguousNodeIndicesImpl¶ Public Types
-
typedef GRAPH
GraphType¶
Public Functions
-
int64_t
operator[](const int64_t node) const¶
Private Types
-
typedef
GraphType:: template NodeMap<uint64_t> nifty::graph::detail_graph::NodeIndicesToContiguousNodeIndicesImpl::ContiguousIdStorage
Private Members
-
ContiguousIdStorage
ids_¶
-
typedef GRAPH
- template <class GRAPH>
-
template<>
classNodeIndicesToContiguousNodeIndicesImpl<GRAPH, nifty::graph::ContiguousTag>¶ Public Types
-
typedef GRAPH
GraphType¶
-
typedef GRAPH
-
class
NodeIter¶ Inherits from boost::counting_iterator< int64_t >
- template <class _CHILD_GRAPH>
-
struct
NodeIterRange¶ Inherits from nifty::tools::ConstIteratorRange< _CHILD_GRAPH::NodeIter >
- template <class _CHILD_GRAPH>
-
struct
NodeIterRange¶ Inherits from nifty::tools::ConstIteratorRange< _CHILD_GRAPH::NodeIter >
- template <class GRAPH, class NODE_MAP>
-
class
NodeLabelsToEdgeLabelsUnaryFunction¶ Public Types
-
typedef const uint8_t &
Reference¶
-
typedef uint8_t
Value¶
-
typedef const uint8_t &
reference¶
-
typedef uint8_t
value¶
Public Functions
-
NodeLabelsToEdgeLabelsUnaryFunction(const GRAPH &graph, const NODE_MAP &nodeLabels)¶
-
NodeLabelsToEdgeLabelsUnaryFunction(const NodeLabelsToEdgeLabelsUnaryFunction &other)¶
-
const uint8_t &
operator()(const int64_t edgeId) const¶
-
typedef const uint8_t &
- template <class T>
-
struct
NodeMap¶ Inherits from nifty::graph::graph_maps::NodeMap< ChildGraph, T >
- template <class G, class T>
-
struct
NodeMap¶ Inherits from std::vector< T >
- template <class T>
-
struct
NodeMap¶ Inherits from nifty::graph::graph_maps::NodeMap< ChildGraph, T >
-
struct
NodeTag¶
- template <>
-
template<>
classnumeric_limits<half_float::half>¶ Inherits from numeric_limits< float >
Public Static Functions
-
static HALF_CONSTEXPR half_float::half std::numeric_limits::min()
-
static HALF_CONSTEXPR half_float::half std::numeric_limits::lowest()
-
static HALF_CONSTEXPR half_float::half std::numeric_limits::max()
-
static HALF_CONSTEXPR half_float::half std::numeric_limits::epsilon()
-
static HALF_CONSTEXPR half_float::half std::numeric_limits::round_error()
-
static HALF_CONSTEXPR half_float::half std::numeric_limits::infinity()
-
static HALF_CONSTEXPR half_float::half std::numeric_limits::quiet_NaN()
-
static HALF_CONSTEXPR half_float::half std::numeric_limits::signaling_NaN()
-
static HALF_CONSTEXPR half_float::half std::numeric_limits::denorm_min()
Public Static Attributes
-
HALF_CONSTEXPR_CONST bool std::numeric_limits::is_signed= true
-
HALF_CONSTEXPR_CONST bool std::numeric_limits::is_exact= false
-
HALF_CONSTEXPR_CONST bool std::numeric_limits::is_modulo= false
-
HALF_CONSTEXPR_CONST bool std::numeric_limits::is_iec559= true
-
HALF_CONSTEXPR_CONST bool std::numeric_limits::has_infinity= true
-
HALF_CONSTEXPR_CONST bool std::numeric_limits::has_quiet_NaN= true
-
HALF_CONSTEXPR_CONST float_denorm_style std::numeric_limits::has_denorm= denorm_present
-
HALF_CONSTEXPR_CONST float_round_style std::numeric_limits::round_style= (std::numeric_limits<float>::round_style== half_float::half::round_style) ? half_float::half::round_style : round_indeterminate
-
HALF_CONSTEXPR_CONST int std::numeric_limits::digits= 11
-
HALF_CONSTEXPR_CONST int std::numeric_limits::digits10= 3
-
HALF_CONSTEXPR_CONST int std::numeric_limits::max_digits10= 5
-
HALF_CONSTEXPR_CONST int std::numeric_limits::radix= 2
-
HALF_CONSTEXPR_CONST int std::numeric_limits::min_exponent= -13
-
HALF_CONSTEXPR_CONST int std::numeric_limits::min_exponent10= -4
-
HALF_CONSTEXPR_CONST int std::numeric_limits::max_exponent= 16
-
HALF_CONSTEXPR_CONST int std::numeric_limits::max_exponent10= 4
-
- template <class T>
-
class
Numerics¶ Inherits from nifty::math::NumericsImplDispatch< T, std::numeric_limits< T >::is_specialized >
- template <class T, bool IS_NUMBER>
-
class
NumericsImplDispatch¶
- template <class T>
-
template<>
classNumericsImplDispatch<T, true>¶ Public Types
-
typedef vigra::NumericTraits<T>::RealPromote
RealPromoteType¶
-
typedef vigra::NumericTraits<T>::RealPromote
- template <class T>
-
struct
NumericTraits¶ Inherits from vigra::NumericTraits< T >
- template <class LABEL_TYPE = uint64_t, class COUNT_TYPE = uint64_t>
-
class
Overlap¶ -
Public Functions
- template <class SET_A_ITER, class SET_B_ITER>
-
Overlap(const uint64_t maxLabelSetA, SET_A_ITER aBegin, SET_A_ITER aEnd, SET_B_ITER bBegin)¶
Private Functions
- template <class SET_A_ITER, class SET_B_ITER>
-
void
fill(SET_A_ITER aBegin, SET_A_ITER aEnd, SET_B_ITER bBegin)¶
-
class
ParallelOptions¶ -
Public Functions
-
ParallelOptions(int nT = Auto)¶
-
int
getNumThreads() const¶
-
int
getActualNumThreads() const¶
-
ParallelOptions &
numThreads(const int n)¶
Private Members
-
int
numThreads_¶
Private Static Functions
-
static size_t
actualNumThreads(const int userNThreads)¶
-
- template <class OBJECTIVE>
-
class
PerturbAndMap¶ Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef MulticutObjective<GraphType, double>
InternalObjective¶
-
typedef MulticutBase<ObjectiveType>
MulticutBaseType¶
-
typedef MulticutBase<InternalObjective>
IternalMulticutBaseType¶
-
typedef nifty::graph::opt::common::SolverFactoryBase<IternalMulticutBaseType>
InternalMcFactoryBase¶
-
typedef
GraphType:: template NodeMap<uint64_t> nifty::graph::opt::multicut::PerturbAndMap::NodeLabels
-
typedef
GraphType:: template EdgeMap<double> nifty::graph::opt::multicut::PerturbAndMap::EdgeState
-
typedef std::shared_ptr<InternalMcFactoryBase>
FactorySmartPtr¶
Public Functions
-
PerturbAndMap(const ObjectiveType &objective, const SettingsType settings = SettingsType ())¶
-
~PerturbAndMap()¶
-
const PerturbAndMap<OBJECTIVE>::ObjectiveType &
objective() const¶
-
const PerturbAndMap<OBJECTIVE>::GraphType &
graph() const¶
-
void
optimize(EdgeState &edgeState)¶
-
void
optimize(const NodeLabels &startingPoint, EdgeState &edgeState)¶
Private Functions
- template <class WEIGHTS>
-
void
perturbWeights(const size_t threadId, WEIGHTS &perturbedWeights)¶
Private Members
-
const ObjectiveType &
objective_¶
-
SettingsType
settings_¶
-
std::vector<ThreadData *>
threadDataVec_¶
-
typedef OBJECTIVE
- template <std::size_t DIM>
-
class
PixelWiseLmcConnetedComponentsFusion¶
- template <>
-
template<>
classPixelWiseLmcConnetedComponentsFusion<2>¶ Public Types
-
typedef nifty::graph::UndirectedGraph
CCGraphType¶
-
typedef LiftedMulticutObjective<CCGraphType, double>
CCObjectiveType¶
-
typedef LiftedMulticutBase<CCObjectiveType>
CCBaseType¶
-
typedef CCBaseType::VisitorBaseType
CVisitorBaseType¶
-
typedef CCBaseType::NodeLabelsType
CCNodeLabels¶
-
typedef nifty::graph::opt::common::SolverFactoryBase<CCBaseType>
CCLmcFactoryBase¶
-
typedef nifty::graph::UndirectedGraph
CCGraphType¶
-
typedef LiftedMulticutObjective<CCGraphType, double>
CCObjectiveType¶
-
typedef LiftedMulticutBase<CCObjectiveType>
CCBaseType¶
-
typedef CCBaseType::VisitorBaseType
CVisitorBaseType¶
-
typedef CCBaseType::NodeLabelsType
CCNodeLabels¶
-
typedef nifty::graph::opt::common::SolverFactoryBase<CCBaseType>
CCLmcFactoryBase¶
Public Functions
- template <class D_LABELS_A, class D_LABELS_B>
-
auto
fuse(const xt::xexpression<D_LABELS_A> &e_labels_a, const xt::xexpression<D_LABELS_B> &e_labels_b)¶
- template <class D_LABELS>
-
auto
fuse(const xt::xexpression<D_LABELS> &e_labels)¶
- template <class D_LABELS_A, class D_LABELS_B>
-
auto
fuse(const xt::xexpression<D_LABELS_A> &e_labels_a, const xt::xexpression<D_LABELS_B> &e_labels_b)¶
- template <class D_LABELS>
-
auto
fuse(const xt::xexpression<D_LABELS> &e_labels)¶
Private Functions
- template <class D_LABELS_A, class D_LABELS_B>
-
auto
merge_ufd(const xt::xexpression<D_LABELS_A> &e_labels_a, const xt::xexpression<D_LABELS_B> &e_labels_b)¶
- template <class D_LABELS>
-
auto
merge_ufd2(const xt::xexpression<D_LABELS> &e_labels)¶
- template <class F>
-
auto
_build_(xt::xtensor<uint64_t, DIM, xt::layout_type::row_major> &res, F &&f)¶
- template <class D_LABELS_A, class D_LABELS_B>
-
auto
merge_ufd(const xt::xexpression<D_LABELS_A> &e_labels_a, const xt::xexpression<D_LABELS_B> &e_labels_b)¶
- template <class D_LABELS>
-
auto
merge_ufd2(const xt::xexpression<D_LABELS> &e_labels)¶
Private Members
-
const PixelWiseLmcObjective<DIM> &
objective_¶
-
std::shared_ptr<CCLmcFactoryBase>
solver_fatory_¶
-
typedef nifty::graph::UndirectedGraph
- template <>
-
template<>
classPixelWiseLmcConnetedComponentsFusion<3>¶ Public Types
-
typedef nifty::graph::UndirectedGraph
CCGraphType
-
typedef LiftedMulticutObjective<CCGraphType, double>
CCObjectiveType
-
typedef LiftedMulticutBase<CCObjectiveType>
CCBaseType
-
typedef CCBaseType::VisitorBaseType
CVisitorBaseType
-
typedef CCBaseType::NodeLabelsType
CCNodeLabels
-
typedef nifty::graph::opt::common::SolverFactoryBase<CCBaseType>
CCLmcFactoryBase
Public Functions
-
PixelWiseLmcConnetedComponentsFusion(const PixelWiseLmcObjective<DIM> &objective, std::shared_ptr<CCLmcFactoryBase> solver_fatory)
- template <class D_LABELS_A, class D_LABELS_B>
-
auto
fuse(const xt::xexpression<D_LABELS_A> &e_labels_a, const xt::xexpression<D_LABELS_B> &e_labels_b)
- template <class D_LABELS>
-
auto
fuse(const xt::xexpression<D_LABELS> &e_labels)
Private Functions
- template <class D_LABELS_A, class D_LABELS_B>
-
auto
merge_ufd(const xt::xexpression<D_LABELS_A> &e_labels_a, const xt::xexpression<D_LABELS_B> &e_labels_b)
- template <class D_LABELS>
-
auto
merge_ufd2(const xt::xexpression<D_LABELS> &e_labels)
Private Members
-
const PixelWiseLmcObjective<DIM> &
objective_¶
-
std::shared_ptr<CCLmcFactoryBase>
solver_fatory_¶
-
typedef nifty::graph::UndirectedGraph
- template <std::size_t DIM>
-
class
PixelWiseLmcObjective¶ Public Types
-
typedef nifty::graph::UndirectedGridGraph<DIM, true>
GraphType¶
-
typedef LiftedMulticutObjective<GraphType, double>
ObjectiveType¶
-
typedef LiftedMulticutBase<ObjectiveType>
BaseType¶
Public Functions
-
PixelWiseLmcObjective()¶
- template <class D_WEIGHTS, class D_OFFSETS>
-
PixelWiseLmcObjective(const xt::xexpression<D_WEIGHTS> &e_weights, const xt::xexpression<D_OFFSETS> &e_offsets)¶
- template <class D_LABELS>
-
auto
evaluate(const xt::xexpression<D_LABELS> &e_labels) const¶
-
const auto &
weights() const¶
-
const auto &
offsets() const¶
-
const auto &
shape() const¶
-
auto
n_offsets() const¶
-
auto
n_variables() const¶
- template <class D_LABELS>
-
PixelWiseLmcObjective()¶
- template <class D_WEIGHTS, class D_OFFSETS>
-
PixelWiseLmcObjective(const xt::xexpression<D_WEIGHTS> &e_weights, const xt::xexpression<D_OFFSETS> &e_offsets)¶
- template <class D_LABELS>
-
auto
evaluate(const xt::xexpression<D_LABELS> &e_labels) const¶
-
const auto &
weights() const¶
-
const auto &
offsets() const¶
-
const auto &
shape() const¶
-
auto
n_offsets() const¶
-
auto
n_variables() const¶
-
typedef nifty::graph::UndirectedGridGraph<DIM, true>
- template <class GRAPH, class ACC_0, class ACC_1, bool ENABLE_UCM>
-
class
ProbabilisticLiftedClusterPolicy¶ Public Types
-
typedef GRAPH
GraphType¶
-
typedef FloatEdgeMap
EdgePrioType¶
-
typedef FloatEdgeMap
EdgeSizesType¶
-
typedef FloatNodeMap
NodeSizesType¶
-
typedef EdgeContractionGraph<GraphType, SelfType>
EdgeContractionGraphType¶
Public Functions
- template <class MERGE_PRIOS, class NOT_MERGE_PRIOS, class IS_LOCAL_EDGE, class EDGE_SIZES>
-
ProbabilisticLiftedClusterPolicy(const GraphType &graph, const MERGE_PRIOS &mergePrios, const NOT_MERGE_PRIOS ¬MergePrios, const IS_LOCAL_EDGE &isLocalEdge, const EDGE_SIZES &edgeSizes, const SettingsType &settings = SettingsType ())¶
-
bool
isDone()¶
-
FixationClusterPolicy<GRAPH, ACC_0, ACC_1, ENABLE_UCM>::EdgeContractionGraphType &
edgeContractionGraph()¶
-
void
contractEdge(const uint64_t edgeToContract)¶
-
void
mergeNodes(const uint64_t aliveNode, const uint64_t deadNode)¶
-
void
mergeEdges(const uint64_t aliveEdge, const uint64_t deadEdge)¶
-
void
contractEdgeDone(const uint64_t edgeToContract)¶
Private Types
-
typedef
GRAPH:: template EdgeMap<uint8_t> nifty::graph::agglo::ProbabilisticLiftedClusterPolicy::UInt8EdgeMap
-
typedef
GRAPH:: template EdgeMap<double> nifty::graph::agglo::ProbabilisticLiftedClusterPolicy::FloatEdgeMap
-
typedef
GRAPH:: template NodeMap<double> nifty::graph::agglo::ProbabilisticLiftedClusterPolicy::FloatNodeMap
-
typedef ACC_0
Acc0Type¶
-
typedef ACC_1
Acc1Type¶
-
typedef nifty::tools::ChangeablePriorityQueue<double, std::greater<double>>
QueueType¶
Private Functions
-
double
pqMergePrio(const uint64_t edge) const¶
Private Members
-
Probabilistictypedef FixationClusterPolicy< GRAPH, ACC_0, ACC_1, ENABLE_UCM > nifty::graph::agglo::ProbabilisticLiftedClusterPolicy::SelfType
-
ACC_0
acc0_¶
-
ACC_1
acc1_¶
-
UInt8EdgeMap
isLocalEdge_¶
-
UInt8EdgeMap
isPureLocal_¶
-
UInt8EdgeMap
isPureLifted_¶
-
SettingsType
settings_¶
-
EdgeContractionGraphType
edgeContractionGraph_¶
-
uint64_t
edgeToContractNext_¶
-
double
edgeToContractNextMergePrio_¶
Friends
-
friend
nifty::graph::agglo::ProbabilisticLiftedClusterPolicy::EdgeContractionGraph< GraphType, SelfType, ENABLE_UCM >
-
typedef GRAPH
- template <class T0, class T1>
-
struct
PromoteTraits¶ Public Types
-
typedef vigra::PromoteTraits<T0, T1>::Promote
PromoteType¶
-
typedef vigra::NumericTraits<PromoteType>::RealPromote
RealPromoteType¶
-
typedef vigra::PromoteTraits<T0, T1>::Promote
- template <class OBJECTIVE>
-
class
ProposalGeneratorBase¶ Subclassed by nifty::graph::opt::common::GreedyAdditiveMulticutProposals< OBJECTIVE >, nifty::graph::opt::common::InterfaceFlipperProposalGenerator< OBJECTIVE >, nifty::graph::opt::common::RandomNodeColorProposalGenerator< OBJECTIVE >, nifty::graph::opt::common::StubProposalGenerator< OBJECTIVE >, nifty::graph::opt::common::WatershedProposalGenerator< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef
ObjectiveType::GraphType:: template NodeMap<uint64_t> nifty::graph::opt::common::ProposalGeneratorBase::ProposalType
-
typedef OBJECTIVE
- template <class OBJECTIVE>
-
class
ProposalGeneratorBase¶ Subclassed by nifty::graph::opt::lifted_multicut::WatershedProposalGenerator< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef LiftedMulticutBase<ObjectiveType>
LiftedMulticutBaseType¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef ObjectiveType::LiftedGraphType
LiftedGraphType¶
-
typedef LiftedMulticutBaseType::NodeLabelsType
NodeLabelsType¶
Public Functions
-
virtual
~ProposalGeneratorBase()¶
-
virtual void
generateProposal(const NodeLabelsType ¤tBest, NodeLabelsType &labels, const size_t tid) = 0¶
-
typedef OBJECTIVE
- template <class OBJECTIVE>
-
class
ProposalGeneratorBase¶ Subclassed by nifty::graph::opt::mincut::RandomProposalGenerator< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef MincutBase<ObjectiveType>
MincutBaseType¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef ObjectiveType::LiftedGraphType
LiftedGraphType¶
-
typedef MincutBaseType::NodeLabels
NodeLabels¶
Public Functions
-
virtual
~ProposalGeneratorBase()¶
-
virtual void
generateProposal(const NodeLabels ¤tBest, NodeLabels &labels, const size_t tid) = 0¶
-
typedef OBJECTIVE
- template <class PROPOSAL_GENERATOR>
-
class
ProposalGeneratorFactory¶ Inherits from nifty::graph::opt::lifted_multicut::ProposalGeneratorFactoryBase< PROPOSAL_GENERATOR::ObjectiveType >
Public Types
-
typedef PROPOSAL_GENERATOR
ProposalGeneratorType¶
-
typedef ProposalGeneratorType::SettingsType
SettingsType¶
-
typedef ProposalGeneratorType::ObjectiveType
ObjectiveType¶
-
typedef ProposalGeneratorBase<ObjectiveType>
ProposalGeneratorBaseType¶
Public Functions
-
ProposalGeneratorFactory(const SettingsType &settings = SettingsType ())¶
-
virtual
~ProposalGeneratorFactory()¶
-
virtual ProposalGeneratorBaseType *
create(const ObjectiveType &objective, const size_t numberOfThreads)¶
Private Members
-
SettingsType
settings_¶
-
typedef PROPOSAL_GENERATOR
- template <class PROPOSAL_GENERATOR>
-
class
ProposalGeneratorFactory¶ Inherits from nifty::graph::opt::mincut::ProposalGeneratorFactoryBase< PROPOSAL_GENERATOR::ObjectiveType >
Public Types
-
typedef PROPOSAL_GENERATOR
ProposalGeneratorType¶
-
typedef ProposalGeneratorType::SettingsType
SettingsType¶
-
typedef ProposalGeneratorType::ObjectiveType
ObjectiveType¶
-
typedef ProposalGeneratorBase<ObjectiveType>
ProposalGeneratorBaseType¶
Public Functions
-
ProposalGeneratorFactory(const SettingsType &settings = SettingsType ())¶
-
virtual
~ProposalGeneratorFactory()¶
-
virtual ProposalGeneratorBaseType *
create(const ObjectiveType &objective, const size_t numberOfThreads)¶
Private Members
-
SettingsType
settings_¶
-
typedef PROPOSAL_GENERATOR
- template <class PROPOSAL_GENERATOR>
-
class
ProposalGeneratorFactory¶ Inherits from nifty::graph::opt::common::ProposalGeneratorFactoryBase< PROPOSAL_GENERATOR::ObjectiveType >
Public Types
-
typedef PROPOSAL_GENERATOR
ProposalGeneratorType¶
-
typedef ProposalGeneratorType::SettingsType
SettingsType¶
-
typedef ProposalGeneratorType::ObjectiveType
ObjectiveType¶
-
typedef ProposalGeneratorBase<ObjectiveType>
ProposalGeneratorBaseType¶
Public Functions
-
ProposalGeneratorFactory(const SettingsType &settings = SettingsType ())¶
-
virtual
~ProposalGeneratorFactory()¶
-
virtual ProposalGeneratorBaseType *
create(const ObjectiveType &objective, const size_t numberOfThreads)¶
Private Members
-
SettingsType
settings_¶
-
typedef PROPOSAL_GENERATOR
- template <class OBJECTIVE>
-
class
ProposalGeneratorFactoryBase¶ Subclassed by nifty::graph::opt::lifted_multicut::PyProposalGeneratorFactoryBase< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef ProposalGeneratorBase<ObjectiveType>
ProposalGeneratorBaseType¶
Public Functions
-
virtual
~ProposalGeneratorFactoryBase()¶
-
virtual ProposalGeneratorBaseType *
create(const ObjectiveType &objective, const size_t numberOfThreads) = 0¶
-
typedef OBJECTIVE
- template <class OBJECTIVE>
-
class
ProposalGeneratorFactoryBase¶ Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef ProposalGeneratorBase<ObjectiveType>
ProposalGeneratorBaseType¶
Public Functions
-
virtual
~ProposalGeneratorFactoryBase()¶
-
virtual ProposalGeneratorBaseType *
create(const ObjectiveType &objective, const size_t numberOfThreads) = 0¶
-
typedef OBJECTIVE
- template <class OBJECTIVE>
-
class
ProposalGeneratorFactoryBase¶ Subclassed by nifty::graph::opt::common::ProposalGeneratorFactory< PROPOSAL_GENERATOR >, nifty::graph::opt::common::PyProposalGeneratorFactoryBase< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef ProposalGeneratorBase<ObjectiveType>
ProposalGeneratorBaseType¶
Public Functions
-
virtual
~ProposalGeneratorFactoryBase()¶
-
virtual ProposalGeneratorBaseType *
create(const ObjectiveType &objective, const size_t numberOfThreads) = 0¶
-
typedef OBJECTIVE
-
class
Proxy¶
-
class
Proxy¶
- template <class OBJECTIVE>
-
class
PyLiftedMulticutBase¶ Inherits from nifty::graph::opt::lifted_multicut::LiftedMulticutBase< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef LiftedMulticutVisitorBase<OBJECTIVE>
VisitorBaseType¶
-
typedef LiftedMulticutBase<ObjectiveType>
McBase¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef
GraphType:: template EdgeMap<uint8_t> nifty::graph::opt::lifted_multicut::PyLiftedMulticutBase::EdgeLabels
-
typedef
GraphType:: template NodeMap<uint64_t> nifty::graph::opt::lifted_multicut::PyLiftedMulticutBase::NodeLabelsType
Public Functions
-
void
optimize(NodeLabelsType &nodeLabels, VisitorBaseType *visitor)¶
-
const NodeLabelsType &
currentBestNodeLabels()¶
-
double
currentBestEnergy()¶
-
const ObjectiveType &
objective() const¶
-
typedef OBJECTIVE
- template <class OBJECTIVE>
-
class
PyLiftedMulticutVisitorBase¶ Inherits from nifty::graph::opt::common::VisitorBase< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef LiftedMulticutVisitorBase<OBJECTIVE>
VisitorBaseType¶
-
typedef LiftedMulticutBase<ObjectiveType>
LmcBase¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef OBJECTIVE
- template <typename Type, size_t DIM, bool AUTO_CAST_TYPE>
-
struct
pymarray_caster¶ Subclassed by pybind11::detail::type_caster< nifty::marray::PyView< Type, DIM, AUTO_CAST_TYPE > >
Public Types
-
typedef type_caster<typename intrinsic_type<Type>::type>
value_conv¶
-
typedef std::conditional<AUTO_CAST_TYPE, pybind11::array_t<Type, py::array::forcecast>, pybind11::array_t<Type, py::array::c_style>>::type
pyarray_type¶
-
typedef type_caster<pyarray_type>
pyarray_conv¶
Public Functions
-
bool
load(handle src, bool convert)¶
-
pybind11::detail::pymarray_caster::PYBIND11_TYPE_CASTER(ViewType, _("array<")+value_conv::name()+_(">"))
-
typedef type_caster<typename intrinsic_type<Type>::type>
- template <class OBJECTIVE>
-
class
PyMincutBase¶ Inherits from nifty::graph::opt::mincut::MincutBase< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef MincutVisitorBase<OBJECTIVE>
VisitorBaseType¶
-
typedef MincutBase<ObjectiveType>
McBase¶
-
typedef ObjectiveType::GraphType
GraphType¶
Public Functions
-
void
optimize(NodeLabelsType &nodeLabels, VisitorBaseType *visitor)¶
-
const NodeLabelsType &
currentBestNodeLabels()¶
-
double
currentBestEnergy()¶
-
const ObjectiveType &
objective() const¶
-
typedef OBJECTIVE
- template <class OBJECTIVE>
-
class
PyMincutVisitorBase¶ Inherits from nifty::graph::opt::common::VisitorBase< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef MincutVisitorBase<OBJECTIVE>
VisitorBaseType¶
-
typedef MincutBase<ObjectiveType>
McBase¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef OBJECTIVE
- template <class OBJECTIVE>
-
class
PyMinstcutBase¶ Inherits from nifty::graph::opt::minstcut::MinstcutBase< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef MinstcutVisitorBase<OBJECTIVE>
VisitorBaseType¶
-
typedef MinstcutBase<ObjectiveType>
McBase¶
-
typedef ObjectiveType::GraphType
GraphType¶
Public Functions
-
void
optimize(NodeLabelsType &nodeLabels, VisitorBaseType *visitor)¶
-
const NodeLabelsType &
currentBestNodeLabels()¶
-
double
currentBestEnergy()¶
-
const ObjectiveType &
objective() const¶
-
typedef OBJECTIVE
- template <class OBJECTIVE>
-
class
PyMinstcutVisitorBase¶ Inherits from nifty::graph::opt::common::VisitorBase< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef MinstcutVisitorBase<OBJECTIVE>
VisitorBaseType¶
-
typedef MinstcutBase<ObjectiveType>
McBase¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef OBJECTIVE
- template <class OBJECTIVE>
-
class
PyMulticutBase¶ Inherits from nifty::graph::opt::multicut::MulticutBase< OBJECTIVE >, nifty::graph::opt::multicut::MulticutBase< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef MulticutVisitorBase<OBJECTIVE>
VisitorBaseType¶
-
typedef MulticutBase<ObjectiveType>
McBase¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef
GraphType:: template EdgeMap<uint8_t> nifty::graph::opt::multicut::PyMulticutBase::EdgeLabels
-
typedef
GraphType:: template NodeMap<uint64_t> nifty::graph::opt::multicut::PyMulticutBase::NodeLabelsType
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef MulticutVisitorBase<OBJECTIVE>
VisitorBaseType¶
-
typedef MulticutBase<ObjectiveType>
McBase¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef
GraphType:: template EdgeMap<uint8_t> nifty::graph::opt::multicut::PyMulticutBase::EdgeLabels
-
typedef
GraphType:: template NodeMap<uint64_t> nifty::graph::opt::multicut::PyMulticutBase::NodeLabelsType
Public Functions
-
void
optimize(NodeLabelsType &nodeLabels, VisitorBaseType *visitor)¶
-
const NodeLabelsType &
currentBestNodeLabels()¶
-
double
currentBestEnergy()¶
-
const ObjectiveType &
objective() const¶
-
void
optimize(NodeLabelsType &nodeLabels, VisitorBaseType *visitor)¶
-
const NodeLabelsType &
currentBestNodeLabels()¶
-
double
currentBestEnergy()¶
-
const ObjectiveType &
objective() const¶
-
typedef OBJECTIVE
- template <class OBJECTIVE>
-
class
PyMulticutVisitorBase¶ Inherits from nifty::graph::opt::common::VisitorBase< OBJECTIVE >, nifty::graph::opt::common::VisitorBase< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef MulticutVisitorBase<OBJECTIVE>
VisitorBaseType¶
-
typedef MulticutBase<ObjectiveType>
McBase¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef MulticutVisitorBase<OBJECTIVE>
VisitorBaseType¶
-
typedef MulticutBase<ObjectiveType>
McBase¶
-
typedef ObjectiveType::GraphType
GraphType¶
Public Functions
-
typedef OBJECTIVE
- template <class OBJECTIVE>
-
class
PyProposalGeneratorFactoryBase¶ Inherits from nifty::graph::opt::lifted_multicut::ProposalGeneratorFactoryBase< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef ProposalGeneratorBase<ObjectiveType>
ProposalGeneratorBaseType¶
Public Functions
-
ProposalGeneratorBaseType *
create(const ObjectiveType &objective, const size_t numberOfThreads)¶
-
typedef OBJECTIVE
- template <class OBJECTIVE>
-
class
PyProposalGeneratorFactoryBase¶ Inherits from nifty::graph::opt::common::ProposalGeneratorFactoryBase< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef ProposalGeneratorBase<ObjectiveType>
ProposalGeneratorBaseType¶
Public Functions
-
ProposalGeneratorBaseType *
create(const ObjectiveType &objective, const size_t numberOfThreads)¶
-
typedef OBJECTIVE
- template <class SOLVER_BASE>
-
class
PySolverFactoryBase¶ Inherits from nifty::graph::opt::common::SolverFactoryBase< SOLVER_BASE >
Public Types
-
typedef SolverFactoryBase<SOLVER_BASE>
BaseType¶
-
typedef SOLVER_BASE
SolverBaseType¶
-
typedef SolverBaseType::ObjectiveType
ObjectiveType¶
-
typedef SolverFactoryBase<SOLVER_BASE>
- template <typename VALUE_TYPE, size_t DIM = 0, bool AUTO_CAST_TYPE = true>
-
class
PyView¶ Inherits from andres::View< VALUE_TYPE, false >
Public Functions
- template <class ShapeIterator>
-
PyView(pybind11::array_t<VALUE_TYPE> array, VALUE_TYPE *data, ShapeIterator begin, ShapeIterator end)¶
-
PyView()¶
-
const VALUE_TYPE &
operator[](const uint64_t index) const¶
-
VALUE_TYPE &
operator[](const uint64_t index)¶
- template <class ShapeIterator>
-
PyView(ShapeIterator begin, ShapeIterator end)¶
- template <class ShapeIterator>
-
void
reshapeIfEmpty(ShapeIterator begin, ShapeIterator end)¶
Private Functions
- template <class ShapeIterator>
-
void
assignFromShape(ShapeIterator begin, ShapeIterator end)¶
Private Members
Friends
-
friend
nifty::marray::PyView::pybind11::detail::pymarray_caster< VALUE_TYPE, DIM, AUTO_CAST_TYPE >
- template <class T = double>
-
class
RandError¶ Public Types
-
typedef T
value_type¶
Public Functions
- template <class ITERATOR_TRUTH, class ITERATOR_PRED>
-
RandError(ITERATOR_TRUTH begin0, ITERATOR_TRUTH end0, ITERATOR_PRED begin1, bool ignoreDefaultLabel = false)¶
-
size_t
elements() const¶
-
size_t
pairs() const¶
-
size_t
trueJoins() const¶
-
size_t
trueCuts() const¶
-
size_t
falseJoins() const¶
-
size_t
falseCuts() const¶
-
size_t
joinsInPrediction() const¶
-
size_t
cutsInPrediction() const¶
-
size_t
joinsInTruth() const¶
-
size_t
cutsInTruth() const¶
-
value_type
recallOfCuts() const¶
-
value_type
precisionOfCuts() const¶
-
value_type
recallOfJoins() const¶
-
value_type
precisionOfJoins() const¶
-
value_type
error() const¶
-
value_type
index() const¶
-
typedef T
- template <class OBJECTIVE>
-
class
RandomNodeColorProposalGenerator¶ Inherits from nifty::graph::opt::common::ProposalGeneratorBase< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef
GraphType:: template NodeMap<uint64_t> nifty::graph::opt::common::RandomNodeColorProposalGenerator::ProposalType
-
typedef
GraphType:: template NodeMap<bool> nifty::graph::opt::common::RandomNodeColorProposalGenerator::IsUsed
Public Functions
-
RandomNodeColorProposalGenerator(const ObjectiveType &objective, const size_t numberOfThreads, const SettingsType &settings = SettingsType ())¶
-
void
reset()¶
-
virtual
~RandomNodeColorProposalGenerator()¶
-
virtual void
generateProposal(const ProposalType ¤tBest, ProposalType &proposal, const size_t tid)¶
-
typedef OBJECTIVE
- template <class OBJECTIVE>
-
class
RandomProposalGenerator¶ Inherits from nifty::graph::opt::mincut::ProposalGeneratorBase< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef MincutBase<ObjectiveType>
MincutBaseType¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef ObjectiveType::LiftedGraphType
LiftedGraphType¶
-
typedef MincutBaseType::NodeLabels
NodeLabels¶
-
typedef
GraphType:: template EdgeMap<float> nifty::graph::opt::mincut::RandomProposalGenerator::EdgeWeights
Public Functions
-
RandomProposalGenerator(const ObjectiveType &objective, const size_t numberOfThreads, const SettingsType &settings = SettingsType ())¶
-
void
reset()¶
-
virtual
~RandomProposalGenerator()¶
-
virtual void
generateProposal(const NodeLabels ¤tBest, NodeLabels &proposal, const size_t tid)¶
-
typedef OBJECTIVE
- template <class G, class T>
-
class
RankOrderEdgeMap¶ Public Types
-
typedef G
GraphType¶
-
typedef
GraphType:: template EdgeMap<HistogramType> nifty::graph::agglo::merge_rules::RankOrderEdgeMap::HistogramEdgeMapType
-
typedef
GraphType:: template EdgeMap<T> nifty::graph::agglo::merge_rules::RankOrderEdgeMap::SizeEdgeMapType
-
typedef RankOrderSettings
SettingsType¶
Public Functions
-
auto
name() const¶
- template <class VALUES, class WEIGHTS>
-
RankOrderEdgeMap(const GraphType &g, const VALUES &values, const WEIGHTS &weights, const SettingsType &settings = SettingsType ())¶
-
void
merge(const uint64_t aliveEdge, const uint64_t deadEdge)¶
-
void
setValueFrom(const uint64_t targetEdge, const uint64_t sourceEdge)¶
-
void
setFrom(const uint64_t targetEdge, const uint64_t sourceEdge)¶
-
void
set(const uint64_t targetEdge, const T &value, const T &weight)¶
-
T
operator[](const uint64_t edge) const¶
Public Static Functions
-
static auto
staticName()¶
-
typedef G
- template <size_t DIM, class LABEL_TYPE>
-
template<>
structRefHelper<ExplicitLabels<DIM, LABEL_TYPE>>¶ Public Types
-
typedef ExplicitLabels<DIM, LABEL_TYPE>
type¶
-
typedef ExplicitLabels<DIM, LABEL_TYPE>
-
class
ResetNotSupported¶ Inherits from runtime_error
- template <typename T, typename U>
-
struct
result¶ Inherits from half_float::detail::enable< expr, T, U >
- template <class GRAPH, class QUEUE>
-
class
SearchImpl¶ Public Types
-
typedef GRAPH
GraphType¶
-
typedef
GraphType:: template NodeMap<int64_t> nifty::graph::detail_graph::SearchImpl::PredecessorsMap
-
typedef
GraphType:: template NodeMap<int64_t> nifty::graph::detail_graph::SearchImpl::DistanceMap
Public Functions
- template <class F>
-
void
graphNeighbourhood(const uint64_t source, const size_t maxDistance, F &&f)¶
-
void
runSingleSourceSingleTarget(const int64_t source, const int64_t target = -1)¶
- template <class SUBGRAPH_MASK>
-
void
runSingleSourceSingleTarget(const int64_t source, const int64_t target, const SUBGRAPH_MASK &subgraphMask)¶
-
void
runSingleSource(const int64_t source)¶
- template <class SOURCE_ITER, class SUBGRAPH_MASK, class VISITOR>
-
void
run(SOURCE_ITER sourceBegin, SOURCE_ITER sourceEnd, const SUBGRAPH_MASK &subgraphMask, VISITOR &&visitor)¶
-
const DistanceMap &
distances() const¶
-
const PredecessorsMap
predecessors() const¶
Private Types
-
typedef QUEUE
Queue¶
-
typedef GRAPH
-
template<>
structSettings¶
-
template<>
structSettings¶
-
struct
SettingsType¶
-
struct
SettingsType¶
-
struct
SettingsType¶
-
struct
SettingsType¶
-
struct
SettingsType¶ -
Public Members
-
template<>
UpdateRuleupdateRule0= {GENERALIZED_MEAN}¶
-
template<>
UpdateRuleupdateRule1= {GENERALIZED_MEAN}¶
-
template<>
boolzeroInit= false¶
-
template<>
doublep0= {1.0}¶
-
template<>
doublep1= {1.0}¶
-
template<>
doublegamma= {0.9} uint64_t numberOfNodesStop{1}¶
-
template<>
-
struct
SettingsType¶
-
struct
SettingsType¶ -
Public Members
-
template<>
SeedingStrategieseedingStrategie= {SEED_FROM_NEGATIVE}¶
-
template<>
doublesigma= {1.0}¶
-
template<>
doublenumberOfSeeds= {0.1}¶
-
template<>
-
struct
SettingsType¶
-
struct
SettingsType¶
-
struct
SettingsType¶
-
struct
SettingsType¶
-
struct
SettingsType¶ Public Members
-
template<>
intverbose= { 1 }¶
-
template<>
intnumberOfThreads= {-1}¶
-
template<>
size_tnumberOfIterations= {10}¶
-
template<>
size_tnumberOfParallelProposals= {4}¶
-
template<>
size_tfuseN= {2}¶
-
template<>
size_tstopIfNoImprovement= {4}¶
-
template<>
ProposalGenSettingsproposalGenSettings¶
-
template<>
FusionMoveSettingsfusionMoveSettings¶
-
template<>
-
struct
SettingsType¶
-
struct
SettingsType¶
-
struct
SettingsType¶
-
struct
SettingsType¶
-
struct
SettingsType¶
-
struct
SettingsType¶
-
struct
SettingsType¶ Public Members
-
template<>
size_tnumberOfIterations= {1000}¶
-
template<>
intverbose= {0}¶
-
template<>
size_tprimalComputationInterval= {100}¶
-
template<>
booltighten= {true}¶
-
template<>
size_ttightenInterval= {100}¶
-
template<>
size_ttightenIteration= {10}¶
-
template<>
doubletightenSlope= {0.02}¶
-
template<>
doubletightenConstraintsPercentage= {0.1}¶
-
template<>
doubleminDualImprovement= {0.}¶
-
template<>
size_tminDualImprovementInterval= {0}¶
-
template<>
size_ttimeout= {0}¶
-
template<>
size_tnumberOfThreads= {1}¶
-
template<>
-
struct
SettingsType¶
-
struct
SettingsType¶
-
struct
SettingsType¶
-
struct
SettingsType¶
-
struct
SettingsType¶
-
struct
SettingsType¶
-
struct
SettingsType¶
-
struct
SettingsType¶
-
struct
SettingsType¶ Public Members
-
template<>
std::shared_ptr<typename LiftedRounder::PrimalRounderLmcFactoryBase>lmcFactory¶
-
template<>
boolgreedyWarmstart= {true}¶
-
template<>
doubletightenSlope= {0.05}¶
-
template<>
size_ttightenMinDualImprovementInterval= {0}¶
-
template<>
doubletightenMinDualImprovement= {0.}¶
-
template<>
doubletightenConstraintsPercentage= {0.1}¶
-
template<>
size_ttightenConstraintsMax= {0}¶
-
template<>
size_ttightenInterval= {10}¶
-
template<>
size_ttightenIteration= {100}¶
-
template<>
booltighten= {true}¶
-
template<>
size_tminDualImprovementInterval= {0}¶
-
template<>
doubleminDualImprovement= {0.}¶
-
template<>
size_tlowerBoundComputationInterval= {1}¶
-
template<>
size_tprimalComputationInterval= {5}¶
-
template<>
size_ttimeout= {0}¶
-
template<>
size_tmaxIter= {1000}¶
-
template<>
size_tnumLpThreads= {1}¶
-
template<>
-
struct
SettingsType¶
-
struct
SettingsType¶ Inherits from nifty::graph::agglo::EdgeWeightedClusterPolicySettings
-
struct
SettingsType¶ -
Public Members
-
template<>
SeedingStrategieseedingStrategie= {SEED_FROM_NEGATIVE}¶
-
template<>
doublesigma= {1.0}¶
-
template<>
doublenumberOfSeeds= {0.1}¶
-
template<>
-
struct
SettingsType¶
-
struct
SettingsType¶
-
struct
SettingsType¶ -
Public Members
-
template<>
SeedingStrategieseedingStrategie= {SEED_FROM_LIFTED}¶
-
template<>
doublesigma= {1.0}¶
-
template<>
doublenumberOfSeeds= {0.1}¶
-
template<>
-
struct
SettingsType¶ -
Public Members
-
template<>
SeedingStrategieseedingStrategie= {SEED_FROM_LIFTED}¶
-
template<>
doublesigma= {1.0}¶
-
template<>
doublenumberOfSeeds= {0.1}¶
-
template<>
-
struct
SettingsType¶
-
struct
SettingsType¶
-
struct
SettingsType¶
-
struct
SettingsType¶
- template <class GRAPH, class WEIGHT_TYPE>
-
class
ShortestPathBellmanFord¶ Public Types
-
typedef GRAPH
GraphType¶
-
typedef WEIGHT_TYPE
WeightType¶
-
typedef
GraphType:: template NodeMap<int64_t> nifty::graph::ShortestPathBellmanFord::PredecessorsMap
-
typedef
GraphType:: template NodeMap<WeightType> nifty::graph::ShortestPathBellmanFord::DistanceMap
Public Functions
- template <class ArcWeights>
-
void
runSingleSourceSingleTarget(ArcWeights arcWeights, const int64_t source, const int64_t target = -1)¶
- template <class ArcWeights>
-
void
runSingleSource(ArcWeights arcWeights, const int64_t source)¶
- template <class ArcWeights, class SOURCE_ITER, class SUBGRAPH_MASK, class VISITOR>
-
void
run(ArcWeights arcWeights, SOURCE_ITER sourceBegin, SOURCE_ITER sourceEnd, const SUBGRAPH_MASK &subgraphMask, VISITOR &&visitor)¶
-
const DistanceMap &
distances() const¶
-
const PredecessorsMap
predecessors() const¶
-
typedef GRAPH
- template <class GRAPH, class WEIGHT_TYPE>
-
class
ShortestPathDijkstra¶ Public Types
-
typedef GRAPH
GraphType¶
-
typedef WEIGHT_TYPE
WeightType¶
-
typedef
GraphType:: template NodeMap<int64_t> nifty::graph::ShortestPathDijkstra::PredecessorsMap
-
typedef
GraphType:: template NodeMap<WeightType> nifty::graph::ShortestPathDijkstra::DistanceMap
Public Functions
- template <class EDGE_WEGIHTS>
-
void
runSingleSourceSingleTarget(const EDGE_WEGIHTS &edgeWeights, const int64_t source, const int64_t target = -1)¶
- template <class EDGE_WEGIHTS>
-
void
runSingleSourceMultiTarget(const EDGE_WEGIHTS &edgeWeights, const int64_t source, const std::vector<int64_t> &targets)¶
- template <class EDGE_WEGIHTS>
-
void
runSingleSource(EDGE_WEGIHTS edgeWeights, const int64_t source)¶
- template <class EDGE_WEGIHTS, class SOURCE_ITER, class SUBGRAPH_MASK, class VISITOR>
-
void
run(EDGE_WEGIHTS edgeWeights, SOURCE_ITER sourceBegin, SOURCE_ITER sourceEnd, const SUBGRAPH_MASK &subgraphMask, VISITOR &&visitor)¶
-
const DistanceMap &
distances() const¶
-
const PredecessorsMap &
predecessors() const¶
Private Types
-
typedef nifty::tools::ChangeablePriorityQueue<WeightType>
PqType¶
-
typedef GRAPH
- template <class ARC_INTERANL_TYPE = int64_t, class NODE_INTERNAL_TYPE = int64_t>
-
class
SimpleDirectedGraph¶ Inherits from nifty::graph::DirectedGraphBase< SimpleDirectedGraph< ARC_INTERANL_TYPE, NODE_INTERNAL_TYPE > >
Public Types
-
typedef boost::counting_iterator<int64_t>
NodeIter¶
-
typedef boost::counting_iterator<int64_t>
ArcIter¶
-
typedef DirectedNodeStorage::const_iterator
AdjacencyInIter¶
-
typedef DirectedNodeStorage::const_iterator
AdjacencyOutIter¶
-
typedef ContiguousTag
ArcIdTag¶
-
typedef ContiguousTag
EdgeIdTag¶
-
typedef ContiguousTag
NodeIdTag¶
Public Functions
-
SimpleDirectedGraph(const uint64_t numberOfNodes = 0, const uint64_t reserveNumberOfArcs = 0)¶
-
int64_t
insertArc(const int64_t s, const int64_t t)¶
-
int64_t
source(const int64_t a) const¶
-
int64_t
target(const int64_t a) const¶
-
int64_t
findArc(const int64_t s, const int64_t t)¶
-
int64_t
nodeIdUpperBound() const¶
-
int64_t
maxArcId() const¶
-
int64_t
numberOfArcs() const¶
-
int64_t
numberOfNodes() const¶
-
AdjacencyOutIter
adjacencyOutBegin(const int64_t node) const¶
-
AdjacencyOutIter
adjacencyOutEnd(const int64_t node) const¶
-
AdjacencyInIter
adjacencyInBegin(const int64_t node) const¶
-
AdjacencyInIter
adjacencyInEnd(const int64_t node) const¶
Private Types
-
typedef ARC_INTERANL_TYPE
ArcInternalType¶
-
typedef NODE_INTERNAL_TYPE
NodeInteralType¶
-
typedef detail_graph::DirectedAdjacency<int64_t, int64_t, NodeInteralType, ArcInternalType>
NodeAdjacency¶
-
typedef std::set<NodeAdjacency>
DirectedNodeStorage¶
-
typedef std::pair<DirectedNodeStorage, DirectedNodeStorage>
NodeStorage¶
-
typedef std::pair<NodeInteralType, NodeInteralType>
ArcStorage¶
-
typedef boost::counting_iterator<int64_t>
-
class
SimpleGraphEdgeIter¶ Inherits from boost::counting_iterator< int64_t >
-
class
SimpleGraphNodeIter¶ Inherits from boost::counting_iterator< int64_t >
- template <class G, class T>
-
class
SmoothMaxEdgeMap¶ Public Types
-
typedef G
GraphType¶
-
typedef
GraphType:: template EdgeMap<T> nifty::graph::agglo::merge_rules::SmoothMaxEdgeMap::MeanEdgeMapType
-
typedef
GraphType:: template EdgeMap<nifty::float16_t> nifty::graph::agglo::merge_rules::SmoothMaxEdgeMap::SizeEdgeMapType
-
typedef SmoothMaxSettings
SettingsType¶
Public Functions
-
auto
name() const¶
- template <class VALUES, class WEIGHTS>
-
SmoothMaxEdgeMap(const GraphType &g, const VALUES &values, const WEIGHTS &weights, const SettingsType &settings = SettingsType ())¶
-
void
merge(const uint64_t aliveEdge, const uint64_t deadEdge)¶
-
void
setValueFrom(const uint64_t targetEdge, const uint64_t sourceEdge)¶
-
void
setFrom(const uint64_t targetEdge, const uint64_t sourceEdge)¶
-
void
set(const uint64_t targetEdge, const T &value, const T &weight)¶
-
T
operator[](const uint64_t edge) const¶
Public Static Functions
-
static auto
staticName()¶
-
typedef G
- template <class OBJECTIVE, class CHILD>
-
class
SolverBase¶ Subclassed by nifty::graph::opt::multicut::MulticutBase< PROPPOSAL_GEN::ObjectiveType >, nifty::graph::opt::multicut::MulticutBase< PROPPOSAL_GEN::ObjectiveType >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef SolverBase<ObjectiveType, CHILD>
SelfType¶
-
typedef VisitorBase<CHILD>
VisitorBaseType¶
-
typedef VisitorProxy<CHILD>
VisitorProxyType¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef ObjectiveType::NodeLabelsType
NodeLabelsType¶
Public Functions
-
virtual
~SolverBase()¶
-
virtual void
optimize(NodeLabelsType &nodeLabels, VisitorBaseType *visitor) = 0¶
-
virtual const ObjectiveType &
objective() const = 0¶
-
virtual const NodeLabelsType &
currentBestNodeLabels() = 0¶
-
virtual void
weightsChanged()¶
-
virtual double
currentBestEnergy()¶
-
typedef OBJECTIVE
- template <class SOLVER>
-
class
SolverFactory¶ Inherits from nifty::graph::opt::common::SolverFactoryBase< SOLVER::BaseType >
Public Types
-
typedef SolverFactoryBase<typename SOLVER::BaseType>
BaseType¶
-
typedef SOLVER
SolverType¶
-
typedef SolverType::ObjectiveType
ObjectiveType¶
-
typedef SolverType::BaseType
SolverBaseType¶
-
typedef SolverType::SettingsType
SettingsType¶
Public Functions
-
SolverFactory(const SettingsType &settings = SettingsType ())¶
-
virtual SolverBaseType *
create(const ObjectiveType &objective)¶
Private Members
-
SettingsType
options_¶
-
typedef SolverFactoryBase<typename SOLVER::BaseType>
- template <class SOLVER_BASE>
-
class
SolverFactoryBase¶ Subclassed by nifty::graph::opt::common::PySolverFactoryBase< SOLVER_BASE >
Public Types
-
typedef SOLVER_BASE
SolverBaseType¶
-
typedef SolverBaseType::ObjectiveType
ObjectiveType¶
Public Functions
-
virtual
~SolverFactoryBase()¶
-
virtual SolverBaseType *
create(const ObjectiveType &objective) = 0¶
-
typedef SOLVER_BASE
-
struct
SortedTag¶
-
struct
SparseTag¶
- template <class T, size_t DIM>
-
class
StaticArrayBase¶ Inherits from std::array< T, DIM >
-
struct
StructureTensorEigenvalues¶ Inherits from nifty::features::FilterBase
Public Functions
-
StructureTensorEigenvalues()¶
-
void
operator()(const fastfilters_array2d_t &ff, marray::View<float> &out, const double sigma) const¶
-
void
operator()(const fastfilters_array3d_t &ff, marray::View<float> &out, const double sigma) const¶
-
bool
isMultiChannel() const¶
-
void
setOuterScale(const double sigmaOuter)¶
Private Members
-
double
sigmaOuter_¶
-
- template <class OBJECTIVE>
-
class
StubProposalGenerator¶ Inherits from nifty::graph::opt::common::ProposalGeneratorBase< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef
GraphType:: template NodeMap<uint64_t> nifty::graph::opt::common::StubProposalGenerator::ProposalType
Public Functions
-
StubProposalGenerator(const ObjectiveType &objective, const size_t numberOfThreads, const SettingsType &settings = SettingsType ())¶
-
virtual
~StubProposalGenerator()¶
-
virtual void
generateProposal(const ProposalType ¤tBest, ProposalType &proposal, const size_t tid)¶
-
typedef OBJECTIVE
-
struct
SubgraphWithCut¶
-
struct
SubgraphWithCut¶ Public Functions
-
template<>
SubgraphWithCut(const WeightsMap &weights)¶
-
template<>
booluseNode(const size_t v) const¶
-
template<>
booluseEdge(const size_t e) const¶
Public Members
-
template<>
const WeightsMap &weights_¶
-
template<>
- template <class GRAPH, class NODE_LABELS>
-
struct
SubgraphWithCutFromNodeLabels¶ -
Public Functions
-
SubgraphWithCutFromNodeLabels(const GraphType &graph, const NodeLabelsType &nodeLabels)¶
-
bool
useNode(const uint64_t v) const¶
-
bool
useEdge(const uint64_t graphEdge) const¶
-
-
struct
ThreadData¶ Public Functions
-
template<>
ThreadData(const size_t threadId, const int seed, const GraphType &graph)¶
-
template<>
-
class
ThreadPool¶ Public Functions
-
ThreadPool(const ParallelOptions &options)¶
-
ThreadPool(const int n)¶
-
~ThreadPool()¶
-
void
waitFinished()¶
-
size_t
nThreads() const¶
Private Functions
-
void
init(const ParallelOptions &options)¶
-
-
class
Timer¶ Subclassed by nifty::tools::VerboseTimer
Private Members
-
double
seconds_¶
-
decltype(std::chrono::high_resolution_clock::now()) nifty::tools::Timer::timeObject_
-
double
- template <size_t DIM>
-
class
TopologicalGrid¶
- template <>
-
template<>
classTopologicalGrid<2>¶ Public Functions
-
uint32_t
operator()(const CoordinateType &coord) const¶
-
uint32_t
operator()(const uint32_t x0, const uint32_t x1) const¶
-
const NumberOfCellsType &
numberOfCells() const¶
-
const CoordinateType &
shape() const¶
-
const CoordinateType &
topologicalGridShape() const¶
Private Types
-
uint32_t
-
struct
TwoCutBuffers¶ Public Functions
-
template<>
TwoCutBuffers(const GraphType &graph)¶
Public Members
-
GraphType:: template NodeMap<uint64_t> nifty::graph::opt::multicut::KernighanLin< OBJECTIVE >::TwoCutBuffers::border
-
GraphType:: template NodeMap<double> nifty::graph::opt::multicut::KernighanLin< OBJECTIVE >::TwoCutBuffers::differences
-
GraphType:: template NodeMap<char> nifty::graph::opt::multicut::KernighanLin< OBJECTIVE >::TwoCutBuffers::is_moved
-
template<>
uint64_tmax_not_used_label¶
-
GraphType:: template NodeMap<uint64_t> nifty::graph::opt::multicut::KernighanLin< OBJECTIVE >::TwoCutBuffers::referenced_by
-
template<>
NodeLabelsTypevertex_labels¶
-
template<>
- template <typename Type, size_t Size>
-
template<>
structtype_caster<nifty::array::StaticArray<Type, Size>>¶ Inherits from pybind11::detail::array_caster_< nifty::array::StaticArray< Type, Size >, Type, false, Size >
- template <typename Type, size_t DIM, bool AUTO_CAST_TYPE>
-
template<>
structtype_caster<nifty::marray::PyView<Type, DIM, AUTO_CAST_TYPE>>¶ Inherits from pybind11::detail::pymarray_caster< Type, DIM, AUTO_CAST_TYPE >
- template <typename T>
-
struct
unary_specialized¶
-
struct
UnaryFunction¶ Public Types
-
template<>
typedef NodeAdjacencyvalue_type¶
Public Functions
- template <class ADJ>
-
template<>
NodeAdjacencyoperator()(const ADJ &adjacency) const¶
-
template<>
- template <class EDGE_INTERANL_TYPE = int64_t, class NODE_INTERNAL_TYPE = int64_t>
-
class
UndirectedGraph¶ -
Public Types
-
typedef detail_graph::SimpleGraphNodeIter
NodeIter¶
-
typedef boost::counting_iterator<int64_t>
EdgeIter¶
-
typedef NodeStorage::const_iterator
AdjacencyIter¶
-
typedef ContiguousTag
EdgeIdTag¶
-
typedef ContiguousTag
NodeIdTag¶
Public Functions
-
UndirectedGraph(const uint64_t numberOfNodes = 0, const uint64_t reserveNumberOfEdges = 0)¶
-
void
assign(const uint64_t numberOfNodes = 0, const uint64_t reserveNumberOfEdges = 0)¶
-
int64_t
insertEdge(const int64_t u, const int64_t v)¶
-
int64_t
u(const int64_t e) const¶
-
int64_t
v(const int64_t e) const¶
-
int64_t
findEdge(const int64_t u, const int64_t v) const¶
-
int64_t
nodeIdUpperBound() const¶
-
int64_t
edgeIdUpperBound() const¶
-
uint64_t
numberOfEdges() const¶
-
uint64_t
numberOfNodes() const¶
-
UndirectedGraph<EDGE_INTERANL_TYPE, NODE_INTERNAL_TYPE>::NodeIter
nodesBegin() const¶
-
UndirectedGraph<EDGE_INTERANL_TYPE, NODE_INTERNAL_TYPE>::NodeIter
nodesEnd() const¶
-
UndirectedGraph<EDGE_INTERANL_TYPE, NODE_INTERNAL_TYPE>::EdgeIter
edgesBegin() const¶
-
UndirectedGraph<EDGE_INTERANL_TYPE, NODE_INTERNAL_TYPE>::EdgeIter
edgesEnd() const¶
-
UndirectedGraph<EDGE_INTERANL_TYPE, NODE_INTERNAL_TYPE>::AdjacencyIter
adjacencyBegin(const int64_t node) const¶
-
UndirectedGraph<EDGE_INTERANL_TYPE, NODE_INTERNAL_TYPE>::AdjacencyIter
adjacencyEnd(const int64_t node) const¶
-
UndirectedGraph<EDGE_INTERANL_TYPE, NODE_INTERNAL_TYPE>::AdjacencyIter
adjacencyOutBegin(const int64_t node) const¶
- template <class F>
-
void
forEachEdge(F &&f) const¶
- template <class F>
-
void
forEachNode(F &&f) const¶
-
uint64_t
serializationSize() const¶
- template <class ITER>
-
void
serialize(ITER iter) const¶
- template <class ITER>
-
void
deserialize(ITER iter)¶
-
UndirectedGraph<EDGE_INTERANL_TYPE, NODE_INTERNAL_TYPE>
extractSubgraphFromNodes(const marray::View<NODE_INTERNAL_TYPE> &nodeList, std::vector<EDGE_INTERANL_TYPE> &innerEdgesOut, std::vector<EDGE_INTERANL_TYPE> &outerEdgesOut) const¶
-
void
shrinkToFit()¶
Protected Types
-
typedef EDGE_INTERANL_TYPE
EdgeInternalType¶
-
typedef NODE_INTERNAL_TYPE
NodeInteralType¶
-
typedef detail_graph::UndirectedAdjacency<int64_t, int64_t, NodeInteralType, EdgeInternalType>
NodeAdjacency¶
-
typedef nifty::container::BoostFlatSet<NodeAdjacency>
NodeStorage¶
-
typedef std::pair<EdgeInternalType, EdgeInternalType>
EdgeStorage¶
Protected Functions
-
bool
insertEdgeOnlyInNodeAdj(const int64_t u, const int64_t v)¶
- template <class PER_THREAD_DATA_VEC>
-
void
mergeAdjacencies(PER_THREAD_DATA_VEC &perThreadDataVec, parallel::ThreadPool &threadpool)¶
-
typedef detail_graph::SimpleGraphNodeIter
- template <class CHILD_GRAPH, class NODE_ITER, class EDGE_ITER, class ADJACENCY_ITER>
-
class
UndirectedGraphBase¶ Public Types
-
typedef CHILD_GRAPH
ChildGraph¶
-
typedef UndirectedGraphBase<ChildGraph, NODE_ITER, EDGE_ITER, ADJACENCY_ITER>
Self¶
Public Functions
-
NodeIterRange<ChildGraph>
nodes() const¶
-
EdgeIterRange<ChildGraph>
edges() const¶
- template <class TAG>
-
detail_undirected_graph_base::GraphItemGeneralization<Self, TAG>::type
items() const¶
-
AdjacencyIterRange<ChildGraph>
adjacency(const int64_t node) const¶
-
AdjacencyIterRange<ChildGraph>
adjacencyIn(const int64_t node) const¶
-
AdjacencyIterRange<ChildGraph>
adjacencyOut(const int64_t node) const¶
-
ADJACENCY_ITER
adjacencyOutBegin(const int64_t node) const¶
-
ADJACENCY_ITER
adjacencyOutEnd(const int64_t node) const¶
-
ADJACENCY_ITER
adjacencyInBegin(const int64_t node) const¶
-
ADJACENCY_ITER
adjacencyInEnd(const int64_t node) const¶
- template <class NODE_LABELS, class EDGE_LABELS>
-
void
nodeLabelsToEdgeLabels(const NODE_LABELS &nodeLabels, EDGE_LABELS &edgeLabels)¶
- template <class F>
-
void
forEachEdge(F &&f) const¶
- template <class F>
-
void
forEachNode(F &&f) const¶
- template <class F, class TAG>
-
void
forEachItem(F &&f) const¶
-
typedef CHILD_GRAPH
- template <class EDGE_INTERANL_TYPE, class NODE_INTERNAL_TYPE>
-
struct
UndirectedGraphTypeHelper¶ Public Types
-
typedef EDGE_INTERANL_TYPE
EdgeInternalType¶
-
typedef NODE_INTERNAL_TYPE
NodeInteralType¶
-
typedef detail_graph::UndirectedAdjacency<int64_t, int64_t, NodeInteralType, EdgeInternalType>
NodeAdjacency¶
-
typedef nifty::container::FlatSet<NodeAdjacency>
NodeStorage¶
-
typedef std::pair<NodeInteralType, NodeInteralType>
EdgeStorage¶
-
typedef boost::counting_iterator<int64_t>
NodeIter¶
-
typedef boost::counting_iterator<int64_t>
EdgeIter¶
-
typedef NodeStorage::const_iterator
AdjacencyIter¶
-
typedef EDGE_INTERANL_TYPE
- template <std::size_t DIM, bool SIMPLE_NH>
-
class
UndirectedGridGraph¶
- template <std::size_t DIM>
-
template<>
classUndirectedGridGraph<DIM, true>¶ -
Public Types
-
typedef detail_graph::UndirectedGridGraphIter<DIM, true>::NodeIter
NodeIter¶
-
typedef detail_graph::UndirectedGridGraphIter<DIM, true>::EdgeIter
EdgeIter¶
-
typedef detail_graph::UndirectedGridGraphIter<DIM, true>::AdjacencyIter
AdjacencyIter¶
-
typedef ContiguousTag
EdgeIdTag¶
-
typedef ContiguousTag
NodeIdTag¶
Public Functions
-
UndirectedGridGraph()¶
-
int64_t
u(const int64_t e) const¶
-
int64_t
v(const int64_t e) const¶
-
int64_t
findEdge(const int64_t u, const int64_t v) const¶
-
int64_t
nodeIdUpperBound() const¶
-
int64_t
edgeIdUpperBound() const¶
-
uint64_t
numberOfEdges() const¶
-
uint64_t
numberOfNodes() const¶
-
AdjacencyIter
adjacencyBegin(const int64_t node) const¶
-
AdjacencyIter
adjacencyEnd(const int64_t node) const¶
-
AdjacencyIter
adjacencyOutBegin(const int64_t node) const¶
-
AdjacencyIter
adjacencyOutEnd(const int64_t node) const¶
- template <class F>
-
void
forEachEdge(F &&f) const¶
- template <class F>
-
void
forEachNode(F &&f) const¶
-
uint64_t
serializationSize() const¶
- template <class ITER>
-
void
serialize(ITER iter) const¶
- template <class ITER>
-
void
deserialize(ITER iter)¶
- template <class IMAGE, class BINARY_FUNCTOR, class EDGE_MAP>
-
void
imageToEdgeMap(const IMAGE &image, BINARY_FUNCTOR binaryFunctor, EDGE_MAP &edgeMap) const¶
- template <class IMAGE, class EDGE_MAP>
-
void
imageToInterpixelEdgeMap(const IMAGE &image, EDGE_MAP &edgeMap) const¶
-
CoordinateType
nodeToCoordinate(const uint64_t node) const¶
- template <class NODE_COORDINATE>
-
void
nodeToCoordinate(const uint64_t node, NODE_COORDINATE &coordinate) const¶
- template <class NODE_COORDINATE>
-
uint64_t
coordianteToNode(const NODE_COORDINATE &coordinate) const¶
Private Types
-
typedef AndresGridGraphType::VertexCoordinate
AndresVertexCoordinate¶
-
typedef detail_graph::UndirectedGridGraphIter<DIM, true>::NodeIter
- template <std::size_t DIM, bool SIMPLE_NH>
-
class
UndirectedGridGraphIter¶ Public Types
-
typedef AGridGraph::AdjacencyIterator
AGridGraphAdjacencyIter¶
-
typedef UndirectedAdjacency<int64_t, int64_t, int64_t, int64_t>
NodeAdjacency¶
-
typedef boost::transform_iterator<UnaryFunction, typename AGridGraph::AdjacencyIterator, NodeAdjacency, NodeAdjacency>
OldAdjacencyIter¶
-
typedef AGridGraph::AdjacencyIterator
- template <std::size_t DIM>
-
class
UndirectedLongRangeGridGraph¶ Inherits from nifty::graph::UndirectedGraph<>
Public Types
-
typedef std::vector<OffsetType>
OffsetVector¶
Public Functions
-
UndirectedLongRangeGridGraph(const ShapeType &shape, const OffsetVector &offsets)¶
-
auto
edgeOffsetIndex() const¶
- template <class D>
-
auto
nodeFeatureDiffereces(const xt::xexpression<D> &nodeFeaturesExpression) const¶
- template <class D>
-
auto
nodeFeatureDiffereces2(const xt::xexpression<D> &nodeFeaturesExpression) const¶
- template <class D>
-
auto
edgeValues(const xt::xexpression<D> &valuesExpression) const¶
- template <class NODE_COORDINATE>
-
uint64_t
coordianteToNode(const NODE_COORDINATE &coordinate) const¶
-
const auto &
shape() const¶
-
const auto &
offsets() const¶
Private Types
-
typedef detail_graph::UndirectedLongRangeGridGraphAssign<DIM>
HelperType¶
-
typedef std::vector<OffsetType>
-
struct
UnsortedTag¶
- template <class T = double>
-
class
VariationOfInformation¶ Public Types
-
typedef T
value_type¶
Public Functions
- template <class ITERATOR_TRUTH, class ITERATOR_PRED>
-
VariationOfInformation(ITERATOR_TRUTH begin0, ITERATOR_TRUTH end0, ITERATOR_PRED begin1, bool ignoreDefaultLabel = false)¶
-
value_type
value() const¶
-
value_type
valueFalseCut() const¶
-
value_type
valueFalseJoin() const¶
-
typedef T
-
class
VerboseTimer¶ Inherits from nifty::tools::Timer
Public Functions
-
VerboseTimer &
stopAndPrint()¶
-
VerboseTimer &
- template <class SOLVER>
-
class
VerboseVisitor¶ Inherits from nifty::graph::opt::common::VisitorBase< SOLVER >
Public Functions
-
VerboseVisitor(const int printNth = 1, const double timeLimitSolver = std::numeric_limits< double >::infinity(), const double timeLimitTotal = std::numeric_limits< double >::infinity(), const nifty::logging::LogLevel logLevel = nifty::logging::LogLevel::WARN)¶
-
virtual void
begin(SolverType *)¶
-
virtual bool
visit(SolverType *solver)¶
-
virtual void
end(SolverType *)¶
-
virtual void
clearLogNames()¶
-
void
stopOptimize()¶
-
double
runtimeSolver() const¶
-
double
runtimeTotal() const¶
-
double
timeLimitTotal() const¶
-
double
timeLimitSolver() const¶
Private Functions
-
void
checkRuntime()¶
-
- template <class T, bool isConst, class A>
-
class
View¶ Inherits from andres::ViewExpression< View< T, isConst, A >, T >
Public Types
-
typedef T
value_type¶
-
typedef marray_detail::IfBool<isConst, const T *, T *>::type
pointer¶
-
typedef const T *
const_pointer¶
-
typedef marray_detail::IfBool<isConst, const T&, T&>::type
reference¶
-
typedef const T &
const_reference¶
-
typedef std::reverse_iterator<const_iterator>
const_reverse_iterator¶
-
typedef ViewExpression<View<T, isConst, A>, T>
base¶
-
typedef
A::template rebind<value_type>::other andres::View::allocator_type
Public Functions
-
View(const allocator_type &allocator = allocator_type ())¶
- template <class ShapeIterator>
-
View(ShapeIterator begin, ShapeIterator end, pointer data, const CoordinateOrder &externalCoordinateOrder = defaultOrder, const CoordinateOrder &internalCoordinateOrder = defaultOrder, const allocator_type &allocator = allocator_type ())¶
- template <class ShapeIterator, class StrideIterator>
-
View(ShapeIterator begin, ShapeIterator end, StrideIterator it, pointer data, const CoordinateOrder &internalCoordinateOrder, const allocator_type &allocator = allocator_type ())¶
- template <class TLocal, bool isConstLocal, class ALocal>
-
View<T, isConst, A> &
operator=(const View<TLocal, isConstLocal, ALocal> &in)¶
- template <class E, class Te>
-
View<T, isConst, A> &
operator=(const ViewExpression<E, Te> &expression)¶
-
void
assign(const allocator_type &allocator = allocator_type ())¶
- template <class ShapeIterator>
-
void
assign(ShapeIterator begin, ShapeIterator end, pointer data, const CoordinateOrder &externalCoordinateOrder = defaultOrder, const CoordinateOrder &internalCoordinateOrder = defaultOrder, const allocator_type &allocator = allocator_type ())¶
- template <class ShapeIterator, class StrideIterator>
-
void
assign(ShapeIterator begin, ShapeIterator end, StrideIterator it, pointer data, const CoordinateOrder &internalCoordinateOrder, const allocator_type &allocator = allocator_type ())¶
-
const CoordinateOrder &
coordinateOrder() const¶
-
const bool
isSimple() const¶
- template <class TLocal, bool isConstLocal, class ALocal>
-
bool
overlaps(const View<TLocal, isConstLocal, ALocal> &v) const¶
-
View<T, isConst, A>::reference
operator()(const std::size_t c0, const std::size_t c1, const std::size_t c2)¶
-
View<T, isConst, A>::reference
operator()(const std::size_t c0, const std::size_t c1, const std::size_t c2) const¶
-
View<T, isConst, A>::reference
operator()(const std::size_t c0, const std::size_t c1, const std::size_t c2, const std::size_t c3)¶
-
View<T, isConst, A>::reference
operator()(const std::size_t c0, const std::size_t c1, const std::size_t c2, const std::size_t c3) const¶
-
View<T, isConst, A>::reference
operator()(const std::size_t c0, const std::size_t c1, const std::size_t c2, const std::size_t c3, const std::size_t c4)¶
-
View<T, isConst, A>::reference
operator()(const std::size_t c0, const std::size_t c1, const std::size_t c2, const std::size_t c3, const std::size_t c4) const¶
-
View<T, isConst, A>::reference
operator()(const std::size_t c0, const std::size_t c1, const std::size_t c2, const std::size_t c3, const std::size_t c4, const std::size_t c5, const std::size_t c6, const std::size_t c7, const std::size_t c8, const std::size_t c9)¶
-
View<T, isConst, A>::reference
operator()(const std::size_t c0, const std::size_t c1, const std::size_t c2, const std::size_t c3, const std::size_t c4, const std::size_t c5, const std::size_t c6, const std::size_t c7, const std::size_t c8, const std::size_t c9) const¶
- template <class BaseIterator, class ShapeIterator>
-
void
view(BaseIterator bit, ShapeIterator sit, View<T, isConst, A> &out) const¶
- template <class BaseIterator, class ShapeIterator>
-
void
view(BaseIterator bit, ShapeIterator sit, const CoordinateOrder &internalCoordinateOrder, View<T, isConst, A> &out) const¶
- template <class BaseIterator, class ShapeIterator>
-
View<T, isConst, A>
view(BaseIterator bit, ShapeIterator sit) const¶
- template <class BaseIterator, class ShapeIterator>
-
View<T, isConst, A>
view(BaseIterator bit, ShapeIterator sit, const CoordinateOrder &internalCoordinateOrder) const¶
- template <class BaseIterator, class ShapeIterator>
-
void
constView(BaseIterator bit, ShapeIterator sit, View<T, true, A> &out) const¶
- template <class BaseIterator, class ShapeIterator>
-
void
constView(BaseIterator bit, ShapeIterator sit, const CoordinateOrder &internalCoordinateOrder, View<T, true, A> &out) const¶
- template <class BaseIterator, class ShapeIterator>
-
View<T, true, A>
constView(BaseIterator bit, ShapeIterator sit) const¶
- template <class BaseIterator, class ShapeIterator>
-
View<T, true, A>
constView(BaseIterator bit, ShapeIterator sit, const CoordinateOrder &internalCoordinateOrder) const¶
- template <class ShapeIterator>
-
void
reshape(ShapeIterator begin, ShapeIterator end)¶
- template <class CoordinateIterator>
-
void
permute(CoordinateIterator begin)¶
-
void
transpose()¶
-
void
shift(const int n)¶
-
void
squeeze()¶
- template <class ShapeIterator>
-
View<T, isConst, A>
reshapedView(ShapeIterator begin, ShapeIterator end) const¶
- template <class CoordinateIterator>
-
View<T, isConst, A>
permutedView(CoordinateIterator begin) const¶
- template <class CoordinateIterator>
-
void
coordinatesToIndex(CoordinateIterator it, std::size_t &out) const¶
- template <class CoordinateIterator>
-
void
coordinatesToOffset(CoordinateIterator it, std::size_t &out) const¶
- template <class CoordinateIterator>
-
void
indexToCoordinates(std::size_t index, CoordinateIterator outit) const¶
-
std::string
asString(const StringStyle &style = MatrixStyle) const¶
Private Types
-
typedef marray_detail::Geometry<A>
geometry_type¶
Private Functions
-
View(pointer data, const geometry_type &geometry)¶
-
void
updateSimplicity()¶
-
void
testInvariant() const¶
Friends
-
friend
andres::View::View
-
friend
andres::View::Marray
-
typedef T
- template <class E, class T>
-
class
ViewExpression¶ -
Public Functions
-
const CoordinateOrder &
coordinateOrder() const¶
-
const bool
isSimple() const¶
- template <class Accessor>
-
const T &
operator()(Accessor it) const¶
-
const T &
operator()(const std::size_t c0, const std::size_t c1, const std::size_t c2, const std::size_t c3) const¶
-
const T &
operator()(const std::size_t c0, const std::size_t c1, const std::size_t c2, const std::size_t c3, const std::size_t c4) const¶
-
template<>
operator E&()¶
-
operator E const&() const¶
-
const CoordinateOrder &
- template <class SOLVER>
-
class
VisitorBase¶ Subclassed by nifty::graph::opt::common::EmptyVisitor< SOLVER >, nifty::graph::opt::common::LoggingVisitor< SOLVER >, nifty::graph::opt::common::VerboseVisitor< SOLVER >, nifty::graph::opt::lifted_multicut::PyLiftedMulticutVisitorBase< OBJECTIVE >, nifty::graph::opt::mincut::PyMincutVisitorBase< OBJECTIVE >, nifty::graph::opt::minstcut::PyMinstcutVisitorBase< OBJECTIVE >, nifty::graph::opt::multicut::PyMulticutVisitorBase< OBJECTIVE >, nifty::graph::opt::multicut::PyMulticutVisitorBase< OBJECTIVE >
Public Types
-
typedef SOLVER
SolverType¶
Public Functions
-
virtual void
begin(SolverType *solver) = 0¶
-
virtual bool
visit(SolverType *solver) = 0¶
-
virtual void
end(SolverType *solver) = 0¶
-
virtual void
clearLogNames()¶
-
typedef SOLVER
- template <class SOLVER>
-
class
VisitorProxy¶ -
Public Functions
-
VisitorProxy(VisitorBaseTpe *visitor)¶
-
void
begin(SolverType *solver)¶
-
bool
visit(SolverType *solver)¶
-
void
end(SolverType *solver)¶
-
void
clearLogNames()¶
-
operator bool() const¶
Private Members
-
VisitorBaseTpe *
visitor_¶
-
- template <class OBJECTIVE>
-
class
WatershedProposalGenerator¶ Inherits from nifty::graph::opt::common::ProposalGeneratorBase< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef
GraphType:: template NodeMap<uint64_t> nifty::graph::opt::common::WatershedProposalGenerator::ProposalType
-
typedef
GraphType:: template EdgeMap<float> nifty::graph::opt::common::WatershedProposalGenerator::EdgeWeights
Public Functions
-
WatershedProposalGenerator(const ObjectiveType &objective, const size_t numberOfThreads, const SettingsType &settings = SettingsType ())¶
-
void
reset()¶
-
virtual
~WatershedProposalGenerator()¶
-
virtual void
generateProposal(const ProposalType ¤tBest, ProposalType &proposal, const size_t tid)¶
-
typedef OBJECTIVE
- template <class OBJECTIVE>
-
class
WatershedProposalGenerator¶ Inherits from nifty::graph::opt::lifted_multicut::ProposalGeneratorBase< OBJECTIVE >
Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef LiftedMulticutBase<ObjectiveType>
LiftedMulticutBaseType¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef ObjectiveType::LiftedGraphType
LiftedGraphType¶
-
typedef LiftedMulticutBaseType::NodeLabelsType
NodeLabelsType¶
-
typedef
GraphType:: template EdgeMap<float> nifty::graph::opt::lifted_multicut::WatershedProposalGenerator::EdgeWeights
Public Functions
-
WatershedProposalGenerator(const ObjectiveType &objective, const size_t numberOfThreads, const SettingsType &settings = SettingsType ())¶
-
void
reset()¶
-
virtual
~WatershedProposalGenerator()¶
-
virtual void
generateProposal(const NodeLabelsType ¤tBest, NodeLabelsType &proposal, const size_t tid)¶
-
typedef OBJECTIVE
- template <class OBJECTIVE>
-
class
WatershedProposals¶ Public Types
-
typedef OBJECTIVE
ObjectiveType¶
-
typedef ObjectiveType::GraphType
GraphType¶
-
typedef MulticutBase<ObjectiveType>
Base¶
-
typedef MulticutGreedyAdditive<ObjectiveType>
Solver¶
-
typedef
GraphType:: template EdgeMap<double> nifty::graph::opt::multicut::WatershedProposals::EdgeWeights
Public Functions
-
WatershedProposals(const ObjectiveType &objective, const SettingsType &settings, const size_t threadIndex)¶
-
~WatershedProposals()¶
-
void
generate(const NodeLabelsType ¤tBest, NodeLabelsType &proposal)¶
-
void
reset()¶
Private Members
-
const ObjectiveType &
objective_¶
-
EdgeWeights
weights_¶
-
NodeLabelsType
seeds_¶
-
SettingsType
settings_¶
-
size_t
threadIndex_¶
-
size_t
proposalNumber_¶
-
typedef OBJECTIVE
-
class
WeightsChangedNotSupported¶ Inherits from runtime_error
-
namespace
andres¶ Enums
Functions
- template <class T1, class T2, bool isConst, class A>
-
View<T1, false, A> &
operator+=(View<T1, false, A> &v, const View<T2, isConst, A> &w)¶
- template <class T1, class T2, bool isConst, class A>
-
View<T1, false, A> &
operator-=(View<T1, false, A> &v, const View<T2, isConst, A> &w)¶
- template <class T1, class T2, bool isConst, class A>
-
View<T1, false, A> &
operator*=(View<T1, false, A> &v, const View<T2, isConst, A> &w)¶
- template <class T1, class T2, bool isConst, class A>
-
View<T1, false, A> &
operator/=(View<T1, false, A> &v, const View<T2, isConst, A> &w)¶
- template <class E1, class T1, class E2, class T2>
-
const BinaryViewExpression<E1, T1, E2, T2, marray_detail::Plus<T1, T2, typename marray_detail::PromoteType<T1, T2>::type>>
operator+(const ViewExpression<E1, T1> &expression1, const ViewExpression<E2, T2> &expression2)¶
- template <class E, class T>
-
const ViewExpression<E, T> &
operator+(const ViewExpression<E, T> &expression)¶
- template <class E1, class T1, class E2, class T2>
-
const BinaryViewExpression<E1, T1, E2, T2, marray_detail::Minus<T1, T2, typename marray_detail::PromoteType<T1, T2>::type>>
operator-(const ViewExpression<E1, T1> &expression1, const ViewExpression<E2, T2> &expression2)¶
- template <class E, class T>
-
const UnaryViewExpression<E, T, marray_detail::Negate<T>>
operator-(const ViewExpression<E, T> &expression)¶
- template <class E1, class T1, class E2, class T2>
-
const BinaryViewExpression<E1, T1, E2, T2, marray_detail::Times<T1, T2, typename marray_detail::PromoteType<T1, T2>::type>>
operator*(const ViewExpression<E1, T1> &expression1, const ViewExpression<E2, T2> &expression2)¶
- template <class E1, class T1, class E2, class T2>
-
const BinaryViewExpression<E1, T1, E2, T2, marray_detail::DividedBy<T1, T2, typename marray_detail::PromoteType<T1, T2>::type>>
operator/(const ViewExpression<E1, T1> &expression1, const ViewExpression<E2, T2> &expression2)¶
Variables
-
const bool
Const= true¶
-
const bool
Mutable= false¶
-
const CoordinateOrder
defaultOrder= FirstMajorOrder¶
-
const InitializationSkipping
SkipInitialization= InitializationSkipping()¶
-
const bool
MARRAY_NO_DEBUG= true¶
-
const bool
MARRAY_NO_ARG_TEST= true¶
-
namespace
hdf5¶ Enums
Functions
-
hid_t
createFile(const std::string &filename, HDF5Version hdf5version = DEFAULT_HDF5_VERSION)¶
-
hid_t
openFile(const std::string &filename, FileAccessMode fileAccessMode = READ_ONLY, HDF5Version hdf5version = DEFAULT_HDF5_VERSION)¶
-
void
closeFile(const hid_t &handle)¶
-
void
closeGroup(const hid_t &handle)¶
- template <class T>
-
void
save(const hid_t &groupHandle, const std::string &datasetName, const Marray<T> &in)¶
- template <class T, bool isConst>
-
void
save(const hid_t &groupHandle, const std::string &datasetName, const View<T, isConst> &in)¶
- template <class T>
-
void
save(const hid_t &groupHandle, const std::string &datasetName, const std::vector<T> &in)¶
- template <class T, class BaseIterator, class ShapeIterator>
-
void
saveHyperslab(const hid_t &groupHandle, const std::string &datasetName, BaseIterator baseBegin, BaseIterator baseEnd, ShapeIterator shapeBegin, const Marray<T> &in)¶
- template <class T, class ShapeIterator>
-
void
create(const hid_t &groupHandle, const std::string &datasetName, ShapeIterator begin, ShapeIterator end, CoordinateOrder coordinateOrder)¶
- template <class T>
-
void
load(const hid_t &groupHandle, const std::string &datasetName, Marray<T> &out)¶
- template <class T>
-
void
load(const hid_t &groupHandle, const std::string &datasetName, std::vector<T> &out)¶
- template <class T>
-
void
load(const std::string &filename, const std::string &datasetName, Marray<T> &out, HDF5Version hdf5version = DEFAULT_HDF5_VERSION)¶
- template <class T>
-
void
load(const std::string &filename, const std::string &datasetName, std::vector<T> &out, HDF5Version hdf5version = DEFAULT_HDF5_VERSION)¶
Variables
-
const char
reverseShapeAttributeName[14] = "reverse-shape"¶
-
hid_t
-
namespace
half_float¶
-
namespace
detail¶ Classification helpers
- template <typename T>
-
bool
builtin_isinf(T arg)¶
- template <typename T>
-
bool
builtin_isnan(T arg)¶
- template <typename T>
-
bool
builtin_signbit(T arg)¶
Conversion
Comparison operators
Arithmetic operators
- template <typename T>
-
HALF_CONSTEXPR enable<T,T>::type half_float::detail::operator+(T arg)
- template <typename T>
-
HALF_CONSTEXPR enable<T,T>::type half_float::detail::operator-(T arg)
Input and output
Basic mathematical operations
Exponential functions
Power functions
Trigonometric functions
Hyperbolic functions
Error and gamma functions
Rounding
Floating point manipulation
Floating point classification
Comparison
Casting
- template <typename T, typename U>
-
T
half_cast(U arg)¶
- template <typename T, std::float_round_style R, typename U>
-
T
half_cast(U arg)¶
Typedefs
-
typedef unsigned short
uint16¶
Variables
-
HALF_CONSTEXPR_CONST binary_t half_float::detail::binary= binary_t()
-
namespace
hdf5¶
-
namespace
nifty¶ Typedefs
-
typedef half_float::half
float16_t¶
-
typedef float
float32_t¶
-
typedef half_float::half
float64_t¶
-
typedef half_float::half
-
namespace
array¶ Typedefs
-
using
nifty::array::StaticArray = typedef ArrayExtender< StaticArrayBase<T,SIZE> >
-
using
nifty::array::Vector = typedef ArrayExtender< std::vector<T,ALLOCATOR> >
Functions
- template <class STREAM, class ARRAY_CLASS>
-
STREAM &
operator<<(STREAM &out, const ArrayExtender<ARRAY_CLASS> &array)¶
-
nifty::array::NIFTY_MACRO_BINARY_OP_INPLACE(+)
-
nifty::array::NIFTY_MACRO_BINARY_OP_INPLACE(-)
-
NIFTY_MACRO_BINARY_OP_INPLACE* nifty::array::NIFTY_MACRO_BINARY_OP_INPLACE(/)
-
nifty::array::NIFTY_MACRO_BINARY_OP_INPLACE(|)
-
nifty::array::NIFTY_MACRO_BINARY_OP(+, +)
-
nifty::array::NIFTY_MACRO_BINARY_OP(-, -)
-
NIFTY_MACRO_BINARY_OP* nifty::array::NIFTY_MACRO_BINARY_OP(/, /)
-
nifty::array::NIFTY_MACRO_BINARY_OP(|, |)
-
using
-
namespace
cgp¶ Functions
- template <T>
-
void
cell1ProbabilityPropagation2D(const nifty::marray::View<T> &probabilitiesIn, const CellBoundsVector<2, 0> &cell0Bounds, const CellBoundedByVector<2, 1> &cell1BoundedBy, nifty::marray::View<T> &probabilitiesOut, const float thresholdLow = 0.3, const float thresholdHigh = 0.5, const float damping = 0.1)¶
-
namespace
container¶ Typedefs
-
using
nifty::container::BoostFlatMap = typedef __nifty_mapimpl__<KEY, VALUE>
-
using
nifty::container::BoostFlatSet = typedef __nifty_setimpl__<T>
-
using
-
namespace
exceptions¶
-
namespace
features¶
-
namespace
detail_fastfilters¶
-
namespace
filters¶
-
namespace
graph¶ Typedefs
-
using
nifty::graph::BreadthFirstSearch = typedef detail_graph::SearchImpl<GRAPH, detail_graph::FiFo<int64_t> >
-
using
nifty::graph::DepthFirstSearch = typedef detail_graph::SearchImpl<GRAPH, detail_graph::LiFo<int64_t> >
-
using
nifty::graph::ExplicitLabelsGridRag = typedef GridRag<DIM, ExplicitLabels<DIM, LABEL_TYPE> >
-
using
nifty::graph::PyContractionGraph = typedef EdgeContractionGraphWithSets< BASE_GRAPH, FlexibleCallback, std::set<uint64_t> >
-
typedef UndirectedGraph
PyUndirectedGraph¶
Functions
- template <class GRAPH, class EDGE_WEIGHTS, class SEEDS, class LABELS>
-
void
edgeWeightedWatershedsSegmentation(const GRAPH &g, const EDGE_WEIGHTS &edgeWeights, const SEEDS &seeds, LABELS &labels)¶
- template <class GRAPH, class EDGE_WEIGHTS, class SEEDS, class LABELS>
-
void
carvingSegmentation(const GRAPH &g, const EDGE_WEIGHTS &edgeWeights, const SEEDS &seeds, const typename LABELS::value_type backgroundLabel, const typename EDGE_WEIGHTS::value_type backgroundBias, const typename EDGE_WEIGHTS::value_type noPriorBelow, LABELS &labels)¶
- template <class GRAPH, class NODE_WEIGHTS, class SEEDS, class LABELS>
-
void
nodeWeightedWatershedsSegmentation(const GRAPH &g, const NODE_WEIGHTS &nodeWeights, const SEEDS &seeds, LABELS &labels)¶
- template <class GRAPH, class ITERATOR>
-
int64_t
findChord(const GRAPH &graph, ITERATOR begin, ITERATOR end, const bool ignoreEdgeBetweenFirstAndLast = false)¶
- template <class GRAPH, class SUBGRAPH_MASK, class ITERATOR>
-
int64_t
findChord(const GRAPH &graph, const SUBGRAPH_MASK &mask, ITERATOR begin, ITERATOR end, const bool ignoreEdgeBetweenFirstAndLast = false)¶
- template <class PREDECESSORS_MAP, class OUT_ITER>
-
size_t
buildPathInLargeEnoughBuffer(const uint64_t source, const uint64_t target, const PREDECESSORS_MAP &predecessorMap, OUT_ITER largeEnoughBufferBegin)¶
- template <class GRAPH, class CUT_PROBS, class CUT_PROBS_OUT>
-
void
edgeWeightedWatershedsSegmentationImpl(const GRAPH &g, const CUT_PROBS &cutProbs, CUT_PROBS_OUT &cutProbsOut)¶
- template <class COORD>
-
COORD
makeCoord2(const COORD &coord, const size_t axis)¶
- template <class T, class U>
-
T
replaceIfNotFinite(const T &val, const U &replaceVal)¶
- template <class EDGE_ACC_CHAIN, std::size_t DIM, class LABELS_PROXY, class DATA, class F>
-
void
accumulateEdgeFeaturesWithAccChain(const GridRag<DIM, LABELS_PROXY> &rag, const DATA &data, const array::StaticArray<int64_t, DIM> &blockShape, const parallel::ParallelOptions &pOpts, parallel::ThreadPool &threadpool, F &&f, const AccOptions &accOptions = AccOptions ())¶
- template <class EDGE_ACC_CHAIN, class NODE_ACC_CHAIN, std::size_t DIM, class LABELS_PROXY, class DATA, class F>
-
void
accumulateEdgeAndNodeFeaturesWithAccChainSaveMemory(const GridRag<DIM, LABELS_PROXY> &rag, const DATA &data, const array::StaticArray<int64_t, DIM> &blockShape, const parallel::ParallelOptions &pOpts, parallel::ThreadPool &threadpool, F &&f, const AccOptions &accOptions = AccOptions ())¶
- template <class EDGE_ACC_CHAIN, class NODE_ACC_CHAIN, std::size_t DIM, class LABELS_PROXY, class DATA, class F>
-
void
accumulateEdgeAndNodeFeaturesWithAccChain(const GridRag<DIM, LABELS_PROXY> &rag, const DATA &data, const array::StaticArray<int64_t, DIM> &blockShape, const parallel::ParallelOptions &pOpts, parallel::ThreadPool &threadpool, F &&f, const AccOptions &accOptions = AccOptions ())¶
- template <class EDGE_ACC_CHAIN, class NODE_ACC_CHAIN, std::size_t DIM, class LABELS_PROXY, class F>
-
void
accumulateEdgeAndNodeFeaturesWithAccChain(const GridRag<DIM, LABELS_PROXY> &rag, const array::StaticArray<int64_t, DIM> &blockShape, const parallel::ParallelOptions &pOpts, parallel::ThreadPool &threadpool, F &&f)¶
- template <class NODE_ACC_CHAIN, std::size_t DIM, class LABELS_PROXY, class DATA, class F>
-
void
accumulateNodeFeaturesWithAccChain(const GridRag<DIM, LABELS_PROXY> &rag, const DATA &data, const array::StaticArray<int64_t, DIM> &blockShape, const parallel::ParallelOptions &pOpts, parallel::ThreadPool &threadpool, F &&f, const AccOptions &accOptions = AccOptions ())¶
- template <class NODE_ACC_CHAIN, std::size_t DIM, class LABELS_PROXY, class F>
-
void
accumulateNodeFeaturesWithAccChain(const GridRag<DIM, LABELS_PROXY> &rag, const array::StaticArray<int64_t, DIM> &blockShape, const parallel::ParallelOptions &pOpts, parallel::ThreadPool &threadpool, F &&f)¶
- template <std::size_t DIM, class LABELS_PROXY, class DATA, class FEATURE_TYPE>
-
void
accumulateMeanAndLength(const GridRag<DIM, LABELS_PROXY> &rag, const DATA &data, const array::StaticArray<int64_t, DIM> &blockShape, marray::View<FEATURE_TYPE> &edgeFeaturesOut, marray::View<FEATURE_TYPE> &nodeFeaturesOut, const int numberOfThreads = -1, const bool saveMemory = false)¶
- template <std::size_t DIM, class LABELS_PROXY, class DATA, class FEATURE_TYPE>
-
void
accumulateEdgeMeanAndLength(const GridRag<DIM, LABELS_PROXY> &rag, const DATA &data, const array::StaticArray<int64_t, DIM> &blockShape, marray::View<FEATURE_TYPE> &out, const int numberOfThreads = -1)¶
- template <std::size_t DIM, class LABELS_PROXY, class DATA, class FEATURE_TYPE>
-
void
accumulateStandartFeatures(const GridRag<DIM, LABELS_PROXY> &rag, const DATA &data, const double minVal, const double maxVal, const array::StaticArray<int64_t, DIM> &blockShape, marray::View<FEATURE_TYPE> &edgeFeaturesOut, marray::View<FEATURE_TYPE> &nodeFeaturesOut, const int numberOfThreads = -1)¶
- template <std::size_t DIM, class LABELS_PROXY, class DATA, class FEATURE_TYPE>
-
void
accumulateEdgeStandartFeatures(const GridRag<DIM, LABELS_PROXY> &rag, const DATA &data, const double minVal, const double maxVal, const array::StaticArray<int64_t, DIM> &blockShape, marray::View<FEATURE_TYPE> &edgeFeaturesOut, const int numberOfThreads = -1)¶
- template <std::size_t DIM, class LABELS_PROXY, class DATA, class FEATURE_TYPE>
-
void
accumulateNodeStandartFeatures(const GridRag<DIM, LABELS_PROXY> &rag, const DATA &data, const double minVal, const double maxVal, const array::StaticArray<int64_t, DIM> &blockShape, marray::View<FEATURE_TYPE> &nodeFeaturesOut, const int numberOfThreads = -1)¶
- template <std::size_t DIM, class LABELS_PROXY, class FEATURE_TYPE>
-
void
accumulateGeometricNodeFeatures(const GridRag<DIM, LABELS_PROXY> &rag, const array::StaticArray<int64_t, DIM> &blockShape, marray::View<FEATURE_TYPE> &nodeFeaturesOut, const int numberOfThreads = -1)¶
- template <std::size_t DIM, class LABELS_PROXY, class FEATURE_TYPE>
-
void
accumulateGeometricEdgeFeatures(const GridRag<DIM, LABELS_PROXY> &rag, const array::StaticArray<int64_t, DIM> &blockShape, marray::View<FEATURE_TYPE> &edgeFeaturesOut, const int numberOfThreads = -1)¶
- template <size_t DIM, class LABELS_TYPE, class LABELS, class NODE_MAP>
-
void
gridRagAccumulateLabels(const ExplicitLabelsGridRag<DIM, LABELS_TYPE> &graph, nifty::marray::View<LABELS> data, NODE_MAP &nodeMap)¶
- template <size_t DIM, class LABELS_TYPE, class PIXEL_ARRAY, class NODE_MAP>
-
void
projectScalarNodeDataToPixels(const ExplicitLabelsGridRag<DIM, LABELS_TYPE> &graph, NODE_MAP &nodeData, PIXEL_ARRAY &pixelData, const int numberOfThreads = -1)¶
-
using
-
namespace
agglo¶
-
namespace
merge_rules¶
-
namespace
detail_graph¶ Functions
- template <class GRAPH, class NODE_MAP>
-
boost::transform_iterator<NodeLabelsToEdgeLabelsUnaryFunction<GRAPH, NODE_MAP>, typename GRAPH::EdgeIter, const uint8_t&, uint8_t>
nodeLabelsToEdgeLabelsIterBegin(const GRAPH &graph, const NODE_MAP &nodeLabels)¶
-
namespace
graph_maps¶
-
namespace
opt¶
-
namespace
common¶
-
namespace
detail_cc_fusion¶
-
namespace
higher_order_multicut¶
-
namespace
lifted_multicut¶ Typedefs
-
using
nifty::graph::opt::lifted_multicut::LiftedMulticutVisitorBase = typedef nifty::graph::opt::common::VisitorBase< LiftedMulticutBase<OBJECTIVE> >
-
using
nifty::graph::opt::lifted_multicut::LiftedMulticutVerboseVisitor = typedef nifty::graph::opt::common::VerboseVisitor< LiftedMulticutBase<OBJECTIVE> >
-
using
nifty::graph::opt::lifted_multicut::LiftedMulticutEmptyVisitor = typedef nifty::graph::opt::common::EmptyVisitor< LiftedMulticutBase<OBJECTIVE> >
-
using
nifty::graph::opt::lifted_multicut::LiftedMulticutVisitorProxy = typedef nifty::graph::opt::common::VisitorProxy< LiftedMulticutBase<OBJECTIVE> >
-
using
nifty::graph::opt::lifted_multicut::PyDefaultMulticutObjective = typedef LiftedMulticutObjective<GRAPH, double>
Functions
- template <class LIFTED_MULTICUT_OBJECTIVE, class EDGE_INDICATORS, class EDGE_SIZES, class NODE_SIZES, class OUT>
-
void
liftedUcmFeatures(const LIFTED_MULTICUT_OBJECTIVE &objective, const EDGE_INDICATORS &edgeIndicators, const EDGE_SIZES &edgeSizes, const NODE_SIZES &nodeSizes, std::vector<double> sizeRegularizers, OUT &out)¶
- template <class LIFTED_MULTICUT_OBJECTIVE, class EDGE_INDICATORS, class EDGE_SIZES, class NODE_SIZES, class OUT>
-
void
liftedShortedPathFeatures(const LIFTED_MULTICUT_OBJECTIVE &objective, const EDGE_INDICATORS &edgeIndicators, std::vector<double> offsets, OUT &out, const int nThreads = -1)¶
- template <class D_WEIGHTS, class D_OFFSETS>
-
auto
pixel_wise_lmc_edge_gt_2d(const xt::xexpression<D_WEIGHTS> &e_gt, const xt::xexpression<D_OFFSETS> &e_offsets)¶
-
using
-
namespace
mincut¶ Typedefs
-
using
nifty::graph::opt::mincut::MincutVisitorBase = typedef nifty::graph::opt::common::VisitorBase< MincutBase<OBJECTIVE> >
-
using
nifty::graph::opt::mincut::MincutVerboseVisitor = typedef nifty::graph::opt::common::VerboseVisitor< MincutBase<OBJECTIVE> >
-
using
nifty::graph::opt::mincut::MincutEmptyVisitor = typedef nifty::graph::opt::common::EmptyVisitor< MincutBase<OBJECTIVE> >
-
using
nifty::graph::opt::mincut::MincutVisitorProxy = typedef nifty::graph::opt::common::VisitorProxy< MincutBase<OBJECTIVE> >
-
using
nifty::graph::opt::mincut::PyDefaultMincutObjective = typedef MincutObjective<GRAPH, double>
-
using
-
namespace
minstcut¶ Typedefs
-
using
nifty::graph::opt::minstcut::MinstcutVisitorBase = typedef nifty::graph::opt::common::VisitorBase< MinstcutBase<OBJECTIVE> >
-
using
nifty::graph::opt::minstcut::MinstcutVerboseVisitor = typedef nifty::graph::opt::common::VerboseVisitor< MinstcutBase<OBJECTIVE> >
-
using
nifty::graph::opt::minstcut::MinstcutEmptyVisitor = typedef nifty::graph::opt::common::EmptyVisitor< MinstcutBase<OBJECTIVE> >
-
using
nifty::graph::opt::minstcut::MinstcutVisitorProxy = typedef nifty::graph::opt::common::VisitorProxy< MinstcutBase<OBJECTIVE> >
-
using
nifty::graph::opt::minstcut::PyDefaultMinstcutObjective = typedef MinstcutObjective<GRAPH, double>
-
using
-
namespace
multicut¶ Typedefs
-
using
nifty::graph::opt::multicut::MulticutVisitorBase = typedef nifty::graph::opt::common::VisitorBase< MulticutBase<OBJECTIVE> >
-
using
nifty::graph::opt::multicut::MulticutVerboseVisitor = typedef nifty::graph::opt::common::VerboseVisitor< MulticutBase<OBJECTIVE> >
-
using
nifty::graph::opt::multicut::MulticutEmptyVisitor = typedef nifty::graph::opt::common::EmptyVisitor< MulticutBase<OBJECTIVE> >
-
using
nifty::graph::opt::multicut::MulticutVisitorProxy = typedef nifty::graph::opt::common::VisitorProxy< MulticutBase<OBJECTIVE> >
-
using
nifty::graph::opt::multicut::PyDefaultMulticutObjective = typedef MulticutObjective<GRAPH, double>
-
using
-
namespace
subgraph_masks¶
-
namespace
ground_truth¶ Functions
- template <class T, class U>
-
void
segToEdges2D(const marray::View<T> &segmentation, marray::View<U> &edges)¶
- template <class T_SEG>
-
void
seg2dToLiftedEdges(const marray::View<T_SEG> &segmentation, std::vector<std::array<int32_t, 2>> &edges, marray::View<uint8_t> &liftedEdgesState)¶
- template <class T_SEG>
-
void
seg3dToLiftedEdges(const marray::View<T_SEG> &segmentation, std::vector<std::array<int32_t, 3>> &edges, const int32_t z, marray::View<uint8_t> &liftedEdgesState)¶
-
namespace
hdf5¶ Functions
-
hid_t
createFile(const std::string &filename, const CacheSettings &cacheSettings, HDF5Version hdf5version = DEFAULT_HDF5_VERSION)¶
-
hid_t
openFile(const std::string &filename, const CacheSettings &cacheSettings, FileAccessMode fileAccessMode = READ_ONLY, HDF5Version hdf5version = DEFAULT_HDF5_VERSION)¶
-
hid_t
-
namespace
tools¶
-
namespace
histogram¶ Functions
- template <class HISTOGRAM, class RANK_ITER, class OUT_ITER>
-
void
quantiles(const HISTOGRAM &histogram, RANK_ITER ranksBegin, RANK_ITER ranksEnd, OUT_ITER outIter)¶
-
namespace
ilp_backend¶
-
namespace
logging¶ Enums
-
namespace
marray¶
-
namespace
math¶
-
namespace
meta¶
-
namespace
parallel¶ Functions
- template <class ITER, class F>
-
void
parallel_foreach_impl(ThreadPool &pool, const std::ptrdiff_t nItems, ITER iter, ITER end, F &&f, std::random_access_iterator_tag)¶
- template <class ITER, class F>
-
void
parallel_foreach_impl(ThreadPool &pool, const std::ptrdiff_t nItems, ITER iter, ITER end, F &&f, std::forward_iterator_tag)¶
- template <class ITER, class F>
-
void
parallel_foreach_impl(ThreadPool &pool, const std::ptrdiff_t nItems, ITER iter, ITER end, F &&f, std::input_iterator_tag)¶
- template <class ITER, class F>
-
void
parallel_foreach_single_thread(ITER begin, ITER end, F &&f, const std::ptrdiff_t nItems = 0)¶
- template <class ITER, class F>
-
void
parallel_foreach(ThreadPool &pool, ITER begin, ITER end, F &&f, const std::ptrdiff_t nItems = 0)¶
- template <class ITER, class F>
-
void
parallel_foreach(int64_t nThreads, ITER begin, ITER end, F &&f, const std::ptrdiff_t nItems = 0)¶
- template <class F>
-
void
parallel_foreach(ThreadPool &threadpool, std::ptrdiff_t nItems, F &&f)¶
-
namespace
tools¶ Functions
- template <class LABEL_TYPE, std::size_t DIM, class COORD>
-
void
readSubarray(const graph::ExplicitLabels<DIM, LABEL_TYPE> &labels, const COORD &beginCoord, const COORD &endCoord, marray::View<LABEL_TYPE> &subarray)¶
- template <class LABEL_TYPE, std::size_t DIM, class COORD>
-
void
readSubarray(const graph::Hdf5Labels<DIM, LABEL_TYPE> &labels, const COORD &beginCoord, const COORD &endCoord, marray::View<LABEL_TYPE> &subarray)¶
- template <class T, class COORD>
-
void
readSubarray(const hdf5::Hdf5Array<T> &array, const COORD &beginCoord, const COORD &endCoord, marray::View<T> &subarray)¶
- template <class T, class COORD>
-
void
writeSubarray(hdf5::Hdf5Array<T> &array, const COORD &beginCoord, const COORD &endCoord, const marray::View<T> &subarray)¶
- template <class T, class COORD>
-
void
readSubarrayLocked(const hdf5::Hdf5Array<T> &array, const COORD &beginCoord, const COORD &endCoord, marray::View<T> &subarray)¶
- template <class T, class COORD>
-
void
writeSubarrayLocked(hdf5::Hdf5Array<T> &array, const COORD &beginCoord, const COORD &endCoord, const marray::View<T> &subarray)¶
- template <class T, class COORD>
-
void
readSubarray(const marray::View<T> array, const COORD &beginCoord, const COORD &endCoord, marray::View<T> &subarray)¶
- template <class T, class COORD>
-
void
writeSubarray(marray::View<T> array, const COORD &beginCoord, const COORD &endCoord, const marray::View<T> &data)¶
- template <class T, class COORD>
-
void
readSubarrayLocked(const marray::View<T> array, const COORD &beginCoord, const COORD &endCoord, marray::View<T> &subarray)¶
- template <class T, class COORD>
-
void
writeSubarrayLocked(marray::View<T> array, const COORD &beginCoord, const COORD &endCoord, const marray::View<T> &data)¶
- template <size_t DIM, class SHAPE_T, class BLOCK_SHAPE_T, class F>
-
void
parallelForEachBlock(parallel::ThreadPool &threadpool, const array::StaticArray<SHAPE_T, DIM> &shape, const array::StaticArray<BLOCK_SHAPE_T, DIM> &blockShape, F &&f)¶
- template <size_t DIM, class SHAPE_T, class BLOCK_SHAPE_T, class OVERLAP_SHAPE_T, class F>
-
void
parallelForEachBlockWithOverlap(parallel::ThreadPool &threadpool, const array::StaticArray<SHAPE_T, DIM> &shape, const array::StaticArray<BLOCK_SHAPE_T, DIM> &blockShape, const array::StaticArray<OVERLAP_SHAPE_T, DIM> &overlapBegin, const array::StaticArray<OVERLAP_SHAPE_T, DIM> &overlapEnd, F &&f)¶
- template <class SHAPE_T, class F>
-
void
forEachCoordinateImpl(const array::StaticArray<SHAPE_T, 1> &shape, F &&f, bool firstCoordinateMajorOrder = true)¶
- template <class SHAPE_T, class F>
-
void
forEachCoordinateImpl(const array::StaticArray<SHAPE_T, 1> &shapeBegin, const array::StaticArray<SHAPE_T, 1> &shapeEnd, F &&f, bool firstCoordinateMajorOrder = true)¶
- template <class SHAPE_T, class F>
-
void
forEachCoordinateImpl(const array::StaticArray<SHAPE_T, 2> &shape, F &&f, bool firstCoordinateMajorOrder = true)¶
- template <class SHAPE_T, class F>
-
void
forEachCoordinateImpl(const array::StaticArray<SHAPE_T, 2> &shapeBegin, const array::StaticArray<SHAPE_T, 2> &shapeEnd, F &&f, bool firstCoordinateMajorOrder = true)¶
- template <class SHAPE_T, class F>
-
void
forEachCoordinateImpl(const array::StaticArray<SHAPE_T, 3> &shape, F &&f, bool firstCoordinateMajorOrder = true)¶
- template <class SHAPE_T, class F>
-
void
forEachCoordinateImpl(const array::StaticArray<SHAPE_T, 3> &shapeBegin, const array::StaticArray<SHAPE_T, 3> &shapeEnd, F &&f, bool firstCoordinateMajorOrder = true)¶
- template <class SHAPE_T, class F>
-
void
forEachCoordinateImpl(const array::StaticArray<SHAPE_T, 4> &shape, F &&f, bool firstCoordinateMajorOrder = true)¶
- template <class SHAPE_T, class F>
-
void
forEachCoordinateImpl(const array::StaticArray<SHAPE_T, 4> &shapeBegin, const array::StaticArray<SHAPE_T, 4> &shapeEnd, F &&f, bool firstCoordinateMajorOrder = true)¶
- template <class SHAPE_T, size_t DIMENSIONS, class F>
-
void
forEachCoordinate(const array::StaticArray<SHAPE_T, DIMENSIONS> &shape, F &&f, bool firstCoordinateMajorOrder = true)¶
- template <class SHAPE_T, size_t DIMENSIONS, class F>
-
void
forEachCoordinate(const array::StaticArray<SHAPE_T, DIMENSIONS> &shapeBegin, const array::StaticArray<SHAPE_T, DIMENSIONS> &shapeEnd, F &&f, bool firstCoordinateMajorOrder = true)¶
- template <class SHAPE_T, size_t DIM, class F>
-
void
parallelForEachCoordinate(nifty::parallel::ThreadPool &threadpool, const array::StaticArray<SHAPE_T, DIM> &shape, F &&f, bool firstCoordinateMajorOrder = true)¶
- template <class T, class U>
-
T
makeFinite(const T &val, const U &replaceVal)¶
-
namespace
ufd¶
-
namespace
pybind11¶
-
namespace
detail¶
-
namespace
std¶
-
file
mainpage.dox
-
file
arithmetic_array.hxx
-
file
static_array.hxx
-
file
vector.hxx
-
file
bounds.hxx
-
file
cell_vector.hxx
-
file
cgp.hxx
-
file
features.hxx
-
file
geometric_features.hxx
-
file
topological_features.hxx
-
file
filled_topological_grid.hxx
-
file
geometry.hxx
-
file
topological_grid.hxx
-
file
boost_flat_map.hxx Defines
-
__nifty_mapimpl__¶
-
-
file
boost_flat_set.hxx Defines
-
__nifty_setimpl__¶
-
-
file
flat_set.hxx
-
file
exceptions.hxx
-
file
half.hpp
-
file
accumulated_features.hxx
-
file
fastfilters_wrapper.hxx
-
file
affinities.hxx
-
file
gaussian_curvature.hxx
-
file
agglomerative_clustering.hxx
-
file
cluster_policies_common.hxx
-
file
edge_weight_merging.hxx
-
file
merge_rules.hxx
-
file
dual_cluster_policy.hxx
-
file
edge_weighted_cluster_policy.hxx
-
file
fixation_cluster_policy.hxx
-
file
lifted_agglo_cluster_policy.hxx
-
file
lifted_edge_weighted_cluster_policy2.hxx
-
file
lifted_graph_edge_weighted_cluster_policy.hxx
-
file
mala_cluster_policy.hxx
-
file
minimum_node_size_cluster_policy.hxx
-
file
new_policy.hxx
-
file
node_and_edge_weighted_cluster_policy.hxx
-
file
probabilistic_lifted_cluster_policy.hxx
-
file
bidirectional_breadth_first_search.hxx
-
file
breadth_first_search.hxx
-
file
components.hxx
-
file
depth_first_search.hxx
-
file
adjacency.hxx
-
file
contiguous_indices.hxx
-
file
node_labels_to_edge_labels_iterator.hxx
-
file
search_impl.hxx
-
file
directed_graph_base.hxx
-
file
directed_graph_view.hxx
-
file
edge_contraction_graph.hxx
-
file
edge_contraction_graph.hxx
-
file
edge_map_from_node_map.hxx
-
file
edge_weighted_watersheds.hxx
-
file
graph_maps.hxx
-
file
graph_tags.hxx
-
file
node_weighted_watersheds.hxx
-
file
cc_fusion_move_based_impl.hxx
-
file
cc_fusion_move_impl.hxx
-
file
logging_visitor.hxx
-
file
greedy_additive_multicut_proposal_generator.hxx
-
file
interface_flipper_proposal_generator.hxx
-
file
proposal_generator_base.hxx
-
file
proposal_generator_base.hxx
-
file
proposal_generator_base.hxx
-
file
proposal_generator_factory.hxx
-
file
proposal_generator_factory.hxx
-
file
proposal_generator_factory.hxx
-
file
proposal_generator_factory_base.hxx
-
file
proposal_generator_factory_base.hxx
-
file
proposal_generator_factory_base.hxx
-
file
random_node_color_proposal_generator.hxx
-
file
stub_proposal_generator.hxx
-
file
watershed_proposal_generator.hxx
-
file
watershed_proposal_generator.hxx
-
file
solver_base.hxx
-
file
solver_factory.hxx
-
file
solver_factory_base.hxx
-
file
visitor_base.hxx
-
file
higher_order_multicut_objective.hxx
-
file
multicut_base.hxx
-
file
multicut_base.hxx
-
file
chained_solvers.hxx
-
file
chained_solvers.hxx
-
file
lifted_twocut_kernighan_lin.hxx Defines
-
NIFTY_GRAPH_OPTIMIZATION_LIFTED_MULTICUT_DETAIL_LIFTED_TWOCUT_KERNIGHAN_LIN_HXX¶
-
-
file
fusion_move.hxx
-
file
fusion_move.hxx
-
file
fusion_move_based.hxx
-
file
fusion_move_based.hxx
-
file
lifted_graph_features.hxx
-
file
lifted_multicut_andres_greedy_additive.hxx
-
file
lifted_multicut_andres_kernighan_lin.hxx
-
file
lifted_multicut_base.hxx
-
file
lifted_multicut_greedy_additive.hxx
-
file
lifted_multicut_ilp.hxx
-
file
lifted_multicut_kernighan_lin.hxx
-
file
lifted_multicut_mp.hxx
-
file
lifted_multicut_objective.hxx
-
file
lifted_multicut_objective.hxx
-
file
lifted_multicut_visitor_base.hxx
-
file
pixel_wise.hxx
-
file
pixel_wise_q.hxx
-
file
mincut_base.hxx
-
file
mincut_cc_fusion_move.hxx
-
file
mincut_cc_fusion_move_based.hxx
-
file
mincut_greedy_additive.hxx
-
file
mincut_objective.hxx
-
file
mincut_objective.hxx
-
file
mincut_qpbo.hxx
-
file
mincut_visitor_base.hxx
-
file
random_proposal_generator.hxx
-
file
minstcut_base.hxx
-
file
minstcut_maxflow.hxx
-
file
minstcut_objective.hxx
-
file
minstcut_objective.hxx
-
file
minstcut_visitor_base.hxx
-
file
block_multicut.hxx
-
file
cc_fusion_move_based.hxx
-
file
cgc.hxx
-
file
kernighan_lin.hxx
-
file
multicut_andres.hxx
-
file
multicut_decomposer.hxx
-
file
multicut_greedy_additive.hxx
-
file
multicut_ilp.hxx
-
file
multicut_mp.hxx
-
file
multicut_objective.hxx
-
file
multicut_objective.hxx
-
file
multicut_visitor_base.hxx
-
file
perturb_and_map.hxx
-
file
greedy_additive_proposals.hxx
-
file
watershed_proposals.hxx
-
file
paths.hxx
-
file
probabilistic_diffusion.hxx
-
file
compute_grid_rag.hxx
-
file
compute_grid_rag_hdf5.hxx
-
file
grid_rag.hxx
-
file
grid_rag_accumulate.hxx
-
file
grid_rag_features.hxx
-
file
grid_rag_hdf5.hxx
-
file
grid_rag_labels.hxx
-
file
grid_rag_labels_hdf5.hxx
-
file
grid_rag_stacked_2d.hxx
-
file
grid_rag_stacked_2d_hdf5.hxx
-
file
project_to_pixels.hxx
-
file
shortest_path_bellman_ford.hxx
-
file
shortest_path_dijkstra.hxx
-
file
simple_directed_graph.hxx
-
file
subgraph_mask.hxx
-
file
subgraph_with_cut.hxx
-
file
three_cycles.hxx
-
file
undirected_graph_base.hxx
-
file
undirected_grid_graph.hxx
-
file
undirected_grid_graph.hxx
-
file
undirected_list_graph.hxx
-
file
undirected_list_graph.hxx
-
file
undirected_long_range_grid_graph.hxx
-
file
undirected_long_range_grid_graph.hxx
-
file
overlap.hxx
-
file
partition_comparison.hxx Defines
-
ANDRES_PARTITION_COMPARISON_HXX¶
-
-
file
seg_to_edges.hxx
-
file
seg_to_lifted_edges.hxx
-
file
hdf5.hxx
-
file
hdf5_array.hxx
-
file
histogram.hxx
-
file
cplex.hxx Defines
-
IL_STD¶
-
-
file
glpk.hxx
-
file
gurobi.hxx
-
file
ilp_backend.hxx
-
file
marray-fftw.hxx Defines
-
ANDRES_MARRAY_FFTW_HXX¶
-
-
file
marray-hdf5.hxx Defines
-
MARRAY_HDF5_HXX¶
-
-
file
marray.hxx
-
file
marray.hxx
-
file
marray_hdf5.hxx Defines
-
HAVE_CPP11_INITIALIZER_LISTS
-
-
file
math.hxx
-
file
numerics.hxx
-
file
meta.hxx
-
file
type_order.hxx
-
file
nifty.hxx
-
file
nifty_config.hxx
-
file
threadpool.hxx
-
file
converter.hxx
-
file
export_agglomerative_clustering.hxx
-
file
graph_name.hxx
-
file
export_solver_factory.hxx
-
file
py_proposal_generator_factory_base.hxx
-
file
py_proposal_generator_factory_base.hxx
-
file
py_solver_base.hxx
-
file
py_solver_factory_base.hxx
-
file
py_solver_visitor_base.hxx
-
file
export_lifted_multicut_solver.hxx
-
file
learnable_lifted_multicut_objective.hxx
-
file
lifted_multicut_objective_name.hxx
-
file
py_lifted_multicut_base.hxx
-
file
py_lifted_multicut_visitor_base.hxx
-
file
export_mincut_solver.hxx
-
file
mincut_objective_name.hxx
-
file
py_mincut_base.hxx
-
file
py_mincut_visitor_base.hxx
-
file
export_minstcut_solver.hxx
-
file
minstcut_objective_name.hxx
-
file
py_minstcut_base.hxx
-
file
py_minstcut_visitor_base.hxx
-
file
export_multicut_solver.hxx
-
file
multicut_objective_name.hxx
-
file
py_multicut_base.hxx
-
file
py_multicut_visitor_base.hxx
-
file
solver_docstring.hxx
-
file
block_access.hxx
-
file
blocking.hxx
-
file
changable_priority_queue.hxx
-
file
const_iterator_range.hxx
-
file
for_each_block.hxx
-
file
for_each_coordinate.hxx
-
file
logging.hxx
-
file
make_dense.hxx
-
file
make_finite.hxx
-
file
runtime_check.hxx
-
file
timer.hxx
-
file
iterable_ufd.hxx
-
file
ufd.hxx
-
group
group_graph
-
group
group_opt
-
group
Group_multicut
-
group
group_multicut_solver
-
group
Group_lifted_multicut
-
group
group_lifted_multicut_solver
-
group
group_mincut
-
group
group_mincut_solver
-
group
group_agglo
-
group
group_cgp
-
group
ParallelProcessing
-
page
todo
-
page
citelist
-
dir
/home/tbeier/src/nifty/include/nifty/graph/agglo
-
dir
/home/tbeier/src/nifty/include/nifty/python/graph/agglo
-
dir
/home/tbeier/src/nifty/include/nifty/marray/andres
-
dir
/home/tbeier/src/nifty/include/nifty/array
-
dir
/home/tbeier/src/nifty/include/nifty/cgp
-
dir
/home/tbeier/src/nifty/include/nifty/graph/agglo/cluster_policies
-
dir
/home/tbeier/src/nifty/include/nifty/graph/opt/common
-
dir
/home/tbeier/src/nifty/include/nifty/python/graph/opt/common
-
dir
/home/tbeier/src/nifty/include/nifty/container
-
dir
/home/tbeier/src/nifty/include/nifty/graph/agglo/cluster_policies/detail
-
dir
/home/tbeier/src/nifty/include/nifty/graph/detail
-
dir
/home/tbeier/src/nifty/include/nifty/graph/opt/lifted_multicut/detail
-
dir
/home/tbeier/src/nifty/include/nifty/graph/rag/detail_rag
-
dir
/home/tbeier/src/nifty/include/nifty/exceptions
-
dir
/home/tbeier/src/nifty/include/nifty/external
-
dir
/home/tbeier/src/nifty/include/nifty/features
-
dir
/home/tbeier/src/nifty/include/nifty/cgp/features
-
dir
/home/tbeier/src/nifty/include/nifty/filters
-
dir
/home/tbeier/src/nifty/include/nifty/python/graph
-
dir
/home/tbeier/src/nifty/include/nifty/graph
-
dir
/home/tbeier/src/nifty/include/nifty/ground_truth
-
dir
/home/tbeier/src/nifty/include/nifty/hdf5
-
dir
/home/tbeier/src/nifty/include/nifty/graph/opt/higher_order_multicut
-
dir
/home/tbeier/src/nifty/include/nifty/histogram
-
dir
/home/tbeier/src/nifty/include/nifty/ilp_backend
-
dir
/home/tbeier/src/nifty/include
-
dir
/home/tbeier/src/nifty/include/nifty/graph/opt/lifted_multicut
-
dir
/home/tbeier/src/nifty/include/nifty/python/graph/opt/lifted_multicut
-
dir
/home/tbeier/src/nifty/include/nifty/marray
-
dir
/home/tbeier/src/nifty/include/nifty/math
-
dir
/home/tbeier/src/nifty/include/nifty/meta
-
dir
/home/tbeier/src/nifty/include/nifty/python/graph/opt/mincut
-
dir
/home/tbeier/src/nifty/include/nifty/graph/opt/mincut
-
dir
/home/tbeier/src/nifty/include/nifty/graph/opt/minstcut
-
dir
/home/tbeier/src/nifty/include/nifty/python/graph/opt/minstcut
-
dir
/home/tbeier/src/nifty/include/nifty/python/graph/opt/multicut
-
dir
/home/tbeier/src/nifty/include/nifty/graph/opt/multicut
-
dir
/home/tbeier/src/nifty
-
dir
/home/tbeier/src/nifty/include/nifty
-
dir
/home/tbeier/src/nifty/include/nifty/python/graph/opt
-
dir
/home/tbeier/src/nifty/include/nifty/graph/opt
-
dir
/home/tbeier/src/nifty/include/nifty/parallel
-
dir
/home/tbeier/src/nifty/include/nifty/graph/opt/multicut/proposal_generators
-
dir
/home/tbeier/src/nifty/include/nifty/graph/opt/common/proposal_generators
-
dir
/home/tbeier/src/nifty/include/nifty/graph/opt/lifted_multicut/proposal_generators
-
dir
/home/tbeier/src/nifty/include/nifty/graph/opt/mincut/proposal_generators
-
dir
/home/tbeier/src/nifty/include/nifty/python
-
dir
/home/tbeier/src/nifty/include/nifty/graph/rag
-
dir
/home/tbeier/src
-
dir
/home/tbeier/src/nifty/include/nifty/graph/subgraph_masks
-
dir
/home/tbeier/src/nifty/include/nifty/tools
-
dir
/home/tbeier/src/nifty/include/nifty/ufd
-
example
graph/multicut/multicut.cxx
-
example
graph/undirected_list_graph.cxx
-
page
index