MeshLib
 
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{
30 const EdgeMetric & metric );
31
36MRMESH_API FaceBitSet fillContourLeftByGraphCut( const MeshTopology & topology, const std::vector<EdgePath> & contours,
37 const EdgeMetric & metric );
38
44 const FaceBitSet& sink, const EdgeMetric& metric );
45
46} //namespace MR
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
Definition MRDotNet/MRBitSet.h:39
Definition MRMesh/MRMeshTopology.h:18
MRMESH_API FaceBitSet fillContourLeftByGraphCut(const MeshTopology &topology, const EdgePath &contour, const EdgeMetric &metric)
Fills region located to the left from given contour, by minimizing the sum of metric over the boundar...
MRMESH_API FaceBitSet segmentByGraphCut(const MeshTopology &topology, const FaceBitSet &source, const FaceBitSet &sink, const EdgeMetric &metric)
Finds segment that divide mesh on source and sink (source included, sink excluded),...
Definition MRCameraOrientationPlugin.h:7
std::function< float(EdgeId)> EdgeMetric
Definition MRMesh/MRMeshFwd.h:428
std::vector< EdgeId > EdgePath
Definition MRMesh/MRMeshFwd.h:98