X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 02 Aug 2013 02:06 AM by  anon
Band math
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
02 Aug 2013 02:06 AM
    Hello everyone, Help me please. Band math don't do what tell. I wrote an expression ((b1 le 1730)*2)+b1, it means that every value less than 1730 multiplys by 2 and then adds the original values. Simply, every value less than 1730 should be 3 times bigger. What the band math do, it adds value 2 to every value which is less than 1730 (for example, if the value is 101, now it is 103, but should be 303). For more information, for variable i'm choosing 48 band image. King regards, Skywalker

    MariM



    Veteran Member


    Posts:2396
    Veteran Member


    --
    02 Aug 2013 05:33 AM
    Is your band data type byte? If so, promote your data type in band math. For example, uint(b1) float(b1)

    Deleted User



    New Member


    Posts:
    New Member


    --
    02 Aug 2013 06:22 AM
    Wrong expression, (b1 le 1730) return 0 or 1. Thats why (101 le 1730)*2+101=1*2+101=103 Right expression (b1 le 1730)*(b1*2)+b1
    You are not authorized to post a reply.