4#ifndef MRVOXELS_NO_DICOM
25 SimpleVolumeMinMax
vol;
#define MRVOXELS_API
Definition MRVoxelsFwd.h:13
std::function< bool(float)> ProgressCallback
Definition MRMesh/MRMeshFwd.h:576
MRVOXELS_API std::vector< Expected< DicomVolume > > loadDicomsFolder(const std::filesystem::path &path, unsigned maxNumThreads=4, const ProgressCallback &cb={})
Loads 3D all volumetric data from DICOM files in a folder.
MRVOXELS_API Expected< DicomVolume > loadDicomFile(const std::filesystem::path &path, const ProgressCallback &cb={})
Loads 3D volumetric data from a single DICOM file.
MRVOXELS_API Expected< LoadDCMResult > loadDCMFolder(const std::filesystem::path &path, unsigned maxNumThreads=4, const ProgressCallback &cb={})
Loads 3D first volumetric data from DICOM files in a folder.
MRVOXELS_API Expected< DicomVolume > loadDicomFolder(const std::filesystem::path &path, unsigned maxNumThreads=4, const ProgressCallback &cb={})
Loads 3D first volumetric data from DICOM files in a folder.
MRVOXELS_API std::vector< Expected< LoadDCMResult > > loadDCMFolderTree(const std::filesystem::path &path, unsigned maxNumThreads=4, const ProgressCallback &cb={})
Loads every subfolder with DICOM volume as new object.
MRVOXELS_API bool isDicomFile(const std::filesystem::path &path, std::string *seriesUid=nullptr)
MRVOXELS_API std::vector< Expected< LoadDCMResult > > loadDCMsFolder(const std::filesystem::path &path, unsigned maxNumThreads=4, const ProgressCallback &cb={})
Loads 3D all volumetric data from DICOM files in a folder.
MRVOXELS_API Expected< std::shared_ptr< ObjectVoxels > > createObjectVoxels(const LoadDCMResult &dcm, const ProgressCallback &cb={})
converts LoadDCMResult in ObjectVoxels
MRVOXELS_API Expected< void > toDCM(const VdbVolume &vdbVolume, const std::filesystem::path &path, ProgressCallback cb={})
Save voxels objet to a single 3d DICOM file.
Definition MRCameraOrientationPlugin.h:8
tl::expected< T, E > Expected
Definition MRExpected.h:58
std::string name
Definition MRDicom.h:26
AffineXf3f xf
Definition MRDicom.h:27
SimpleVolumeMinMax vol
Definition MRDicom.h:25
std::string name
Definition MRDicom.h:33
AffineXf3f xf
Definition MRDicom.h:34
VdbVolume vdbVolume
Definition MRDicom.h:32
represents a box in 3D space subdivided on voxels stored in T
Definition MRVoxelsVolume.h:39