MeshLib C++ Docs
Loading...
Searching...
No Matches
MRFillContourByGraphCut.h
Go to the documentation of this file.
1#pragma once
2
3#include "MREdgePaths.h"
4#include <vector>
5
6namespace MR
7{
30MRMESH_API FaceBitSet fillContourLeftByGraphCut( const MeshTopology & topology, const EdgePath & contour,
31 const EdgeMetric & metric, const ProgressCallback& progress = {} );
32
38MRMESH_API FaceBitSet fillContourLeftByGraphCut( const MeshTopology & topology, const std::vector<EdgePath> & contours,
39 const EdgeMetric & metric, const ProgressCallback& progress = {} );
40
46MRMESH_API FaceBitSet segmentByGraphCut( const MeshTopology& topology, const FaceBitSet& source,
47 const FaceBitSet& sink, const EdgeMetric& metric, const ProgressCallback& progress = {} );
48
49} //namespace MR
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:80
Definition MRMesh/MRMeshTopology.h:19
std::function< bool(float)> ProgressCallback
Definition MRMesh/MRMeshFwd.h:728
MRMESH_API FaceBitSet segmentByGraphCut(const MeshTopology &topology, const FaceBitSet &source, const FaceBitSet &sink, const EdgeMetric &metric, const ProgressCallback &progress={})
Finds segment that divide mesh on source and sink (source included, sink excluded),...
MRMESH_API FaceBitSet fillContourLeftByGraphCut(const MeshTopology &topology, const EdgePath &contour, const EdgeMetric &metric, const ProgressCallback &progress={})
Fills region located to the left from given contour, by minimizing the sum of metric over the boundar...
Definition MRCameraOrientationPlugin.h:8
std::function< float(EdgeId)> EdgeMetric
Definition MRMesh/MRMeshFwd.h:570
std::vector< EdgeId > EdgePath
Definition MRMesh/MRMeshFwd.h:140