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

Home » Public Forums » archive » Re: Function BYTSCL
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: Function BYTSCL [message #24635 is a reply to message #24634] Tue, 10 April 2001 07:42 Go to previous messageGo to previous message
Steffen Kernchen is currently offline  Steffen Kernchen
Messages: 4
Registered: April 2001
Junior Member
> Of course you can do by hand something similar what bytscl does:
>
> lets say your array is 'a'
>
> minA=min(a,MAX=maxA)
> a=a-minA
> a=byte(float(a)/maxA*255)
>
> (2nd line is 'optional')

when I use the 2nd line, then there is no picture displayed!
if I don�t write this line I see a pic, that is only brighter. There is no
more contrast. :(

> but why you should not use bytarr?
> Only point I can guess is that you have 8bit color and dont want to
> use all colors?

no, it�s an exercise, so that we learn, what BYTSCL does.

I 've a pic and I read it with READ_BMP to get an array. that array I have
to transform to get a better contrast.
but unfortunately without using BYTSCL... :(


cheers,

steffen
[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
Read Message
Previous Topic: sec : U Re: Dual head displays
Next Topic: Re: Error on shutdown of widget !@$%

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

Current Time: Wed Oct 08 13:54:46 PDT 2025

Total time taken to generate the page: 0.00424 seconds