X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 18 Jul 2007 09:17 AM by  anon
convert floating point data to 8bit grayscale
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
18 Jul 2007 09:17 AM
    Dear Forum, I would like to convert some floating point data to 8bit grayscale imagery. Is it suitable to use the fix(b1) option in band math or should I use the interactive stretching in enhancements? Kind regards, Wesley

    Deleted User



    New Member


    Posts:
    New Member


    --
    18 Jul 2007 09:17 AM
    Well, FIX() will give you integers, not bytes, unless you use the TYPE keyword. There are any number of ways to turn floats into bytes. The BYTE() function is one, of course, but you might also look at BYTSCL(). Sometimes people do tricks like multiply the floating pt number by 100 then turn that into bytes, but your data have to be appropriate for that. As for if it's suitable, that depends on how you define "suitable." I think that's a call I'll leave up to you :)
    You are not authorized to post a reply.