MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::VoxelsLoad Namespace Reference

Classes

struct  DicomVolumeT
 
struct  LoadingTiffSettings
 
struct  RawParameters
 

Typedefs

using DicomVolume = DicomVolumeT<SimpleVolumeMinMax>
 
using DicomVolumeAsVdb = DicomVolumeT<VdbVolume>
 
using VoxelsLoader = Expected<std::vector<VdbVolume>>( * )( const std::filesystem::path&, const ProgressCallback& )
 

Enumerations

enum class  GridType { DenseGrid = 0 , LevelSet = 1 }
 

Functions

MRVOXELS_API bool isDicomFile (const std::filesystem::path &path, std::string *seriesUid=nullptr)
 
MRVOXELS_API bool isDicomFolder (const std::filesystem::path &dirPath)
 check if given folder contains at least one DICOM file
 
template<typename T = SimpleVolumeMinMax>
MRVOXELS_API std::vector< Expected< DicomVolumeT< T > > > loadDicomsFolder (const std::filesystem::path &path, unsigned maxNumThreads=4, const ProgressCallback &cb={})
 
template<typename T = SimpleVolumeMinMax>
MRVOXELS_API Expected< DicomVolumeT< T > > loadDicomFolder (const std::filesystem::path &path, unsigned maxNumThreads=4, const ProgressCallback &cb={})
 
MRVOXELS_API std::vector< Expected< DicomVolumeAsVdb > > loadDicomsFolderTreeAsVdb (const std::filesystem::path &path, unsigned maxNumThreads=4, const ProgressCallback &cb={})
 Loads every subfolder with DICOM volume as new object.
 
MRVOXELS_API Expected< std::shared_ptr< ObjectVoxels > > createObjectVoxels (const DicomVolumeAsVdb &dcm, const ProgressCallback &cb={})
 converts DicomVolumeAsVdb in ObjectVoxels
 
MRVOXELS_API Expected< LoadedObjectVoxelsmakeObjectVoxelsFromDicomFolder (const std::filesystem::path &folder, const ProgressCallback &callback={})
 Loads 3D volumetric data from dicom-files in given folder, and converts them into an ObjectVoxels.
 
template<typename T = SimpleVolumeMinMax>
MRVOXELS_API Expected< DicomVolumeT< T > > loadDicomFile (const std::filesystem::path &path, const ProgressCallback &cb={})
 Loads 3D volumetric data from a single DICOM file.
 
MRVOXELS_API Expected< VdbVolume > fromRaw (const std::filesystem::path &file, const RawParameters &params, const ProgressCallback &cb={})
 Load raw voxels from file with provided parameters.
 
MRVOXELS_API Expected< VdbVolume > fromRaw (std::istream &in, const RawParameters &params, const ProgressCallback &cb={})
 
MRVOXELS_API Expected< RawParametersfindRawParameters (std::filesystem::path &file)
 
MRVOXELS_API Expected< VdbVolume > fromRaw (const std::filesystem::path &file, const ProgressCallback &cb={})
 Load raw voxels file, parsing parameters from name.
 
MRVOXELS_API Expected< std::vector< VdbVolume > > fromVdb (const std::filesystem::path &file, const ProgressCallback &cb={})
 Load all voxel volumes from OpenVDB file.
 
MRVOXELS_API Expected< VdbVolume > fromGav (const std::filesystem::path &file, const ProgressCallback &cb={})
 Load voxel from Gav-file with micro CT reconstruction.
 
MRVOXELS_API Expected< VdbVolume > fromGav (std::istream &in, const ProgressCallback &cb={})
 Load voxel from Gav-stream with micro CT reconstruction.
 
MRVOXELS_API Expected< std::vector< VdbVolume > > fromAnySupportedFormat (const std::filesystem::path &file, const ProgressCallback &cb={})
 Detects the format from file extension and loads voxels from it.
 
MRVOXELS_API Expected< VdbVolume > loadTiffDir (const LoadingTiffSettings &settings)
 Load voxels from a set of TIFF files.
 

Typedef Documentation

◆ DicomVolume

using MR::VoxelsLoad::DicomVolume = DicomVolumeT<SimpleVolumeMinMax>

◆ DicomVolumeAsVdb

◆ VoxelsLoader

using MR::VoxelsLoad::VoxelsLoader = Expected<std::vector<VdbVolume>>( * )( const std::filesystem::path&, const ProgressCallback& )

Enumeration Type Documentation

◆ GridType

enum class MR::VoxelsLoad::GridType
strong
Enumerator
DenseGrid 
LevelSet 

Function Documentation

◆ createObjectVoxels()

MRVOXELS_API Expected< std::shared_ptr< ObjectVoxels > > MR::VoxelsLoad::createObjectVoxels ( const DicomVolumeAsVdb & dcm,
const ProgressCallback & cb = {} )

converts DicomVolumeAsVdb in ObjectVoxels

◆ isDicomFile()

MRVOXELS_API bool MR::VoxelsLoad::isDicomFile ( const std::filesystem::path & path,
std::string * seriesUid = nullptr )

check if file is a valid DICOM dataset file

Parameters
seriesUid- if set, the extracted series instance UID is copied to the variable

◆ isDicomFolder()

MRVOXELS_API bool MR::VoxelsLoad::isDicomFolder ( const std::filesystem::path & dirPath)

check if given folder contains at least one DICOM file

◆ loadDicomFile()

template<typename T = SimpleVolumeMinMax>
MRVOXELS_API Expected< DicomVolumeT< T > > MR::VoxelsLoad::loadDicomFile ( const std::filesystem::path & path,
const ProgressCallback & cb = {} )

Loads 3D volumetric data from a single DICOM file.

◆ loadDicomFolder()

template<typename T = SimpleVolumeMinMax>
MRVOXELS_API Expected< DicomVolumeT< T > > 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

Note
Explicitly instantiated for T = SimpleVolumeMinMax and T = VdbVolume

◆ loadDicomsFolder()

template<typename T = SimpleVolumeMinMax>
MRVOXELS_API std::vector< Expected< DicomVolumeT< T > > > 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

Note
Explicitly instantiated for T = SimpleVolumeMinMax and T = VdbVolume

◆ loadDicomsFolderTreeAsVdb()

MRVOXELS_API std::vector< Expected< DicomVolumeAsVdb > > MR::VoxelsLoad::loadDicomsFolderTreeAsVdb ( const std::filesystem::path & path,
unsigned maxNumThreads = 4,
const ProgressCallback & cb = {} )

Loads every subfolder with DICOM volume as new object.

◆ loadTiffDir()

MRVOXELS_API Expected< VdbVolume > MR::VoxelsLoad::loadTiffDir ( const LoadingTiffSettings & settings)

Load voxels from a set of TIFF files.

◆ makeObjectVoxelsFromDicomFolder()

MRVOXELS_API Expected< LoadedObjectVoxels > MR::VoxelsLoad::makeObjectVoxelsFromDicomFolder ( const std::filesystem::path & folder,
const ProgressCallback & callback = {} )

Loads 3D volumetric data from dicom-files in given folder, and converts them into an ObjectVoxels.