MeshLib Java Docs
Loading...
Searching...
No Matches
meshlib.voxelsload.Functions Class Reference

Static Public Member Functions

static meshlib.voxelsload.DicomStatus isDicomFile (java.lang.String path, meshlib.std_string seriesUid, meshlib.Vector3i dims)
static boolean isDicomFolder (java.lang.String dirPath)
static meshlib.std_vector_std_filesystem_path findDicomFoldersRecursively (java.lang.String path)
static meshlib.voxelsload.DicomVolume loadDicomFile (java.lang.String file, meshlib.std_function_bool_from_float cb)
static meshlib.voxelsload.DicomVolumeAsVdb loadDicomFileAsVdb (java.lang.String file, meshlib.std_function_bool_from_float cb)
static meshlib.voxelsload.DicomVolume loadDicomFolder (java.lang.String path, int maxNumThreads, meshlib.std_function_bool_from_float cb)
static meshlib.voxelsload.DicomVolumeAsVdb loadDicomFolderAsVdb (java.lang.String path, int maxNumThreads, meshlib.std_function_bool_from_float cb)
static meshlib.std_vector_expected_MR_VoxelsLoad_DicomVolume_std_string loadDicomsFolder (java.lang.String path, int maxNumThreads, meshlib.std_function_bool_from_float cb)
static meshlib.std_vector_expected_MR_VoxelsLoad_DicomVolumeAsVdb_std_string loadDicomsFolderAsVdb (java.lang.String path, int maxNumThreads, meshlib.std_function_bool_from_float cb)
static meshlib.std_vector_expected_MR_VoxelsLoad_DicomVolumeAsVdb_std_string loadDicomsFolderTreeAsVdb (java.lang.String path, java.lang.Integer maxNumThreads, meshlib.std_function_bool_from_float cb)
static meshlib.std_shared_ptr_MR_ObjectVoxels createObjectVoxels (meshlib.voxelsload.DicomVolumeAsVdb dcm, meshlib.std_function_bool_from_float cb)
static meshlib.LoadedObjects makeObjectVoxelsFromDicomFolder (java.lang.String folder, meshlib.std_function_bool_from_float callback)
static meshlib.VdbVolume fromRaw (java.lang.String file, meshlib.voxelsload.RawParameters params, meshlib.std_function_bool_from_float cb)
static meshlib.VdbVolume fromRaw (meshlib.std_istream in, meshlib.voxelsload.RawParameters params, meshlib.std_function_bool_from_float cb)
static meshlib.FloatGrid gridFromRaw (java.lang.String file, meshlib.voxelsload.RawParameters params, meshlib.std_function_bool_from_float cb)
static meshlib.FloatGrid gridFromRaw (meshlib.std_istream in, meshlib.voxelsload.RawParameters params, meshlib.std_function_bool_from_float cb)
static meshlib.voxelsload.RawParameters findRawParameters (meshlib.std_filesystem_path file)
static meshlib.VdbVolume fromRaw (java.lang.String file, meshlib.std_function_bool_from_float cb)
static meshlib.FloatGrid gridFromRaw (java.lang.String file, meshlib.std_function_bool_from_float cb)
static meshlib.std_vector_MR_VdbVolume fromVdb (java.lang.String file, meshlib.std_function_bool_from_float cb)
static meshlib.std_vector_MR_FloatGrid gridsFromVdb (java.lang.String file, meshlib.std_function_bool_from_float cb)
static meshlib.std_vector_MR_FloatGrid gridsFromVdb (meshlib.std_istream in, meshlib.std_function_bool_from_float cb)
static meshlib.VdbVolume fromGav (java.lang.String file, meshlib.std_function_bool_from_float cb)
static meshlib.VdbVolume fromGav (meshlib.std_istream in, meshlib.std_function_bool_from_float cb)
static meshlib.std_vector_MR_FloatGrid gridsFromAnySupportedFormat (java.lang.String file, meshlib.std_function_bool_from_float cb)
static meshlib.std_vector_MR_VdbVolume fromAnySupportedFormat (java.lang.String file, meshlib.std_function_bool_from_float cb)
static meshlib.VdbVolume loadRasterFolder (meshlib.voxelsload.RasterFolderLoadSettings settings)

Detailed Description

The free functions of this namespace.

Member Function Documentation

◆ createObjectVoxels()

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

Calls MR_VoxelsLoad_createObjectVoxels(). The C++ function returns expected<std::shared_ptr<MR::ObjectVoxels>, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ findDicomFoldersRecursively()

