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

Home » Public Forums » archive » make_rt change viewplane behaviour
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: make_rt change viewplane behaviour [message #90146 is a reply to message #90109] Mon, 02 February 2015 00:37 Go to previous message
LNpellen is currently offline  LNpellen
Messages: 37
Registered: November 2009
Member
It turned out after some tedious testing debugging in the exe-version via DIALOG_MESSAGES that READ_DICOM works differently in the workbench than in the exe-version. I can't see why, but I realized how it behaved differently and found a trick to force the reading to be similar for both (by avoiding the READ_DICOM function).

So it had nothing to do with the VIEWPLANE_RECT (I realize I should have understood that from start, but I blamed this parameter for xenophobic reasons).

Changing
matrix=READ_DICOM(adr)

To
o=obj_new('idlffdicom')
t=o->read(adr)
test=o->GetReference('7FE0'x,'0010'x)
test_peker=o->GetValue(REFERENCE=test[N_ELEMENTS(test)-1],/NO_COPY)
matrix=FLOAT(*(test_peker[0]))

Problem is that READ_DICOM (in the exe-version, not in workbench) takes the first image it finds in the dicom file, which is a icon-image of 64x64. Now I force matrix to read the last instance of image data. Hope the guess that the real image always is the last one holds.
[Message index]
 
Read Message
Read Message
Previous Topic: mpfit debugging
Next Topic: count number of pixels and write to a txt file

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

Current Time: Fri Oct 10 15:31:56 PDT 2025

Total time taken to generate the page: 1.20119 seconds