MeshLib Documentation
Loading...
Searching...
No Matches
MRVoxelGraphCut.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRVoxelsFwd.h"
5#include "MRMesh/MRExpected.h"
6
7namespace MR
8{
9
20MRVOXELS_API Expected<VoxelBitSet> segmentVolumeByGraphCut( const SimpleVolume& densityVolume, float k, const VoxelBitSet& sourceSeeds, const VoxelBitSet& sinkSeeds, ProgressCallback cb = {} );
21
22} // namespace MR
#define MRVOXELS_API
Definition MRVoxelsFwd.h:13
std::function< bool(float)> ProgressCallback
Definition MRMesh/MRMeshFwd.h:576
MRVOXELS_API Expected< VoxelBitSet > segmentVolumeByGraphCut(const SimpleVolume &densityVolume, float k, const VoxelBitSet &sourceSeeds, const VoxelBitSet &sinkSeeds, ProgressCallback cb={})
Segment voxels of given volume on two sets using graph-cut, returning source set.
Definition MRCameraOrientationPlugin.h:8
tl::expected< T, E > Expected
Definition MRExpected.h:58