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

Home » Public Forums » archive » Problem with IDLffDicomEx::SetPixelData
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
Problem with IDLffDicomEx::SetPixelData [message #77077] Mon, 01 August 2011 07:24 Go to next message
Vivek is currently offline  Vivek
Messages: 6
Registered: July 2011
Junior Member
Hello,

I am facing issues with IDLffDicomEx::SetPixelData when it comes to
assigning pixel intensity values to the DICOM file. While it works
fine in assigning it basically, it's not faithfully reproducing the
image correctly, and is sort of distorting/thresholding the image. I
am having to convert the image to uint type or fix type before storing
it, as it does not allow me to store float values.

When I try and store the float type, I get an error saying that the
input pixel data array is not equal to the total number of frames in
the image, but when I convert the same to uint or fix type, it works
fine, albeit distorting/thresholding the image. Any suggestions on how
to correct this?

Vivek
Re: Problem with IDLffDicomEx::SetPixelData [message #77154 is a reply to message #77077] Tue, 02 August 2011 13:02 Go to previous message
rtk is currently offline  rtk
Messages: 22
Registered: September 2008
Junior Member
On Aug 1, 8:24 am, Vivek <vivek.rajshek...@gmail.com> wrote:
> Hello,
>
> I am facing issues with IDLffDicomEx::SetPixelData when it comes to
> assigning pixel intensity values to the DICOM file. While it works
> fine in assigning it basically, it's not faithfully reproducing the
> image correctly, and is sort of distorting/thresholding the image. I
> am having to convert the image to uint type or fix type before storing
> it, as it does not allow me to store float values.
>
> When I try and store the float type, I get an error saying that the
> input pixel data array is not equal to the total number of frames in
> the image, but when I convert the same to uint or fix type, it works
> fine, albeit distorting/thresholding the image. Any suggestions on how
> to correct this?
>
> Vivek

This sounds like an incompatibility between the image parameters
(number of bits, bits allocated, high bit, etc) and the actual data
you are passing in. If you can show us how you are setting these
values and then print the type of the data array you are passing
things might become clear. I suspect IDL is truncating the data based
on these values.

Ron
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDL Windows Question
Next Topic: Coyote Library Updates

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

Current Time: Wed Oct 08 19:22:49 PDT 2025

Total time taken to generate the page: 0.00388 seconds