SetPixelData Error [message #56116] |
Tue, 02 October 2007 13:33 |
Aks
Messages: 4 Registered: October 2007
|
Junior Member |
|
|
Hi,
I tried using SetPixelData to write a 2D processed data into DICOM
image. I used the Bits_Allocated to be same as the information I read
from the header of the raw data (DICOM file).
oImg -> SetPixelData, image[*,*,i], BITS_ALLOCATED = uid2805,
PHOTOMETRIC_INTERPRETATION = 'MONOCHROME2',
SAMPLES_PER_PIXEL = 1, PIXEL_REPRESENTATION = 0, COLUMNS = imsize[1],
ROWS = imsize[2]
This is the error I get.
IDLFFDICOMEX::SETPIXELDATA: Error: Unable to set pixel data. Passed
in pixel data array length is not equal to the length of one frame.
(file), MR76000001.dcm
Can anybody tell me what this error means??
Thanks for your help.
|
|
|