meshlib.std_vector_std_filesystem_path meshlib.voxelsload.Functions.findDicomFoldersRecursively ( java.lang.String path)
static

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

Calls MR_VoxelsLoad_findDicomFoldersRecursively().

◆ findRawParameters()

meshlib.voxelsload.RawParameters meshlib.voxelsload.Functions.findRawParameters ( meshlib.std_filesystem_path file)
static

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(). The C++ function returns expected<MR::VoxelsLoad::RawParameters, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ fromAnySupportedFormat()

meshlib.std_vector_MR_VdbVolume meshlib.voxelsload.Functions.fromAnySupportedFormat ( java.lang.String file,
meshlib.std_function_bool_from_float cb )
static

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

Calls MR_VoxelsLoad_fromAnySupportedFormat(). The C++ function returns expected<std::vector<MR::VdbVolume>, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ fromGav() [1/2]

meshlib.VdbVolume meshlib.voxelsload.Functions.fromGav ( java.lang.String file,
meshlib.std_function_bool_from_float cb )
static

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

Calls MR_VoxelsLoad_fromGav_std_filesystem_path(). The C++ function returns expected<MR::VdbVolume, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ fromGav() [2/2]

meshlib.VdbVolume meshlib.voxelsload.Functions.fromGav ( meshlib.std_istream in,
meshlib.std_function_bool_from_float cb )
static

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

Calls MR_VoxelsLoad_fromGav_std_istream(). The C++ function returns expected<MR::VdbVolume, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ fromRaw() [1/3]

meshlib.VdbVolume meshlib.voxelsload.Functions.fromRaw ( java.lang.String file,
meshlib.std_function_bool_from_float cb )
static

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

Calls MR_VoxelsLoad_fromRaw_2(). The C++ function returns expected<MR::VdbVolume, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ fromRaw() [2/3]

meshlib.VdbVolume meshlib.voxelsload.Functions.fromRaw ( java.lang.String file,
meshlib.voxelsload.RawParameters params,
meshlib.std_function_bool_from_float cb )
static

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

Calls MR_VoxelsLoad_fromRaw_3_std_filesystem_path(). The C++ function returns expected<MR::VdbVolume, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ fromRaw() [3/3]

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(). The C++ function returns expected<MR::VdbVolume, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ fromVdb()

meshlib.std_vector_MR_VdbVolume meshlib.voxelsload.Functions.fromVdb ( java.lang.String file,
meshlib.std_function_bool_from_float cb )
static

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

Calls MR_VoxelsLoad_fromVdb(). The C++ function returns expected<std::vector<MR::VdbVolume>, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ gridFromRaw() [1/3]

meshlib.FloatGrid meshlib.voxelsload.Functions.gridFromRaw ( java.lang.String file,
meshlib.std_function_bool_from_float cb )
static

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

Calls MR_VoxelsLoad_gridFromRaw_2(). The C++ function returns expected<MR::FloatGrid, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ gridFromRaw() [2/3]

meshlib.FloatGrid meshlib.voxelsload.Functions.gridFromRaw ( java.lang.String file,
meshlib.voxelsload.RawParameters params,
meshlib.std_function_bool_from_float cb )
static

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

Calls MR_VoxelsLoad_gridFromRaw_3_std_filesystem_path(). The C++ function returns expected<MR::FloatGrid, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ gridFromRaw() [3/3]

meshlib.FloatGrid meshlib.voxelsload.Functions.gridFromRaw ( meshlib.std_istream in,
meshlib.voxelsload.RawParameters params,
meshlib.std_function_bool_from_float cb )
static

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(). The C++ function returns expected<MR::FloatGrid, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ gridsFromAnySupportedFormat()

meshlib.std_vector_MR_FloatGrid meshlib.voxelsload.Functions.gridsFromAnySupportedFormat ( java.lang.String file,
meshlib.std_function_bool_from_float cb )
static

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

Calls MR_VoxelsLoad_gridsFromAnySupportedFormat(). The C++ function returns expected<std::vector<MR::FloatGrid>, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ gridsFromVdb() [1/2]

meshlib.std_vector_MR_FloatGrid meshlib.voxelsload.Functions.gridsFromVdb ( java.lang.String file,
meshlib.std_function_bool_from_float cb )
static

Generated from function MR::VoxelsLoad::gridsFromVdb.

