MeshLib C# Docs
Loading...
Searching...
No Matches
MR.VoxelsLoad Class Reference

Public Types

enum  DicomStatusEnum
 
enum  GridType
 
enum  DicomStatusEnum : int { Ok = 0 , Invalid = 1 , Unsupported = 2 }
 
enum  GridType : int { DenseGrid = 0 , LevelSet = 1 }
 
typedef Expected< std::vector< VdbVolume > >(*)(const std::filesystem::path &, const ProgressCallback & VoxelsLoader)
 

Static Public Member Functions

static unsafe MR.VoxelsLoad.DicomStatus isDicomFile (string path, MR.Std.String? seriesUid=null, MR.Misc.InOut< MR.Vector3i >? dims=null)
 check if file is a valid DICOM dataset file
 
static unsafe bool isDicomFolder (string dirPath)
 check if given folder contains at least one DICOM file Generated from function MR.VoxelsLoad.isDicomFolder.
 
static unsafe MR.Std.Vector_StdFilesystemPath findDicomFoldersRecursively (string path)
 returns all the dicom folders in path, searching recursively Generated from function MR.VoxelsLoad.findDicomFoldersRecursively.
 
static unsafe MR.VoxelsLoad.DicomVolume loadDicomFile (string file, MR.Std.Const_Function_BoolFuncFromFloat? cb=null)
 Loads full volume from single DICOM file (not a slice file) as SimpleVolumeMinMax Generated from function MR.VoxelsLoad.loadDicomFile. Parameter cb defaults to {}.
 
static unsafe MR.VoxelsLoad.DicomVolumeAsVdb loadDicomFileAsVdb (string file, MR.Std.Const_Function_BoolFuncFromFloat? cb=null)
 Loads full volume from single DICOM file (not a slice file) as VdbVolume Generated from function MR.VoxelsLoad.loadDicomFileAsVdb. Parameter cb defaults to {}.
 
static unsafe MR.VoxelsLoad.DicomVolume loadDicomFolder (string path, uint maxNumThreads, MR.Std.Const_Function_BoolFuncFromFloat? cb=null)
 Loads one volume from DICOM files located in given folder as SimpleVolumeMinMax Generated from function MR.VoxelsLoad.loadDicomFolder. Parameter cb defaults to {}.
 
static unsafe MR.VoxelsLoad.DicomVolumeAsVdb loadDicomFolderAsVdb (string path, uint maxNumThreads, MR.Std.Const_Function_BoolFuncFromFloat? cb=null)
 Loads one volume from DICOM files located in given folder as VdbVolume Generated from function MR.VoxelsLoad.loadDicomFolderAsVdb. Parameter cb defaults to {}.
 
static unsafe MR.Std.Vector_ExpectedMRVoxelsLoadDicomVolumeStdString loadDicomsFolder (string path, uint maxNumThreads, MR.Std.Const_Function_BoolFuncFromFloat? cb=null)
 Loads all volumes from DICOM files located in given folder as a number of SimpleVolumeMinMax Generated from function MR.VoxelsLoad.loadDicomsFolder. Parameter cb defaults to {}.
 
static unsafe MR.Std.Vector_ExpectedMRVoxelsLoadDicomVolumeAsVdbStdString loadDicomsFolderAsVdb (string path, uint maxNumThreads, MR.Std.Const_Function_BoolFuncFromFloat? cb=null)
 Loads all volumes from DICOM files located in given folder as a number of VdbVolume Generated from function MR.VoxelsLoad.loadDicomsFolderAsVdb. Parameter cb defaults to {}.
 
static unsafe MR.Std.Vector_ExpectedMRVoxelsLoadDicomVolumeAsVdbStdString loadDicomsFolderTreeAsVdb (string path, uint? maxNumThreads=null, MR.Std.Const_Function_BoolFuncFromFloat? cb=null)
 Loads every subfolder with DICOM volume as new object Generated from function MR.VoxelsLoad.loadDicomsFolderTreeAsVdb. Parameter maxNumThreads defaults to 4. Parameter cb defaults to {}.
 
static unsafe MR.ObjectVoxels createObjectVoxels (MR.VoxelsLoad.Const_DicomVolumeAsVdb dcm, MR.Std.Const_Function_BoolFuncFromFloat? cb=null)
 converts DicomVolumeAsVdb in ObjectVoxels Generated from function MR.VoxelsLoad.createObjectVoxels. Parameter cb defaults to {}.
 
static unsafe MR.LoadedObjects makeObjectVoxelsFromDicomFolder (string folder, MR.Std.Const_Function_BoolFuncFromFloat? callback=null)
 Loads 3D volumetric data from dicom-files in given folder, and converts them into an ObjectVoxels Generated from function MR.VoxelsLoad.makeObjectVoxelsFromDicomFolder. Parameter callback defaults to {}.
 
static unsafe MR.VdbVolume fromRaw (string file, MR.VoxelsLoad.Const_RawParameters params_, MR.Std.Const_Function_BoolFuncFromFloat? cb=null)
 Load raw voxels from file with provided parameters Generated from function MR.VoxelsLoad.fromRaw. Parameter cb defaults to {}.
 
