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
 

Typedefs

using MR::VoxelsLoad::DicomVolume = DicomVolumeT<SimpleVolumeMinMax>
 
using MR::VoxelsLoad::DicomVolumeAsVdb = DicomVolumeT<VdbVolume>
 

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
 
template<typename T = SimpleVolumeMinMax>
MRVOXELS_API std::vector< Expected< DicomVolumeT< T > > > MR::VoxelsLoad::loadDicomsFolder (const std::filesystem::path &path, unsigned maxNumThreads=4, const ProgressCallback &cb={})
 
template<typename T = SimpleVolumeMinMax>
MRVOXELS_API Expected< DicomVolumeT< T > > MR::VoxelsLoad::loadDicomFolder (const std::filesystem::path &path, unsigned maxNumThreads=4, const ProgressCallback &cb={})
 
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< LoadedObjectVoxelsMR::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.
 
template<typename T = SimpleVolumeMinMax>
MRVOXELS_API Expected< DicomVolumeT< T > > MR::VoxelsLoad::loadDicomFile (const std::filesystem::path &path, const ProgressCallback &cb={})
 Loads 3D volumetric data from a single DICOM file.
 
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={})