2#include "MRVoxelsFwd.h"
21 ProgressCallback callback = {} );
23 ProgressCallback callback = {} );
25 ProgressCallback callback = {} );
33MRVOXELS_API
Expected<void> toGav(
const VdbVolume& vdbVolume,
const std::filesystem::path& file, ProgressCallback callback = {} );
34MRVOXELS_API
Expected<void> toGav(
const VdbVolume& vdbVolume, std::ostream & out, ProgressCallback callback = {} );
35MRVOXELS_API
Expected<void> toGav(
const SimpleVolumeMinMax& simpleVolumeMinMax,
const std::filesystem::path& file, ProgressCallback callback = {} );
36MRVOXELS_API
Expected<void> toGav(
const SimpleVolumeMinMax& simpleVolumeMinMax, std::ostream & out, ProgressCallback callback = {} );
37MRVOXELS_API
Expected<void> toGav(
const SimpleVolume& simpleVolume,
const std::filesystem::path& file, ProgressCallback callback = {} );
38MRVOXELS_API
Expected<void> toGav(
const SimpleVolume& simpleVolume, std::ostream & out, ProgressCallback callback = {} );
42 ProgressCallback callback = {} );
44 ProgressCallback callback = {} );
46 ProgressCallback callback = {} );
50 ProgressCallback callback = {} );
52 ProgressCallback callback = {} );
61 std::filesystem::path
path;
63 std::string
format =
"slice_{0:0{1}}.tif";
67 ProgressCallback
cb = {};
75#ifndef MR_PARSING_FOR_ANY_BINDINGS
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
tl::expected< T, E > Expected
Definition MRExpected.h:31
MRVOXELS_API Expected< void > toGav(const VdbVolume &vdbVolume, const std::filesystem::path &file, ProgressCallback callback={})
Save voxels in Gav-format in given destination.
MRVOXELS_API Expected< void > toRawFloat(const VdbVolume &vdbVolume, std::ostream &out, ProgressCallback callback={})
MRVOXELS_API 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
MRVOXELS_API Expected< void > toAnySupportedFormat(const VdbVolume &vdbVolume, const std::filesystem::path &file, ProgressCallback callback={})
MRVOXELS_API 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.
MRVOXELS_API 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
MRVOXELS_API 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.
MRVOXELS_API Expected< void > toRawAutoname(const VdbVolume &vdbVolume, const std::filesystem::path &file, ProgressCallback callback={})
Save raw voxels file, writing parameters in file name.
MRVOXELS_API Expected< void > toVdb(const VdbVolume &vdbVolume, const std::filesystem::path &file, ProgressCallback callback={})
MRVOXELS_API Expected< void > gridToVdb(const FloatGrid &grid, const std::filesystem::path &file, ProgressCallback callback={})
Save voxels file in OpenVDB format.
MRVOXELS_API Expected< void > gridToRawAutoname(const FloatGrid &grid, const Vector3i &dims, const std::filesystem::path &file, ProgressCallback callback={})
SlicePlane
Plane of slice in which to find path.
Definition MRVoxelPath.h:29
Expected< void >(*)(const VdbVolume &, const std::filesystem::path &, ProgressCallback) VoxelsSaver
Definition MRVoxelsSave.h:76
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
MRVOXELS_API Expected< void > saveObjectVoxelsToFile(const Object &object, const std::filesystem::path &path, const ObjectSave::Settings &settings)
namespace VoxelsSave
Definition MRObjectSaveSettings.h:11
stores together all data for save voxel object as a group of images
Definition MRVoxelsSave.h:59
ProgressCallback cb
Callback reporting progress.
Definition MRVoxelsSave.h:67
SlicePlane slicePlane
Plane which the object is sliced by. XY, XZ, or YZ.
Definition MRVoxelsSave.h:65
std::filesystem::path path
path to directory where you want to save images
Definition MRVoxelsSave.h:61
std::string format
format for file names, you should specify a placeholder for number and extension, eg "slice_{0:0{1}...
Definition MRVoxelsSave.h:63