comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » SetPixelData Error
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
SetPixelData Error [message #56114] Tue, 02 October 2007 13:34 Go to previous message
Aks is currently offline  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.
[Message index]
 
Read Message
Read Message
Previous Topic: Re: David's TVSCALE
Next Topic: IDL Help with Reading EOS-HDF Files

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 14:13:59 PDT 2025

Total time taken to generate the page: 0.80335 seconds