static unsafe MR.VdbVolume fromRaw (MR.Std.Istream in_, MR.VoxelsLoad.Const_RawParameters params_, MR.Std.Const_Function_BoolFuncFromFloat? cb=null)
 Load raw voxels from stream with provided parameters; important on Windows: in stream must be open in binary mode Generated from function MR.VoxelsLoad.fromRaw. Parameter cb defaults to {}.
 
static unsafe MR.FloatGrid gridFromRaw (string file, MR.VoxelsLoad.Const_RawParameters params_, MR.Std.Const_Function_BoolFuncFromFloat? cb=null)
 Load raw voxels from file with provided parameters Generated from function MR.VoxelsLoad.gridFromRaw. Parameter cb defaults to {}.
 
static unsafe MR.FloatGrid gridFromRaw (MR.Std.Istream in_, MR.VoxelsLoad.Const_RawParameters params_, MR.Std.Const_Function_BoolFuncFromFloat? cb=null)
 Load raw voxels from stream with provided parameters; important on Windows: in stream must be open in binary mode Generated from function MR.VoxelsLoad.gridFromRaw. Parameter cb defaults to {}.
 
static unsafe MR.VoxelsLoad.RawParameters findRawParameters (MR.Std.Filesystem.Path file)
 finds raw voxels file and its encoding parameters
 
static unsafe MR.VdbVolume fromRaw (string file, MR.Std.Const_Function_BoolFuncFromFloat? cb=null)
 Load raw voxels file, parsing parameters from name Generated from function MR.VoxelsLoad.fromRaw. Parameter cb defaults to {}.
 
static unsafe MR.FloatGrid gridFromRaw (string file, MR.Std.Const_Function_BoolFuncFromFloat? cb=null)
 Load raw voxels file, parsing parameters from name Generated from function MR.VoxelsLoad.gridFromRaw. Parameter cb defaults to {}.
 
static unsafe MR.Std.Vector_MRVdbVolume fromVdb (string file, MR.Std.Const_Function_BoolFuncFromFloat? cb=null)
 Load all voxel volumes from OpenVDB file Generated from function MR.VoxelsLoad.fromVdb. Parameter cb defaults to {}.
 
static unsafe MR.Std.Vector_MRFloatGrid gridsFromVdb (string file, MR.Std.Const_Function_BoolFuncFromFloat? cb=null)
 Generated from function MR.VoxelsLoad.gridsFromVdb. Parameter cb defaults to {}.
 
static unsafe MR.Std.Vector_MRFloatGrid gridsFromVdb (MR.Std.Istream in_, MR.Std.Const_Function_BoolFuncFromFloat? cb=null)
 Generated from function MR.VoxelsLoad.gridsFromVdb. Parameter cb defaults to {}.
 
static unsafe MR.VdbVolume fromGav (string file, MR.Std.Const_Function_BoolFuncFromFloat? cb=null)
 Load voxel from Gav-file with micro CT reconstruction Generated from function MR.VoxelsLoad.fromGav. Parameter cb defaults to {}.
 
static unsafe MR.VdbVolume fromGav (MR.Std.Istream in_, MR.Std.Const_Function_BoolFuncFromFloat? cb=null)
 Load voxel from Gav-stream with micro CT reconstruction Generated from function MR.VoxelsLoad.fromGav. Parameter cb defaults to {}.
 
static unsafe MR.Std.Vector_MRFloatGrid gridsFromAnySupportedFormat (string file, MR.Std.Const_Function_BoolFuncFromFloat? cb=null)
 Detects the format from file extension and loads voxels from it Generated from function MR.VoxelsLoad.gridsFromAnySupportedFormat. Parameter cb defaults to {}.
 
static unsafe MR.Std.Vector_MRVdbVolume fromAnySupportedFormat (string file, MR.Std.Const_Function_BoolFuncFromFloat? cb=null)
 Detects the format from file extension and loads voxels from it Generated from function MR.VoxelsLoad.fromAnySupportedFormat. Parameter cb defaults to {}.
 
static unsafe MR.VdbVolume loadTiffDir (MR.VoxelsLoad.Const_LoadingTiffSettings settings)
 Load voxels from a set of TIFF files Generated from function MR.VoxelsLoad.loadTiffDir.
 

Member Function Documentation

◆ findRawParameters()

static unsafe MR.VoxelsLoad.RawParameters MR.VoxelsLoad.findRawParameters ( MR.Std.Filesystem.Path file)
inlinestatic

finds raw voxels file and its encoding parameters

Parameters
fileon input: file name probably without suffix with parameters on output: if success existing file name Generated from function MR.VoxelsLoad.findRawParameters.

◆ isDicomFile()

static unsafe MR.VoxelsLoad.DicomStatus MR.VoxelsLoad.isDicomFile ( string path,
MR.Std.String? seriesUid = null,
MR.Misc.InOut< MR.Vector3i >? dims = null )
inlinestatic

check if file is a valid DICOM dataset file

Parameters
seriesUid- if set, the extracted series instance UID is copied to the variable
dims- optional output of the file volume's dimensions Generated from function MR.VoxelsLoad.isDicomFile.

The documentation for this class was generated from the following files: