dicomCollectionSeparation

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Import/Export
Introduced first in SolidGeometry 4.8, Creation date: 2019-12-04, Last change: 2025-09-14

selects the fitting other files for a stack of images or a directory

Description

This function selects the file stack fitting to a single file, or collects the information of this directory or moves the files of several stacks into individual directory name using the SeriesInstanceUID of the stack.
This function creates a global variable "GlobaldicomCollectionTable"
There are different modes to call the function:
A=dicomCollectionSeparation % Opens a browser dialog to select a path or a file
dicomCollectionSeparation(GlobaldicomCollectionTable) % Calls the function using the existing Table
[A,FL]=dicomCollectionSeparation(A,<>) % Calls the function using a Table and a File Name
[~,FL]=dicomCollectionSeparation(GlobaldicomCollectionTable) % If there is only one stack in the table


See Also:

Example Illustration

 missing image of dicomCollectionSeparation(DirName,FName)

Syntax

[A,FL]=dicomCollectionSeparation([DirName,FName])

Input Parameter

DirName: empty for selection or directory name or file name
FName: optional file name or cmd suc as 'separated'

Output Parameter

A: table of dicomCollection of this directory
FL: fitting file list for using dicomreadVolume

Examples


A=dicomCollectionSeparation; % creates the table of dicomCollection
dicomCollectionSeparation(A,'separate'); % separates all file into the SeriesInstanceUID
[A,FL]=dicomCollectionSeparation; % creates the table of dicomCollection
VM=squeeze(dicomreadVolume(FL));




Copyright 2019-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Last html export of this page out of FM database by TL: 2025-09-21