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 
Switch to threaded view of this topic Create a new topic Submit Reply
SetPixelData Error [message #56115] Tue, 02 October 2007 13:33
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.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: SetPixelData Error
Next Topic: Re: making a circle of certain values

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

Current Time: Wed Oct 08 20:01:33 PDT 2025

Total time taken to generate the page: 0.00480 seconds