92#ifndef MRVOXELS_NO_TIFF
95 std::filesystem::path
dir;
104#ifndef MR_PARSING_FOR_ANY_BINDINGS
#define MRVOXELS_API
see explanation in MRMesh/MRMeshFwd.h
Definition MRVoxelsFwd.h:14
std::function< bool(float)> ProgressCallback
Definition MRMeshFwd.h:753
ScalarType
scalar value's binary format type
Definition MRScalarConvert.h:13
tl::expected< T, E > Expected
Definition MRExpected.h:31
@ Float32
Definition MRScalarConvert.h:22
GridType gridType
Definition MRVoxelsLoad.h:97
Expected< std::vector< VdbVolume > > fromAnySupportedFormat(const std::filesystem::path &file, const ProgressCallback &cb={})
Detects the format from file extension and loads voxels from it.
Vector3f voxelSize
Definition MRVoxelsLoad.h:96
Expected< std::vector< FloatGrid > > gridsFromVdb(const std::filesystem::path &file, const ProgressCallback &cb={})
GridType
Determines iso-surface orientation.
Definition MRVoxelsLoad.h:85
bool gridLevelSet
OpenVDB GridClass set as GRID_LEVEL_SET (need to set right surface normals direction)
Definition MRVoxelsLoad.h:26
ScalarType scalarType
Definition MRVoxelsLoad.h:27
Expected< std::vector< VdbVolume > > fromVdb(const std::filesystem::path &file, const ProgressCallback &cb={})
Load all voxel volumes from OpenVDB file.
Expected< VdbVolume > fromRaw(const std::filesystem::path &file, const RawParameters ¶ms, const ProgressCallback &cb={})
Load raw voxels from file with provided parameters.
Expected< VdbVolume > loadTiffDir(const LoadingTiffSettings &settings)
Load voxels from a set of TIFF files.
std::filesystem::path dir
Definition MRVoxelsLoad.h:95
Expected< RawParameters > findRawParameters(std::filesystem::path &file)
Vector3i dimensions
Definition MRVoxelsLoad.h:24
Expected< FloatGrid > gridFromRaw(const std::filesystem::path &file, const RawParameters ¶ms, const ProgressCallback &cb={})
Load raw voxels from file with provided parameters.
Expected< VdbVolume > fromGav(const std::filesystem::path &file, const ProgressCallback &cb={})
Load voxel from Gav-file with micro CT reconstruction.
Expected< std::vector< VdbVolume > >(*)(const std::filesystem::path &, const ProgressCallback &) VoxelsLoader
MRVOXELS_NO_TIFF.
Definition MRVoxelsLoad.h:105
Expected< std::vector< FloatGrid > > gridsFromAnySupportedFormat(const std::filesystem::path &file, const ProgressCallback &cb={})
Detects the format from file extension and loads voxels from it.
ProgressCallback cb
Definition MRVoxelsLoad.h:98
Vector3f voxelSize
Definition MRVoxelsLoad.h:25
@ DenseGrid
consider values less than iso as outer area
Definition MRVoxelsLoad.h:87
@ LevelSet
consider values less than iso as inner area
Definition MRVoxelsLoad.h:89
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Expected< std::vector< std::shared_ptr< ObjectVoxels > > > makeObjectVoxelsFromFile(const std::filesystem::path &file, ProgressCallback callback={})
loads voxels from given file in new object
Expected< LoadedObjects > makeObjectFromVoxelsFile(const std::filesystem::path &file, const ProgressCallback &callback={})
Definition MRVoxelsLoad.h:94
Definition MRVoxelsLoad.h:23