Matlab's image processing toolkit provides functions for reading and writing DICOM medical image files, but it does not provide a full DICOM toolkit for networking, structured reports, etc. This example shows how to call the robust and open-source dcm4che toolkit (www.dcm4che.org) to access greater DICOM functionality directly from matlab. You can use this to replace or enhance Matlab's DICOM interface and add DICOM networking.
I have downloaded older version of the tool but I have found another problem. The names of the Java library files have dots in their names and I a got several warnings and finally an error:
Warning: Invalid file or directory
> In javaclasspath>local_validate_dynamic_path (line 271)
In javaclasspath>local_javapath (line 187)
In javaclasspath (line 124)
In javaaddpath (line 71)
In demo_dcm4che (line 19)
Undefined variable "org" or class "org.dcm4che2.data.BasicDicomObject".
Error in demo_dcm4che (line 24)
dcm = org.dcm4che2.data.BasicDicomObject;
I have tested the classes in your example and they work well. I am specifically interested in utilizing the dcmsnd class but I can't determine the command to load the object into Matlab. I was wondering if you could provide some insight. Thanks.
Note about versioning: This only seems to work with Matlab 7 or later. And, if you're using a different version of dcm4che you'll need to update all the library filenames appropriately.
It is really good. Could you give some more info. about how to get the information in the Tag? For instance, it will be very usefull to know how can I get "Pixel Spacing", "Image Position (Patient)", "Slice Thickness" etc ...