MeshLib C Docs
Loading...
Searching...
No Matches
MRVoxelGraphCut.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMisc/common.h>
4#include <MRCMisc/exports.h>
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10typedef struct MR_SimpleVolume MR_SimpleVolume; // Defined in `#include <MRCVoxels/MRVoxelsVolume.h>`.
11typedef struct MR_VoxelBitSet MR_VoxelBitSet; // Defined in `#include <MRCMesh/MRBitSet.h>`.
12typedef struct MR_expected_MR_VoxelBitSet_std_string MR_expected_MR_VoxelBitSet_std_string; // Defined in `#include <MRCMisc/expected_MR_VoxelBitSet_std_string.h>`.
13typedef struct MR_std_function_bool_from_float MR_std_function_bool_from_float; // Defined in `#include <MRCMisc/std_function_bool_from_float.h>`.
14
15
33
34#ifdef __cplusplus
35} // extern "C"
36#endif
struct MR_std_function_bool_from_float MR_std_function_bool_from_float
Definition MR3mf.h:10
struct MR_VoxelBitSet MR_VoxelBitSet
Definition MRBitSet.h:103
MRC_API MR_expected_MR_VoxelBitSet_std_string * MR_segmentVolumeByGraphCut(const MR_SimpleVolume *densityVolume, float k, const MR_VoxelBitSet *sourceSeeds, const MR_VoxelBitSet *sinkSeeds, MR_PassBy cb_pass_by, MR_std_function_bool_from_float *cb)
Segment voxels of given volume on two sets using graph-cut, returning source set.
MR_PassBy
Definition common.h:19
struct MR_SimpleVolume MR_SimpleVolume
Definition expected_MR_SimpleVolume_std_string.h:12
struct MR_expected_MR_VoxelBitSet_std_string MR_expected_MR_VoxelBitSet_std_string
Definition expected_MR_VoxelBitSet_std_string.h:18
#define MRC_API
Definition exports.h:11