Problems with IDL on Fedora Core 7 [message #55289] |
Thu, 16 August 2007 12:22  |
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.
|
|
|