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

Classes

struct  MR::VoxelsLoad::RawParameters
 

Functions

MRVOXELS_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.
 
MRVOXELS_API Expected< VdbVolume > MR::VoxelsLoad::fromRaw (std::istream &in, const RawParameters &params, const ProgressCallback &cb={})
 
MRVOXELS_API Expected< RawParametersMR::VoxelsLoad::findRawParameters (std::filesystem::path &file)
 
MRVOXELS_API Expected< VdbVolume > MR::VoxelsLoad::fromRaw (const std::filesystem::path &file, const ProgressCallback &cb={})
 Load raw voxels file, parsing parameters from name.
 
MRVOXELS_API Expected< std::vector< VdbVolume > > MR::VoxelsLoad::fromVdb (const std::filesystem::path &file, const ProgressCallback &cb={})
 Load all voxel volumes from OpenVDB file.
 
MRVOXELS_API Expected< VdbVolume > MR::VoxelsLoad::fromGav (const std::filesystem::path &file, const ProgressCallback &cb={})
 Load voxel from Gav-file with micro CT reconstruction.
 
MRVOXELS_API Expected< VdbVolume > MR::VoxelsLoad::fromGav (std::istream &in, const ProgressCallback &cb={})
 Load voxel from Gav-stream with micro CT reconstruction.
 
MRVOXELS_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.
 

Detailed Description

Function Documentation

◆ findRawParameters()

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

MRVOXELS_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]

MRVOXELS_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]

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

Load voxel from Gav-stream with micro CT reconstruction.

◆ fromRaw() [1/3]

MRVOXELS_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]

MRVOXELS_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]

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

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

Load all voxel volumes from OpenVDB file.