No BSD License  

Highlights from
isdicom

Be the first to rate this file! 5 Downloads (last 30 days) File Size: 1.9 KB File ID: #11431

isdicom

by Jøger Hansegård

 

16 Jun 2006 (Updated 20 Jun 2006)

Function for detecting if a file is a DICOM file

| Watch this File

File Information
Description

The ISDICOM function takes a filename or a cell array of filenames and returns true for DICOM files.

ISDICOM detects if the four byte string starting at position 128 of the file is equal to 'DICM', which indicates that the file is a DICOM file.

This is not a very robust method, since other file types might also accidentally contain the string DICM at position 128, and non-standard DICOM files might not contain this string.

Please see the newsgroup discussion on http://newsreader.mathworks.com/WebX/.eef9353?50@474.0yR7b5yCHQl@

Acknowledgements
This submission has inspired the following:
Dicom directory (of slices) to 3D volume image
MATLAB release MATLAB 7.2 (R2006a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
19 Jun 2006

Bug fix required since the previous version did not close file handle if the file length was below 128 characters.

19 Jun 2006

Bug fix required since the previous version did not close file handle if the file length was below 128 characters.

20 Jun 2006

Improved documentation

Tag Activity for this File
Tag Applied By Date/Time
path Jøger Hansegård 22 Oct 2008 08:29:44
directories Jøger Hansegård 22 Oct 2008 08:29:44
files Jøger Hansegård 22 Oct 2008 08:29:44
is dicom isdicom Jøger Hansegård 22 Oct 2008 08:29:44

Contact us at files@mathworks.com