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

Classes

struct  DicomStatus
struct  DicomStatusEnum
 Generated from enum MR::VoxelsLoad::DicomStatusEnum. The constants are associated constants of this type. More...
struct  DicomVolume
struct  DicomVolumeAsVdb
struct  GridType
struct  RasterFolderLoadSettings
struct  RawParameters

Functions

auto is_dicom_file (path:&str, seriesUid:Option<&mut meshlib::std_string >, dims:Option<&mut meshlib::Vector3i >) -> meshlib::Owned< meshlib::voxels_load::DicomStatus >
auto is_dicom_folder (dirPath:&str) -> bool
auto find_dicom_folders_recursively (path:&str) -> meshlib::Owned< meshlib::std_vector_std_filesystem_path >
auto load_dicom_file (file:&str, cb:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_MR_VoxelsLoad_DicomVolume_std_string >
auto load_dicom_file_as_vdb (file:&str, cb:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_MR_VoxelsLoad_DicomVolumeAsVdb_std_string >
auto load_dicom_folder (path:&str, maxNumThreads:core::ffi::c_uint, cb:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_MR_VoxelsLoad_DicomVolume_std_string >
auto load_dicom_folder_as_vdb (path:&str, maxNumThreads:core::ffi::c_uint, cb:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_MR_VoxelsLoad_DicomVolumeAsVdb_std_string >
auto load_dicoms_folder (path:&str, maxNumThreads:core::ffi::c_uint, cb:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::std_vector_expected_MR_VoxelsLoad_DicomVolume_std_string >
auto load_dicoms_folder_as_vdb (path:&str, maxNumThreads:core::ffi::c_uint, cb:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::std_vector_expected_MR_VoxelsLoad_DicomVolumeAsVdb_std_string >
auto load_dicoms_folder_tree_as_vdb (path:&str, maxNumThreads:Option< core::ffi::c_uint >, cb:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::std_vector_expected_MR_VoxelsLoad_DicomVolumeAsVdb_std_string >
auto create_object_voxels (dcm:&meshlib::voxels_load::DicomVolumeAsVdb, cb:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_std_shared_ptr_MR_ObjectVoxels_std_string >
auto make_object_voxels_from_dicom_folder (folder:&str, callback:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_MR_LoadedObjects_std_string >
auto from_raw_3_std_filesystem_path (file:&str, params:&meshlib::voxels_load::RawParameters, cb:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_MR_VdbVolume_std_string >
auto from_raw_3_std_istream (in:&mut meshlib::std_istream, params:&meshlib::voxels_load::RawParameters, cb:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_MR_VdbVolume_std_string >
auto grid_from_raw_3_std_filesystem_path (file:&str, params:&meshlib::voxels_load::RawParameters, cb:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_MR_FloatGrid_std_string >
auto grid_from_raw_3_std_istream (in:&mut meshlib::std_istream, params:&meshlib::voxels_load::RawParameters, cb:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_MR_FloatGrid_std_string >
auto find_raw_parameters (file:&mut meshlib::std_filesystem_path) -> meshlib::Owned< meshlib::expected_MR_VoxelsLoad_RawParameters_std_string >
auto from_raw_2 (file:&str, cb:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_MR_VdbVolume_std_string >
auto grid_from_raw_2 (file:&str, cb:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_MR_FloatGrid_std_string >
auto from_vdb (file:&str, cb:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_std_vector_MR_VdbVolume_std_string >
auto grids_from_vdb_std_filesystem_path (file:&str, cb:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_std_vector_MR_FloatGrid_std_string >
auto grids_from_vdb_std_istream (in:&mut meshlib::std_istream, cb:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_std_vector_MR_FloatGrid_std_string >
auto from_gav_std_filesystem_path (file:&str, cb:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_MR_VdbVolume_std_string >
auto from_gav_std_istream (in:&mut meshlib::std_istream, cb:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_MR_VdbVolume_std_string >
auto grids_from_any_supported_format (file:&str, cb:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_std_vector_MR_FloatGrid_std_string >
auto from_any_supported_format (file:&str, cb:Option<&meshlib::std_function_bool_from_float >) -> meshlib::Owned< meshlib::expected_std_vector_MR_VdbVolume_std_string >
auto load_raster_folder (settings:&meshlib::voxels_load::RasterFolderLoadSettings) -> meshlib::Owned< meshlib::expected_MR_VdbVolume_std_string >

Function Documentation

◆ create_object_voxels()

converts DicomVolumeAsVdb in ObjectVoxels Generated from function MR::VoxelsLoad::createObjectVoxels.

Calls MR_VoxelsLoad_createObjectVoxels().

◆ find_dicom_folders_recursively()

auto meshlib::voxels_load::find_dicom_folders_recursively ( path:& str) -> meshlib::Owned< meshlib::std_vector_std_filesystem_path >

returns all the dicom folders in path, searching recursively Generated from function MR::VoxelsLoad::findDicomFoldersRecursively.

Calls MR_VoxelsLoad_findDicomFoldersRecursively().

◆ find_raw_parameters()

auto meshlib::voxels_load::find_raw_parameters ( file:&mut meshlib::std_filesystem_path ) -> meshlib::Owned< meshlib::expected_MR_VoxelsLoad_RawParameters_std_string >

finds raw voxels file and its encoding parameters

Parameters
fileon input: file name probably without suffix with parameters on output: if success existing file name Generated from function MR::VoxelsLoad::findRawParameters.

Calls MR_VoxelsLoad_findRawParameters().

◆ from_any_supported_format()

auto meshlib::voxels_load::from_any_supported_format ( file:& str,
cb:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_std_vector_MR_VdbVolume_std_string >

Detects the format from file extension and loads voxels from it Generated from function MR::VoxelsLoad::fromAnySupportedFormat.

Calls MR_VoxelsLoad_fromAnySupportedFormat().

◆ from_gav_std_filesystem_path()

auto meshlib::voxels_load::from_gav_std_filesystem_path ( file:& str,
cb:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_MR_VdbVolume_std_string >

Load voxel from Gav-file with micro CT reconstruction Generated from function MR::VoxelsLoad::fromGav.

Calls MR_VoxelsLoad_fromGav_std_filesystem_path().

◆ from_gav_std_istream()

auto meshlib::voxels_load::from_gav_std_istream ( in:&mut meshlib::std_istream ,
cb:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_MR_VdbVolume_std_string >

Load voxel from Gav-stream with micro CT reconstruction Generated from function MR::VoxelsLoad::fromGav.

Calls MR_VoxelsLoad_fromGav_std_istream().

◆ from_raw_2()

auto meshlib::voxels_load::from_raw_2 ( file:& str,
cb:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_MR_VdbVolume_std_string >

Load raw voxels file, parsing parameters from name Generated from function MR::VoxelsLoad::fromRaw.

Calls MR_VoxelsLoad_fromRaw_2().

◆ from_raw_3_std_filesystem_path()

auto meshlib::voxels_load::from_raw_3_std_filesystem_path ( file:& str,
params:&meshlib::voxels_load::RawParameters ,
cb:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_MR_VdbVolume_std_string >

Load raw voxels from file with provided parameters Generated from function MR::VoxelsLoad::fromRaw.

Calls MR_VoxelsLoad_fromRaw_3_std_filesystem_path().

◆ from_raw_3_std_istream()

auto meshlib::voxels_load::from_raw_3_std_istream ( in:&mut meshlib::std_istream ,
params:&meshlib::voxels_load::RawParameters ,
cb:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_MR_VdbVolume_std_string >

Load raw voxels from stream with provided parameters; important on Windows: in stream must be open in binary mode Generated from function MR::VoxelsLoad::fromRaw.

Calls MR_VoxelsLoad_fromRaw_3_std_istream().

◆ from_vdb()

auto meshlib::voxels_load::from_vdb ( file:& str,
cb:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_std_vector_MR_VdbVolume_std_string >

Load all voxel volumes from OpenVDB file Generated from function MR::VoxelsLoad::fromVdb.

Calls MR_VoxelsLoad_fromVdb().

◆ grid_from_raw_2()

auto meshlib::voxels_load::grid_from_raw_2 ( file:& str,
cb:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_MR_FloatGrid_std_string >

Load raw voxels file, parsing parameters from name Generated from function MR::VoxelsLoad::gridFromRaw.

Calls MR_VoxelsLoad_gridFromRaw_2().

◆ grid_from_raw_3_std_filesystem_path()

auto meshlib::voxels_load::grid_from_raw_3_std_filesystem_path ( file:& str,
params:&meshlib::voxels_load::RawParameters ,
cb:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_MR_FloatGrid_std_string >

Load raw voxels from file with provided parameters Generated from function MR::VoxelsLoad::gridFromRaw.

Calls MR_VoxelsLoad_gridFromRaw_3_std_filesystem_path().

◆ grid_from_raw_3_std_istream()

auto meshlib::voxels_load::grid_from_raw_3_std_istream ( in:&mut meshlib::std_istream ,
params:&meshlib::voxels_load::RawParameters ,
cb:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_MR_FloatGrid_std_string >

Load raw voxels from stream with provided parameters; important on Windows: in stream must be open in binary mode Generated from function MR::VoxelsLoad::gridFromRaw.

Calls MR_VoxelsLoad_gridFromRaw_3_std_istream().

◆ grids_from_any_supported_format()

auto meshlib::voxels_load::grids_from_any_supported_format ( file:& str,
cb:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_std_vector_MR_FloatGrid_std_string >

Detects the format from file extension and loads voxels from it Generated from function MR::VoxelsLoad::gridsFromAnySupportedFormat.

Calls MR_VoxelsLoad_gridsFromAnySupportedFormat().

◆ grids_from_vdb_std_filesystem_path()

auto meshlib::voxels_load::grids_from_vdb_std_filesystem_path ( file:& str,
cb:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_std_vector_MR_FloatGrid_std_string >

Generated from function MR::VoxelsLoad::gridsFromVdb.

Calls MR_VoxelsLoad_gridsFromVdb_std_filesystem_path().

◆ grids_from_vdb_std_istream()

auto meshlib::voxels_load::grids_from_vdb_std_istream ( in:&mut meshlib::std_istream ,
cb:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_std_vector_MR_FloatGrid_std_string >

Generated from function MR::VoxelsLoad::gridsFromVdb.

Calls MR_VoxelsLoad_gridsFromVdb_std_istream().

◆ is_dicom_file()

auto meshlib::voxels_load::is_dicom_file ( path:& str,
seriesUid:Option<&mut meshlib::std_string > ,
dims:Option<&mut meshlib::Vector3i >  ) -> meshlib::Owned< meshlib::voxels_load::DicomStatus >

check if file is a valid DICOM dataset file

Parameters
seriesUid- if set, the extracted series instance UID is copied to the variable
dims- optional output of the file volume's dimensions Generated from function MR::VoxelsLoad::isDicomFile.

Calls MR_VoxelsLoad_isDicomFile().

◆ is_dicom_folder()

auto meshlib::voxels_load::is_dicom_folder ( dirPath:& str) -> bool

check if given folder contains at least one DICOM file Generated from function MR::VoxelsLoad::isDicomFolder.

Calls MR_VoxelsLoad_isDicomFolder().

◆ load_dicom_file()

auto meshlib::voxels_load::load_dicom_file ( file:& str,
cb:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_MR_VoxelsLoad_DicomVolume_std_string >

Loads full volume from single DICOM file (not a slice file) as SimpleVolumeMinMax Generated from function MR::VoxelsLoad::loadDicomFile.

Calls MR_VoxelsLoad_loadDicomFile().

◆ load_dicom_file_as_vdb()

auto meshlib::voxels_load::load_dicom_file_as_vdb ( file:& str,
cb:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_MR_VoxelsLoad_DicomVolumeAsVdb_std_string >

Loads full volume from single DICOM file (not a slice file) as VdbVolume Generated from function MR::VoxelsLoad::loadDicomFileAsVdb.

Calls MR_VoxelsLoad_loadDicomFileAsVdb().

◆ load_dicom_folder()

auto meshlib::voxels_load::load_dicom_folder ( path:& str,
maxNumThreads:core::ffi::c_uint ,
cb:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_MR_VoxelsLoad_DicomVolume_std_string >

Loads one volume from DICOM files located in given folder as SimpleVolumeMinMax Generated from function MR::VoxelsLoad::loadDicomFolder.

Calls MR_VoxelsLoad_loadDicomFolder().

◆ load_dicom_folder_as_vdb()

auto meshlib::voxels_load::load_dicom_folder_as_vdb ( path:& str,
maxNumThreads:core::ffi::c_uint ,
cb:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_MR_VoxelsLoad_DicomVolumeAsVdb_std_string >

Loads one volume from DICOM files located in given folder as VdbVolume Generated from function MR::VoxelsLoad::loadDicomFolderAsVdb.

Calls MR_VoxelsLoad_loadDicomFolderAsVdb().

◆ load_dicoms_folder()

auto meshlib::voxels_load::load_dicoms_folder ( path:& str,
maxNumThreads:core::ffi::c_uint ,
cb:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::std_vector_expected_MR_VoxelsLoad_DicomVolume_std_string >

Loads all volumes from DICOM files located in given folder as a number of SimpleVolumeMinMax Generated from function MR::VoxelsLoad::loadDicomsFolder.

Calls MR_VoxelsLoad_loadDicomsFolder().

◆ load_dicoms_folder_as_vdb()

auto meshlib::voxels_load::load_dicoms_folder_as_vdb ( path:& str,
maxNumThreads:core::ffi::c_uint ,
cb:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::std_vector_expected_MR_VoxelsLoad_DicomVolumeAsVdb_std_string >

Loads all volumes from DICOM files located in given folder as a number of VdbVolume Generated from function MR::VoxelsLoad::loadDicomsFolderAsVdb.

Calls MR_VoxelsLoad_loadDicomsFolderAsVdb().

◆ load_dicoms_folder_tree_as_vdb()

auto meshlib::voxels_load::load_dicoms_folder_tree_as_vdb ( path:& str,
maxNumThreads:Option< core::ffi::c_uint > ,
cb:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::std_vector_expected_MR_VoxelsLoad_DicomVolumeAsVdb_std_string >

Loads every subfolder with DICOM volume as new object Generated from function MR::VoxelsLoad::loadDicomsFolderTreeAsVdb.

Calls MR_VoxelsLoad_loadDicomsFolderTreeAsVdb().

◆ load_raster_folder()

auto meshlib::voxels_load::load_raster_folder ( settings:&meshlib::voxels_load::RasterFolderLoadSettings ) -> meshlib::Owned< meshlib::expected_MR_VdbVolume_std_string >

Load voxels from the raster files of a folder, a layer from each file: the files are those of the extension with a raster loader that most files have, sorted by name; they must have the same RasterInfo, their values are converted by convertRasterToFloats Generated from function MR::VoxelsLoad::loadRasterFolder.

Calls MR_VoxelsLoad_loadRasterFolder().

◆ make_object_voxels_from_dicom_folder()

auto meshlib::voxels_load::make_object_voxels_from_dicom_folder ( folder:& str,
callback:Option<&meshlib::std_function_bool_from_float >  ) -> meshlib::Owned< meshlib::expected_MR_LoadedObjects_std_string >

Loads 3D volumetric data from dicom-files in given folder, and converts them into an ObjectVoxels Generated from function MR::VoxelsLoad::makeObjectVoxelsFromDicomFolder.

Calls MR_VoxelsLoad_makeObjectVoxelsFromDicomFolder().