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

Home » Public Forums » archive » Problems with IDL on Fedora Core 7
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Problems with IDL on Fedora Core 7 [message #55289] Thu, 16 August 2007 12:22 Go to previous message
Luiz Angioletti is currently offline  Luiz Angioletti
Messages: 5
Registered: August 2007
Junior Member
Hi there folks,

It has been a while since I've subscripted to this group, and since
then I've had no major contact with IDL besides installation process
and reading the IDL Online Help.

Today I decided to try a few things on IDL and see how it would
work. Seems to me that I've a problem.

I've started with the first example of the IDL online help,
'interactivestretch.pro'. It didn't even compile. The CPU usage went
thru the roof, and then the kernel killed the process.

The code is the following:

------------------------------------------------------------ ----------------------------------
FUNCTION stretchImage, img, value

;Stretch image by input amount
image = img > value
RETURN, image

end

;---Begin $MAIN$ program. ------
;Display the image, solicit threshold value and display new results.

;set up display.
DEVICE, DECOMPOSED = 0, RETAIN = 2
LOADCT, 0

;Access image data and display.
img = READ_PNG(FILEPATH('mineral.png',$
SUBDIRECTORY = ['examples', 'data']))
dims = SIZE(img, /DIMENSIONS)
WINDOW, 0, XSIZE = dims[0], YSIZE = dims[1]
TVSCL, img

; Ask for a threshold value and stretch image.
READ, threshold, PROMPT='Enter numerical value: '
newImg = stretchImage(threshold, img)

;Display the results.
TVSCL, newImg

END
-----------------------------------------------------

I've no idea what happened.

I run Fedora Core 7 on a Pentium4 2.4GHz, 2GB RAM. I had to install
a few things and make a few adjustments to my Fedora so I could run
IDL.


Thanks, and I'm sorry about any ugly English error.


Luiz Angioletti.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: NIfTI read and write from IDL?
Next Topic: Re: Running IDL .pro script from another app, using the IDL API

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

Current Time: Sun Oct 12 09:58:46 PDT 2025

Total time taken to generate the page: 2.16256 seconds