isdicom

If the file is valid, DICOM file then returns True.

重要: Valid only with Altair DICOM Extension.

Syntax

isvaliddicom=isdicom(filename)

Inputs

filename
Path of the DICOM file.
Type: string

Outputs

isvaliddicom
Is True if file is valid DICOM file, otherwise False.
Type: logical

Example

isdicom example.

isvaliddicom = isdicom('Path/To/File/0015.DCM')
isvaliddicom = 1