Am getting dicomifo error

6 Ansichten (letzte 30 Tage)
syed
syed am 7 Apr. 2014
Beantwortet: Greg Heath am 11 Apr. 2014
My code
no_image = 1; dcm_files = find_files(xml_path, '.dcm'); for j = 1:numel(dcm_files) dicomInformation = dicominfo(dcm_files{1});
My error
Undefined function 'dicominfo' for input arguments of type 'char'.
Error in LIDC_process_annotations (line 191) dicomInformation = dicominfo(dcm_files{1});
My matlab version ver ------------------------------------------------------------------------------------------------------- MATLAB Version: 8.1.0.604 (R2013a) MATLAB License Number: STUDENT Operating System: Linux 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 Java Version: Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot™ 64-Bit Server VM mixed mode ------------------------------------------------------------------------------------------------------- MATLAB Version 8.1 (R2013a) Simulink Version 8.1 (R2013a) Computer Vision System Toolbox Version 5.2 (R2013a) Control System Toolbox Version 9.5 (R2013a) DSP System Toolbox Version 8.4 (R2013a) Image Acquisition Toolbox Version 4.5 (R2013a) Instrument Control Toolbox Version 3.3 (R2013a) Mapping Toolbox Version 3.7 (R2013a) Model Predictive Control Toolbox Version 4.1.2 (R2013a) Neural Network Toolbox Version 8.0.1 (R2013a) Optimization Toolbox Version 6.3 (R2013a) Signal Processing Toolbox Version 6.19 (R2013a) Simulink Report Generator Version 3.14 (R2013a) Statistics Toolbox Version 8.2 (R2013a)

Akzeptierte Antwort

Greg Heath
Greg Heath am 11 Apr. 2014
>> lookfor dicominfo
dicominfo - Read metadata from DICOM message.
>> help dicominfo
dicominfo Read metadata from DICOM message.
INFO = dicominfo(FILENAME) reads the metadata from the compliant
DICOM file specified in the string FILENAME.
INFO = dicominfo(FILENAME, 'dictionary', D) uses the data dictionary
file given in the string D to read the DICOM message. The file in D
must be on the MATLAB search path. The default value is dicom-dict.mat.
Example:
info = dicominfo('CT-MONO2-16-ankle.dcm');
See also dicomdict, dicomread, dicomwrite, dicomuid.
Reference page in Help browser
doc dicominfo
>> doc dicominfo
Hope this helps.
Greg

Weitere Antworten (0)

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by