26 bool gridLevelSet{
false };
27 ScalarType scalarType{ ScalarType::Float32 };
31 const ProgressCallback& cb = {} );
35 const ProgressCallback& cb = {} );
39 const ProgressCallback& cb = {} );
44 const ProgressCallback& cb = {} );
53 const ProgressCallback& cb = {} );
57 const ProgressCallback& cb = {} );
61 const ProgressCallback& cb = {} );
64 const ProgressCallback& cb = {} );
66 const ProgressCallback& cb = {} );
70MRVOXELS_API Expected<VdbVolume>
fromGav(
const std::filesystem::path& file,
const ProgressCallback& cb = {} );
77 const ProgressCallback& cb = {} );
81 const ProgressCallback& cb = {} );
94#ifndef MRVOXELS_NO_TIFF
95struct LoadingTiffSettings
97 std::filesystem::path dir;
98 Vector3f voxelSize = { 1.0f, 1.0f, 1.0f };
99 GridType gridType = GridType::DenseGrid;
100 ProgressCallback cb = {};
106#ifndef MR_PARSING_FOR_ANY_BINDINGS
107using VoxelsLoader = Expected<std::vector<VdbVolume>>( * )(
const std::filesystem::path&,
const ProgressCallback& );
#define MRVOXELS_API
Definition MRVoxelsFwd.h:14
Definition MRVoxelsLoad.h:96
Definition MRVoxelsLoad.h:23
new unsafe ref MR.Vector3f voxelSize
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< std::vector< FloatGrid > > gridsFromVdb(const std::filesystem::path &file, const ProgressCallback &cb={})
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< FloatGrid > gridFromRaw(const std::filesystem::path &file, const RawParameters ¶ms, const ProgressCallback &cb={})
Load raw voxels from file with provided parameters.
MRVOXELS_API Expected< std::vector< FloatGrid > > gridsFromAnySupportedFormat(const std::filesystem::path &file, const ProgressCallback &cb={})
Detects the format from file extension and loads voxels from it.
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.
Definition MRCameraOrientationPlugin.h:8
MRVOXELS_API Expected< LoadedObjects > makeObjectFromVoxelsFile(const std::filesystem::path &file, const ProgressCallback &callback={})
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