62 std::filesystem::path
path;
64 std::string
format =
"slice_{0:0{1}}.tif";
76#ifndef MR_PARSING_FOR_ANY_BINDINGS
#define MRVOXELS_API
see explanation in MRMesh/MRMeshFwd.h
Definition MRVoxelsFwd.h:14
wrapper class that helps mrbind to avoid excess MRVDBFloatGrid.h includes
Definition MRFloatGrid.h:21
named object in the data model
Definition MRObject.h:62
std::function< bool(float)> ProgressCallback
Definition MRMeshFwd.h:753
MRVOXELS_CLASS SimpleVolumeMinMax
Definition MRVoxelsFwd.h:35
tl::expected< T, E > Expected
Definition MRExpected.h:31
SlicePlane
Plane of slice in which to find path.
Definition MRVoxelPath.h:29
Expected< void > saveObjectVoxelsToFile(const Object &object, const std::filesystem::path &path, const ObjectSave::Settings &settings)
Expected< void > gridToRawFloat(const FloatGrid &grid, const Vector3i &dims, std::ostream &out, ProgressCallback callback={})
Save voxels in raw format with each value as 32-bit float in given binary stream.
Expected< void > toRawAutoname(const VdbVolume &vdbVolume, const std::filesystem::path &file, ProgressCallback callback={})
Save raw voxels file, writing parameters in file name.
Expected< void > toAnySupportedFormat(const VdbVolume &vdbVolume, const std::filesystem::path &file, ProgressCallback callback={})
Expected< void > toVdb(const VdbVolume &vdbVolume, const std::filesystem::path &file, ProgressCallback callback={})
Expected< void >(*)(const VdbVolume &, const std::filesystem::path &, ProgressCallback) VoxelsSaver
Definition MRVoxelsSave.h:77
Expected< void > saveAllSlicesToImage(const VdbVolume &vdbVolume, const SavingSettings &settings)
save all slices by the active plane through all voxel planes along the active axis to an image file
Expected< void > gridToVdb(const FloatGrid &grid, const std::filesystem::path &file, ProgressCallback callback={})
Save voxels file in OpenVDB format.
Expected< void > toRawFloat(const VdbVolume &vdbVolume, std::ostream &out, ProgressCallback callback={})
Expected< void > toGav(const VdbVolume &vdbVolume, const std::filesystem::path &file, ProgressCallback callback={})
Save voxels in Gav-format in given destination.
Expected< void > gridToRawAutoname(const FloatGrid &grid, const Vector3i &dims, const std::filesystem::path &file, ProgressCallback callback={})
Expected< void > saveSliceToImage(const std::filesystem::path &path, const VdbVolume &vdbVolume, const SlicePlane &slicePlain, int sliceNumber, ProgressCallback callback={})
save the slice by the active plane through the sliceNumber to an image file
Expected< void > gridToAnySupportedFormat(const FloatGrid &grid, const Vector3i &dims, const std::filesystem::path &file, ProgressCallback callback={})
Saves voxels in a file, detecting the format from file extension.
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRObjectSaveSettings.h:27
stores together all data for save voxel object as a group of images
Definition MRVoxelsSave.h:60
ProgressCallback cb
Callback reporting progress.
Definition MRVoxelsSave.h:68
SlicePlane slicePlane
Plane which the object is sliced by. XY, XZ, or YZ.
Definition MRVoxelsSave.h:66
std::filesystem::path path
path to directory where you want to save images
Definition MRVoxelsSave.h:62
std::string format
format for file names, you should specify a placeholder for number and extension, eg "slice_{0:0{1}...
Definition MRVoxelsSave.h:64