71#ifndef MRVOXELS_NO_TIFF
74 std::filesystem::path
dir;
83#ifndef MR_PARSING_FOR_PB11_BINDINGS
#define MRVOXELS_API
Definition MRVoxels/MRVoxelsFwd.h:13
std::function< bool(float)> ProgressCallback
Definition MRMesh/MRMeshFwd.h:600
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< RawParameters > findRawParameters(std::filesystem::path &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 > fromRaw(const std::filesystem::path &file, const RawParameters ¶ms, const ProgressCallback &cb={})
Load raw voxels from file with provided parameters.
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 > loadTiffDir(const LoadingTiffSettings &settings)
Load voxels from a set of TIFF files.
GridType
Definition MRVoxels/MRVoxelsLoad.h:64
Expected< std::vector< VdbVolume > >(*)(const std::filesystem::path &, const ProgressCallback &) VoxelsLoader
Definition MRVoxels/MRVoxelsLoad.h:84
MRVOXELS_API Expected< LoadedObjects > makeObjectFromVoxelsFile(const std::filesystem::path &file, const ProgressCallback &callback={})
ScalarType
scalar value's binary format type
Definition MRScalarConvert.h:10
tl::expected< T, E > Expected
Definition MRExpected.h:58
MRVOXELS_API Expected< std::vector< std::shared_ptr< ObjectVoxels > > > makeObjectVoxelsFromFile(const std::filesystem::path &file, ProgressCallback callback={})
loads voxels from given file in new object
Definition MRVoxels/MRVoxelsLoad.h:73
GridType gridType
Definition MRVoxels/MRVoxelsLoad.h:76
Vector3f voxelSize
Definition MRVoxels/MRVoxelsLoad.h:75
std::filesystem::path dir
Definition MRVoxels/MRVoxelsLoad.h:74
ProgressCallback cb
Definition MRVoxels/MRVoxelsLoad.h:77
Definition MRVoxels/MRVoxelsLoad.h:23
bool gridLevelSet
OpenVDB GridClass set as GRID_LEVEL_SET (need to set right surface normals direction)
Definition MRVoxels/MRVoxelsLoad.h:26
ScalarType scalarType
Definition MRVoxels/MRVoxelsLoad.h:27
Vector3i dimensions
Definition MRVoxels/MRVoxelsLoad.h:24
Vector3f voxelSize
Definition MRVoxels/MRVoxelsLoad.h:25