#include <stdio.h>
#include <stdlib.h>
#include <string.h>
{
int rc = EXIT_FAILURE;
if ( !image )
{
goto fail_load;
}
if ( !dm )
{
goto fail_conversion;
}
{
goto fail_save;
}
rc = EXIT_SUCCESS;
fail_save:
fail_conversion:
fail_load:
return rc;
}
struct MR_std_vector_std_vector_MR_Vector2f MR_std_vector_std_vector_MR_Vector2f
MRC_API MR_Mesh * MR_PlanarTriangulation_triangulateContours_std_vector_std_vector_MR_Vector2f(const MR_std_vector_std_vector_MR_Vector2f *contours, const MR_std_vector_std_vector_MR_VertId *holeVertsIds)
struct MR_Polyline2 MR_Polyline2
struct MR_expected_void_std_string MR_expected_void_std_string
MRC_API MR_expected_MR_DistanceMap_std_string * MR_convertImageToDistanceMap(const MR_Image *image, const float *threshold, const bool *invert)
struct MR_expected_MR_DistanceMap_std_string MR_expected_MR_DistanceMap_std_string
MRC_API MR_Polyline2 * MR_distanceMapTo2DIsoPolyline_2(const MR_DistanceMap *distMap, float isoValue)
MRC_API MR_expected_MR_Image_std_string * MR_ImageLoad_fromAnySupportedFormat(const char *path, const char *path_end)
struct MR_expected_MR_Image_std_string MR_expected_MR_Image_std_string
MRC_API MR_expected_void_std_string * MR_MeshSave_toAnySupportedFormat_3(const MR_Mesh *mesh, const char *file, const char *file_end, const MR_SaveSettings *settings)
MRC_API void MR_Mesh_Destroy(const MR_Mesh *_this)
MRC_API MR_std_vector_std_vector_MR_Vector2f * MR_Polyline2_contours(const MR_Polyline2 *_this, MR_std_vector_std_vector_MR_VertId *vertMap)
MRC_API void MR_Polyline2_Destroy(const MR_Polyline2 *_this)
struct MR_DistanceMap MR_DistanceMap
MRC_API void MR_expected_MR_DistanceMap_std_string_Destroy(const MR_expected_MR_DistanceMap_std_string *_this)
MRC_API const MR_std_string * MR_expected_MR_DistanceMap_std_string_GetError(const MR_expected_MR_DistanceMap_std_string *_this)
MRC_API MR_DistanceMap * MR_expected_MR_DistanceMap_std_string_GetMutableValue(MR_expected_MR_DistanceMap_std_string *_this)
MRC_API MR_Image * MR_expected_MR_Image_std_string_GetMutableValue(MR_expected_MR_Image_std_string *_this)
MRC_API void MR_expected_MR_Image_std_string_Destroy(const MR_expected_MR_Image_std_string *_this)
MRC_API const MR_std_string * MR_expected_MR_Image_std_string_GetError(const MR_expected_MR_Image_std_string *_this)
MRC_API const MR_std_string * MR_expected_void_std_string_GetError(const MR_expected_void_std_string *_this)
MRC_API void MR_expected_void_std_string_Destroy(const MR_expected_void_std_string *_this)
MRC_API const char * MR_std_string_Data(const MR_std_string *_this)
MRC_API void MR_std_vector_std_vector_MR_Vector2f_Destroy(const MR_std_vector_std_vector_MR_Vector2f *_this)