Technical Solutions
Where can I find patches for DICOM support in the Image Processing Toolbox 3.2 (R13)?
Date Last Modified: Friday, June 26, 2009
| Solution ID: |
|
1-1A6OI |
| Product: |
|
Image Processing Toolbox |
| Reported in Release: |
|
R13 |
| Platform: |
|
All Platforms |
| Operating System: |
|
All OS |
Subject:
Where can I find patches for DICOM support in the Image Processing Toolbox 3.2 (R13)?
Problem Description:
I would like to find any patches for DICOM support in the Image Processing Toolbox 3.2 (R13).
1) I need a patch that will fix the following problem:
When using DICOMWRITE, I get an error such as:
??? Error using ==> /software/matlab_6.5/toolbox/images/images/private/dicom_add_attr (validate_data)
Attribute (0020,000D) has wrong amount of data.
This is due to a problem with a perl script returning excess text during shell initialization, which conflicts with the code trying to obtain the computer address and MATLAB process ID.
2) I would like a patch that allows DICOMREAD to support lossless and lossy JPEG compression formats.
Solution:
The following features are available for the Image Processing Toolbox 4.1 (R13SP1):
* DICOMREAD and DICOMWRITE now support lossless JPEG compression * IMREAD and IMWRITE now support lossless JPEG compression in MATLAB * ICCREAD can now read ICC profiles that are embedded in TIFF files * IMWRITE can now create CIELab, ICCLab, and CMYK TIFF files
If you are using a previous version, read the following:
Several changes have been made to enhance DICOM support in The Image Processing Toolbox 3.2 (R13). For patches for this version, follow these instructions:
For Windows:
1. Download the "dicom_update.exe" self-extracting file from the following location, into your root MATLAB directory (e.g., C:\MATLAB6p5):
http://www.mathworks.com/support/solutions/files/dicom/R13/dicom_update.exe
2. Execute the following MATLAB commands:
% Change directories to your root MATLAB directory cd(matlabroot)
% Unzip the files !dicom_update.exe
3. Now you will be prompted to "Unzip" the files. Click the "Browse..." button, and locate your root MATLAB directory in the ensuing dialog box. Then click "Unzip", and then click "Close".
4. Now execute the following MATLAB commands to clean up:
% Delete the ZIP-file delete dicom_update.exe
% Rehash your toolbox path cache since you have modified files in your toolbox directories rehash toolboxcache
Alternatively, instead of running the EXE-file, you can download the ZIP-file and extract the files manually to the appropriate folders:
http://www.mathworks.com/support/solutions/files/dicom/R13/dicom_update.zip
For UNIX, Linux, and Mac:
1. Download the "dicom_update.tar" file from the following location, into your root MATLAB directory (e.g., /matlab6p5/):
http://www.mathworks.com/support/solutions/files/dicom/R13/dicom_update.tar
2. Execute the following MATLAB commands:
% Change directories to your root MATLAB directory cd(matlabroot)
% Unzip the files !tar -xvpf dicom_update.tar
3. Now execute the following MATLAB commands to clean up:
% Delete the TAR-file delete dicom_update.tar
% Rehash your toolbox path cache since you have modified files in your toolbox directories rehash toolboxcache
This patch will allow DICOMREAD to support lossless and lossy JPEG compression formats for bit depths between 8- and 16-bits. In order to utilize this new support, you will have to follow the instructions in the Related Solution listed below.
|