MeshLib Rust Docs
Loading...
Searching...
No Matches
meshlib::voxels_save Namespace Reference

Classes

struct  SavingSettings

Functions

auto to_dicom (vdbVolume:&meshlib::VdbVolume, path:&str, cb:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_dicom_unsigned_short (volume:&meshlib::SimpleVolumeU16, path:&str, sourceScale:Option<&meshlib::std_optional_MR_Box1f >, cb:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_raw_autoname_mr_vdb_volume (vdbVolume:&meshlib::VdbVolume, file:&str, callback:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_raw_autoname_mr_simple_volume (simpleVolume:&meshlib::SimpleVolume, file:&str, callback:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto grid_to_raw_autoname (grid:&meshlib::FloatGrid, dims:&meshlib::Vector3i, file:&str, callback:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto grid_to_raw_float (grid:&meshlib::FloatGrid, dims:&meshlib::Vector3i, out:&mut meshlib::std_ostream, callback:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_raw_float_mr_vdb_volume (vdbVolume:&meshlib::VdbVolume, out:&mut meshlib::std_ostream, callback:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_raw_float_mr_simple_volume (simpleVolume:&meshlib::SimpleVolume, out:&mut meshlib::std_ostream, callback:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_gav_const_mr_vdb_volume_ref_std_filesystem_path (vdbVolume:&meshlib::VdbVolume, file:&str, callback:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_gav_const_mr_vdb_volume_ref_std_ostream (vdbVolume:&meshlib::VdbVolume, out:&mut meshlib::std_ostream, callback:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_gav_const_mr_simple_volume_min_max_ref_std_filesystem_path (simpleVolumeMinMax:&meshlib::SimpleVolumeMinMax, file:&str, callback:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_gav_const_mr_simple_volume_min_max_ref_std_ostream (simpleVolumeMinMax:&meshlib::SimpleVolumeMinMax, out:&mut meshlib::std_ostream, callback:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_gav_const_mr_simple_volume_ref_std_filesystem_path (simpleVolume:&meshlib::SimpleVolume, file:&str, callback:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_gav_const_mr_simple_volume_ref_std_ostream (simpleVolume:&meshlib::SimpleVolume, out:&mut meshlib::std_ostream, callback:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto grid_to_vdb_std_filesystem_path (grid:&meshlib::FloatGrid, file:&str, callback:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto grid_to_vdb_std_ostream (grid:&meshlib::FloatGrid, out:&mut meshlib::std_ostream, callback:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_vdb (vdbVolume:&meshlib::VdbVolume, file:&str, callback:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto grid_to_any_supported_format (grid:&meshlib::FloatGrid, dims:&meshlib::Vector3i, file:&str, callback:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto to_any_supported_format (vdbVolume:&meshlib::VdbVolume, file:&str, callback:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto save_slice_to_image (path:&str, vdbVolume:&meshlib::VdbVolume, slicePlain:&meshlib::SlicePlane, sliceNumber:core::ffi::c_int, callback:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_void_std_string >
auto save_all_slices_to_image (vdbVolume:&meshlib::VdbVolume, settings:&meshlib::voxels_save::SavingSettings) -> meshlib::Owned< meshlib::expected_void_std_string >

Function Documentation

◆ grid_to_any_supported_format()

auto meshlib::voxels_save::grid_to_any_supported_format ( grid:&meshlib::FloatGrid ,
dims:&meshlib::Vector3i ,
file:& str,
callback:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Saves voxels in a file, detecting the format from file extension Generated from function MR::VoxelsSave::gridToAnySupportedFormat.

Calls MR_VoxelsSave_gridToAnySupportedFormat().

◆ grid_to_raw_autoname()

auto meshlib::voxels_save::grid_to_raw_autoname ( grid:&meshlib::FloatGrid ,
dims:&meshlib::Vector3i ,
file:& str,
callback:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Generated from function MR::VoxelsSave::gridToRawAutoname.

Calls MR_VoxelsSave_gridToRawAutoname().

◆ grid_to_raw_float()

auto meshlib::voxels_save::grid_to_raw_float ( grid:&meshlib::FloatGrid ,
dims:&meshlib::Vector3i ,
out:&mut meshlib::std_ostream ,
callback:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Save voxels in raw format with each value as 32-bit float in given binary stream Generated from function MR::VoxelsSave::gridToRawFloat.

Calls MR_VoxelsSave_gridToRawFloat().

◆ grid_to_vdb_std_filesystem_path()

auto meshlib::voxels_save::grid_to_vdb_std_filesystem_path ( grid:&meshlib::FloatGrid ,
file:& str,
callback:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Save voxels file in OpenVDB format Generated from function MR::VoxelsSave::gridToVdb.

Calls MR_VoxelsSave_gridToVdb_std_filesystem_path().

◆ grid_to_vdb_std_ostream()

auto meshlib::voxels_save::grid_to_vdb_std_ostream ( grid:&meshlib::FloatGrid ,
out:&mut meshlib::std_ostream ,
callback:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Generated from function MR::VoxelsSave::gridToVdb.

Calls MR_VoxelsSave_gridToVdb_std_ostream().

◆ save_all_slices_to_image()

auto meshlib::voxels_save::save_all_slices_to_image ( vdbVolume:&meshlib::VdbVolume ,
settings:&meshlib::voxels_save::SavingSettings  ) -> meshlib::Owned< meshlib::expected_void_std_string >

save all slices by the active plane through all voxel planes along the active axis to an image file Generated from function MR::VoxelsSave::saveAllSlicesToImage.

Calls MR_VoxelsSave_saveAllSlicesToImage().

◆ save_slice_to_image()

auto meshlib::voxels_save::save_slice_to_image ( path:& str,
vdbVolume:&meshlib::VdbVolume ,
slicePlain:&meshlib::SlicePlane ,
sliceNumber:core::ffi::c_int ,
callback:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

save the slice by the active plane through the sliceNumber to an image file Generated from function MR::VoxelsSave::saveSliceToImage.

Calls MR_VoxelsSave_saveSliceToImage().

◆ to_any_supported_format()

auto meshlib::voxels_save::to_any_supported_format ( vdbVolume:&meshlib::VdbVolume ,
file:& str,
callback:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Generated from function MR::VoxelsSave::toAnySupportedFormat.

Calls MR_VoxelsSave_toAnySupportedFormat().

◆ to_dicom()

auto meshlib::voxels_save::to_dicom ( vdbVolume:&meshlib::VdbVolume ,
path:& str,
cb:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Save voxels object to a single 3d DICOM file Generated from function MR::VoxelsSave::toDicom.

Calls MR_VoxelsSave_toDicom().

◆ to_dicom_unsigned_short()

auto meshlib::voxels_save::to_dicom_unsigned_short ( volume:&meshlib::SimpleVolumeU16 ,
path:& str,
sourceScale:Option<&meshlib::std_optional_MR_Box1f > ,
cb:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Saves object to a single 3d DICOM file. sourceScale specifies the true scale of the voxel data which will be saved with "slope" and "intercept" parameters of the output dicom. Generated from function MR::VoxelsSave::toDicom<unsigned short>.

Calls MR_VoxelsSave_toDicom_unsigned_short().

◆ to_gav_const_mr_simple_volume_min_max_ref_std_filesystem_path()

auto meshlib::voxels_save::to_gav_const_mr_simple_volume_min_max_ref_std_filesystem_path ( simpleVolumeMinMax:&meshlib::SimpleVolumeMinMax ,
file:& str,
callback:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Generated from function MR::VoxelsSave::toGav.

Calls MR_VoxelsSave_toGav_const_MR_SimpleVolumeMinMax_ref_std_filesystem_path().

◆ to_gav_const_mr_simple_volume_min_max_ref_std_ostream()

auto meshlib::voxels_save::to_gav_const_mr_simple_volume_min_max_ref_std_ostream ( simpleVolumeMinMax:&meshlib::SimpleVolumeMinMax ,
out:&mut meshlib::std_ostream ,
callback:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Generated from function MR::VoxelsSave::toGav.

Calls MR_VoxelsSave_toGav_const_MR_SimpleVolumeMinMax_ref_std_ostream().

◆ to_gav_const_mr_simple_volume_ref_std_filesystem_path()

auto meshlib::voxels_save::to_gav_const_mr_simple_volume_ref_std_filesystem_path ( simpleVolume:&meshlib::SimpleVolume ,
file:& str,
callback:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Generated from function MR::VoxelsSave::toGav.

Calls MR_VoxelsSave_toGav_const_MR_SimpleVolume_ref_std_filesystem_path().

◆ to_gav_const_mr_simple_volume_ref_std_ostream()

auto meshlib::voxels_save::to_gav_const_mr_simple_volume_ref_std_ostream ( simpleVolume:&meshlib::SimpleVolume ,
out:&mut meshlib::std_ostream ,
callback:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Generated from function MR::VoxelsSave::toGav.

Calls MR_VoxelsSave_toGav_const_MR_SimpleVolume_ref_std_ostream().

◆ to_gav_const_mr_vdb_volume_ref_std_filesystem_path()

auto meshlib::voxels_save::to_gav_const_mr_vdb_volume_ref_std_filesystem_path ( vdbVolume:&meshlib::VdbVolume ,
file:& str,
callback:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Save voxels in Gav-format in given destination Generated from function MR::VoxelsSave::toGav.

Calls MR_VoxelsSave_toGav_const_MR_VdbVolume_ref_std_filesystem_path().

◆ to_gav_const_mr_vdb_volume_ref_std_ostream()

auto meshlib::voxels_save::to_gav_const_mr_vdb_volume_ref_std_ostream ( vdbVolume:&meshlib::VdbVolume ,
out:&mut meshlib::std_ostream ,
callback:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Generated from function MR::VoxelsSave::toGav.

Calls MR_VoxelsSave_toGav_const_MR_VdbVolume_ref_std_ostream().

◆ to_raw_autoname_mr_simple_volume()

auto meshlib::voxels_save::to_raw_autoname_mr_simple_volume ( simpleVolume:&meshlib::SimpleVolume ,
file:& str,
callback:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Generated from function MR::VoxelsSave::toRawAutoname.

Calls MR_VoxelsSave_toRawAutoname_MR_SimpleVolume().

◆ to_raw_autoname_mr_vdb_volume()

auto meshlib::voxels_save::to_raw_autoname_mr_vdb_volume ( vdbVolume:&meshlib::VdbVolume ,
file:& str,
callback:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Save raw voxels file, writing parameters in file name Generated from function MR::VoxelsSave::toRawAutoname.

Calls MR_VoxelsSave_toRawAutoname_MR_VdbVolume().

◆ to_raw_float_mr_simple_volume()

auto meshlib::voxels_save::to_raw_float_mr_simple_volume ( simpleVolume:&meshlib::SimpleVolume ,
out:&mut meshlib::std_ostream ,
callback:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Generated from function MR::VoxelsSave::toRawFloat.

Calls MR_VoxelsSave_toRawFloat_MR_SimpleVolume().

◆ to_raw_float_mr_vdb_volume()

auto meshlib::voxels_save::to_raw_float_mr_vdb_volume ( vdbVolume:&meshlib::VdbVolume ,
out:&mut meshlib::std_ostream ,
callback:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Generated from function MR::VoxelsSave::toRawFloat.

Calls MR_VoxelsSave_toRawFloat_MR_VdbVolume().

◆ to_vdb()

auto meshlib::voxels_save::to_vdb ( vdbVolume:&meshlib::VdbVolume ,
file:& str,
callback:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_void_std_string >

Generated from function MR::VoxelsSave::toVdb.

Calls MR_VoxelsSave_toVdb().