MeshLib C++ Docs
Loading...
Searching...
No Matches
MRDicom.h File Reference
#include "MRVoxelsFwd.h"
#include "MRVoxelsVolume.h"
#include "MRMesh/MRAffineXf.h"
#include "MRMesh/MRMatrix3.h"
#include "MRMesh/MRLoadedObjects.h"
#include <filesystem>
#include <optional>

Go to the source code of this file.

Classes

struct  MR::VoxelsLoad::DicomVolumeT< T >
 

Namespaces

namespace  MR
 
namespace  MR::VoxelsLoad
 
namespace  MR::VoxelsSave
 

Functions

MRVOXELS_API bool MR::VoxelsLoad::isDicomFile (const std::filesystem::path &path, std::string *seriesUid=nullptr)
 
MRVOXELS_API bool MR::VoxelsLoad::isDicomFolder (const std::filesystem::path &dirPath)
 check if given folder contains at least one DICOM file
 
MRVOXELS_API Expected< DicomVolume > MR::VoxelsLoad::loadDicomFile (const std::filesystem::path &file, const ProgressCallback &cb={})
 Loads full volume from single DICOM file (not a slice file) as SimpleVolumeMinMax.
 
MRVOXELS_API Expected< DicomVolumeAsVdb > MR::VoxelsLoad::loadDicomFileAsVdb (const std::filesystem::path &file, const ProgressCallback &cb={})
 Loads full volume from single DICOM file (not a slice file) as VdbVolume.
 
MRVOXELS_API Expected< DicomVolume > MR::VoxelsLoad::loadDicomFolder (const std::filesystem::path &path, unsigned maxNumThreads, const ProgressCallback &cb={})
 Loads one volume from DICOM files located in given folder as SimpleVolumeMinMax.
 
MRVOXELS_API Expected< DicomVolumeAsVdb > MR::VoxelsLoad::loadDicomFolderAsVdb (const std::filesystem::path &path, unsigned maxNumThreads, const ProgressCallback &cb={})
 Loads one volume from DICOM files located in given folder as VdbVolume.
 
MRVOXELS_API std::vector< Expected< DicomVolume > > MR::VoxelsLoad::loadDicomsFolder (const std::filesystem::path &path, unsigned maxNumThreads, const ProgressCallback &cb={})
 Loads all volumes from DICOM files located in given folder as a number of SimpleVolumeMinMax.
 
MRVOXELS_API std::vector< Expected< DicomVolumeAsVdb > > MR::VoxelsLoad::loadDicomsFolderAsVdb (const std::filesystem::path &path, unsigned maxNumThreads, const ProgressCallback &cb={})
 Loads all volumes from DICOM files located in given folder as a number of VdbVolume.
 
MRVOXELS_API std::vector< Expected< DicomVolumeAsVdb > > MR::VoxelsLoad::loadDicomsFolderTreeAsVdb (const std::filesystem::path &path, unsigned maxNumThreads=4, const ProgressCallback &cb={})
 Loads every subfolder with DICOM volume as new object.
 
MRVOXELS_API Expected< std::shared_ptr< ObjectVoxels > > MR::VoxelsLoad::createObjectVoxels (const DicomVolumeAsVdb &dcm, const ProgressCallback &cb={})
 converts DicomVolumeAsVdb in ObjectVoxels
 
MRVOXELS_API Expected< LoadedObjectsMR::VoxelsLoad::makeObjectVoxelsFromDicomFolder (const std::filesystem::path &folder, const ProgressCallback &callback={})
 Loads 3D volumetric data from dicom-files in given folder, and converts them into an ObjectVoxels.
 
MRVOXELS_API Expected< void > MR::VoxelsSave::toDicom (const VdbVolume &vdbVolume, const std::filesystem::path &path, ProgressCallback cb={})
 Save voxels objet to a single 3d DICOM file.
 
template<typename T >
MRVOXELS_API Expected< void > MR::VoxelsSave::toDicom (const VoxelsVolume< std::vector< T > > &volume, const std::filesystem::path &path, const std::optional< MinMaxf > &sourceScale={}, const ProgressCallback &cb={})
 
template MRVOXELS_API Expected< void > MR::VoxelsSave::toDicom (const VoxelsVolume< std::vector< std::uint16_t > > &volume, const std::filesystem::path &path, const std::optional< MinMaxf > &sourceScale, const ProgressCallback &cb)