Calls MR_VoxelsLoad_gridsFromVdb_std_filesystem_path(). The C++ function returns expected<std::vector<MR::FloatGrid>, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ gridsFromVdb() [2/2]

meshlib.std_vector_MR_FloatGrid meshlib.voxelsload.Functions.gridsFromVdb ( meshlib.std_istream in,
meshlib.std_function_bool_from_float cb )
static

Generated from function MR::VoxelsLoad::gridsFromVdb.

Calls MR_VoxelsLoad_gridsFromVdb_std_istream(). The C++ function returns expected<std::vector<MR::FloatGrid>, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ isDicomFile()

meshlib.voxelsload.DicomStatus meshlib.voxelsload.Functions.isDicomFile ( java.lang.String path,
meshlib.std_string seriesUid,
meshlib.Vector3i dims )
static

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().

◆ isDicomFolder()

boolean meshlib.voxelsload.Functions.isDicomFolder ( java.lang.String dirPath)
static

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

Calls MR_VoxelsLoad_isDicomFolder().

◆ loadDicomFile()

meshlib.voxelsload.DicomVolume meshlib.voxelsload.Functions.loadDicomFile ( java.lang.String file,
meshlib.std_function_bool_from_float cb )
static

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

Calls MR_VoxelsLoad_loadDicomFile(). The C++ function returns expected<MR::VoxelsLoad::DicomVolume, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ loadDicomFileAsVdb()

meshlib.voxelsload.DicomVolumeAsVdb meshlib.voxelsload.Functions.loadDicomFileAsVdb ( java.lang.String file,
meshlib.std_function_bool_from_float cb )
static

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

Calls MR_VoxelsLoad_loadDicomFileAsVdb(). The C++ function returns expected<MR::VoxelsLoad::DicomVolumeAsVdb, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ loadDicomFolder()

meshlib.voxelsload.DicomVolume meshlib.voxelsload.Functions.loadDicomFolder ( java.lang.String path,
int maxNumThreads,
meshlib.std_function_bool_from_float cb )
static

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

Calls MR_VoxelsLoad_loadDicomFolder(). The C++ function returns expected<MR::VoxelsLoad::DicomVolume, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ loadDicomFolderAsVdb()

meshlib.voxelsload.DicomVolumeAsVdb meshlib.voxelsload.Functions.loadDicomFolderAsVdb ( java.lang.String path,
int maxNumThreads,
meshlib.std_function_bool_from_float cb )
static

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

Calls MR_VoxelsLoad_loadDicomFolderAsVdb(). The C++ function returns expected<MR::VoxelsLoad::DicomVolumeAsVdb, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ loadDicomsFolder()

meshlib.std_vector_expected_MR_VoxelsLoad_DicomVolume_std_string meshlib.voxelsload.Functions.loadDicomsFolder ( java.lang.String path,
int maxNumThreads,
meshlib.std_function_bool_from_float cb )
static

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().

◆ loadDicomsFolderAsVdb()

meshlib.std_vector_expected_MR_VoxelsLoad_DicomVolumeAsVdb_std_string meshlib.voxelsload.Functions.loadDicomsFolderAsVdb ( java.lang.String path,
int maxNumThreads,
meshlib.std_function_bool_from_float cb )
static

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().

◆ loadDicomsFolderTreeAsVdb()

meshlib.std_vector_expected_MR_VoxelsLoad_DicomVolumeAsVdb_std_string meshlib.voxelsload.Functions.loadDicomsFolderTreeAsVdb ( java.lang.String path,
java.lang.Integer maxNumThreads,
meshlib.std_function_bool_from_float cb )
static

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

Calls MR_VoxelsLoad_loadDicomsFolderTreeAsVdb().

◆ loadRasterFolder()

meshlib.VdbVolume meshlib.voxelsload.Functions.loadRasterFolder ( meshlib.voxelsload.RasterFolderLoadSettings settings)
static

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(). The C++ function returns expected<MR::VdbVolume, std::string>: the value is returned and an error is thrown as UnexpectedResultException.

◆ makeObjectVoxelsFromDicomFolder()

meshlib.LoadedObjects meshlib.voxelsload.Functions.makeObjectVoxelsFromDicomFolder ( java.lang.String folder,
meshlib.std_function_bool_from_float callback )
static

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(). The C++ function returns expected<MR::LoadedObjects, std::string>: the value is returned and an error is thrown as UnexpectedResultException.


The documentation for this class was generated from the following file: