MeshLib
 
Loading...
Searching...
No Matches
Voxels Load

Classes

struct  MR::VoxelsLoad::DicomVolume
 
struct  MR::VoxelsLoad::LoadDCMResult
 
struct  MR::VoxelsLoad::RawParameters
 

Functions

MRMESH_API void MR::VoxelsLoad::sortFilesByName (std::vector< std::filesystem::path > &scans)
 
MRMESH_API std::vector< Expected< LoadDCMResult > > MR::VoxelsLoad::loadDCMsFolder (const std::filesystem::path &path, unsigned maxNumThreads=4, const ProgressCallback &cb={})
 Loads 3D all volumetric data from DICOM files in a folder.
 
MRMESH_API Expected< LoadDCMResultMR::VoxelsLoad::loadDCMFolder (const std::filesystem::path &path, unsigned maxNumThreads=4, const ProgressCallback &cb={})
 Loads 3D first volumetric data from DICOM files in a folder.
 
MRMESH_API std::vector< Expected< DicomVolume > > MR::VoxelsLoad::loadDicomsFolder (const std::filesystem::path &path, unsigned maxNumThreads=4, const ProgressCallback &cb={})
 Loads 3D all volumetric data from DICOM files in a folder.
 
MRMESH_API Expected< DicomVolumeMR::VoxelsLoad::loadDicomFolder (const std::filesystem::path &path, unsigned maxNumThreads=4, const ProgressCallback &cb={})
 Loads 3D first volumetric data from DICOM files in a folder.
 
MRMESH_API std::vector< Expected< LoadDCMResult > > MR::VoxelsLoad::loadDCMFolderTree (const std::filesystem::path &path, unsigned maxNumThreads=4, const ProgressCallback &cb={})
 Loads every subfolder with DICOM volume as new object.
 
MRMESH_API Expected< DicomVolumeMR::VoxelsLoad::loadDicomFile (const std::filesystem::path &path, const ProgressCallback &cb={})
 Loads 3D volumetric data from a single DICOM file.
 
MRMESH_API Expected< VdbVolume > MR::VoxelsLoad::fromRaw (const std::filesystem::path &file, const RawParameters &params, const ProgressCallback &cb={})
 Load raw voxels from file with provided parameters.
 
MRMESH_API Expected< VdbVolume > MR::VoxelsLoad::fromRaw (std::istream &in, const RawParameters &params, const ProgressCallback &cb={})
 
MRMESH_API Expected< RawParametersMR::VoxelsLoad::findRawParameters (std::filesystem::path &file)
 
MRMESH_API Expected< VdbVolume > MR::VoxelsLoad::fromRaw (const std::filesystem::path &file, const ProgressCallback &cb={})
 Load raw voxels file, parsing parameters from name.
 
MRMESH_API Expected< std::vector< VdbVolume > > MR::VoxelsLoad::fromVdb (const std::filesystem::path &file, const ProgressCallback &cb={})
 Load all voxel volumes from OpenVDB file.
 
MRMESH_API Expected< VdbVolume > MR::VoxelsLoad::fromGav (const std::filesystem::path &file, const ProgressCallback &cb={})
 Load voxel from Gav-file with micro CT reconstruction.
 
MRMESH_API Expected< VdbVolume > MR::VoxelsLoad::fromGav (std::istream &in, const ProgressCallback &cb={})
 Load voxel from Gav-stream with micro CT reconstruction.
 
MRMESH_API Expected< std::vector< VdbVolume > > MR::VoxelsLoad::fromAnySupportedFormat (const std::filesystem::path &file, const ProgressCallback &cb={})
 Detects the format from file extension and loads voxels from it.
 

Variables

MRMESH_API const IOFilters MR::VoxelsLoad::Filters
 

Detailed Description

Function Documentation

◆ findRawParameters()

MRMESH_API Expected< RawParameters > MR::VoxelsLoad::findRawParameters ( std::filesystem::path & file)

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

◆ fromAnySupportedFormat()

MRMESH_API Expected< std::vector< VdbVolume > > MR::VoxelsLoad::fromAnySupportedFormat ( const std::filesystem::path & file,
const ProgressCallback & cb = {} )

Detects the format from file extension and loads voxels from it.

◆ fromGav() [1/2]

MRMESH_API Expected< VdbVolume > MR::VoxelsLoad::fromGav ( const std::filesystem::path & file,
const ProgressCallback & cb = {} )

Load voxel from Gav-file with micro CT reconstruction.

◆ fromGav() [2/2]

MRMESH_API Expected< VdbVolume > MR::VoxelsLoad::fromGav ( std::istream & in,
const ProgressCallback & cb = {} )

Load voxel from Gav-stream with micro CT reconstruction.

◆ fromRaw() [1/3]

MRMESH_API Expected< VdbVolume > MR::VoxelsLoad::fromRaw ( const std::filesystem::path & file,
const ProgressCallback & cb = {} )

Load raw voxels file, parsing parameters from name.

◆ fromRaw() [2/3]

MRMESH_API Expected< VdbVolume > MR::VoxelsLoad::fromRaw ( const std::filesystem::path & file,
const RawParameters & params,
const ProgressCallback & cb = {} )

Load raw voxels from file with provided parameters.

◆ fromRaw() [3/3]

MRMESH_API Expected< VdbVolume > MR::VoxelsLoad::fromRaw ( std::istream & in,
const RawParameters & params,
const ProgressCallback & cb = {} )

Load raw voxels from stream with provided parameters; important on Windows: in stream must be open in binary mode

◆ fromVdb()

MRMESH_API Expected< std::vector< VdbVolume > > MR::VoxelsLoad::fromVdb ( const std::filesystem::path & file,
const ProgressCallback & cb = {} )

Load all voxel volumes from OpenVDB file.

◆ loadDCMFolder()

MRMESH_API Expected< LoadDCMResult > MR::VoxelsLoad::loadDCMFolder ( const std::filesystem::path & path,
unsigned maxNumThreads = 4,
const ProgressCallback & cb = {} )

Loads 3D first volumetric data from DICOM files in a folder.

◆ loadDCMFolderTree()

MRMESH_API std::vector< Expected< LoadDCMResult > > MR::VoxelsLoad::loadDCMFolderTree ( const std::filesystem::path & path,
unsigned maxNumThreads = 4,
const ProgressCallback & cb = {} )

Loads every subfolder with DICOM volume as new object.

◆ loadDCMsFolder()

MRMESH_API std::vector< Expected< LoadDCMResult > > MR::VoxelsLoad::loadDCMsFolder ( const std::filesystem::path & path,
unsigned maxNumThreads = 4,
const ProgressCallback & cb = {} )

Loads 3D all volumetric data from DICOM files in a folder.

◆ loadDicomFile()

MRMESH_API Expected< DicomVolume > MR::VoxelsLoad::loadDicomFile ( const std::filesystem::path & path,
const ProgressCallback & cb = {} )

Loads 3D volumetric data from a single DICOM file.

◆ loadDicomFolder()

MRMESH_API Expected< DicomVolume > MR::VoxelsLoad::loadDicomFolder ( const std::filesystem::path & path,
unsigned maxNumThreads = 4,
const ProgressCallback & cb = {} )

Loads 3D first volumetric data from DICOM files in a folder.

◆ loadDicomsFolder()

MRMESH_API std::vector< Expected< DicomVolume > > MR::VoxelsLoad::loadDicomsFolder ( const std::filesystem::path & path,
unsigned maxNumThreads = 4,
const ProgressCallback & cb = {} )

Loads 3D all volumetric data from DICOM files in a folder.

◆ sortFilesByName()

MRMESH_API void MR::VoxelsLoad::sortFilesByName ( std::vector< std::filesystem::path > & scans)

Sort files in given vector by names (respect numbers in it) usually needed for scans

Variable Documentation

◆ Filters

MRMESH_API const IOFilters MR::VoxelsLoad::Filters
extern