Changes between Version 2 and Version 3 of Ticket #6422, comment 2


Ignore:
Timestamp:
Mar 23, 2016, 6:21:57 AM (8 years ago)
Author:
dsogari

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6422, comment 2

    v2 v3  
    11Thanks Rouault. You're right, we could decide which entry to pick up every time the pixel value hits the entry. Or else ignore repeated entries while parsing the palette file.
    22
    3 Your concern about the later lines in the function could propably be addressed with this, to avoid getting NaN in the calculation of dfRatio in case the 'i' picked up is not the first one:
     3Your concern about the later lines in the function could propably be addressed with the following, to avoid getting NaN in the calculation of dfRatio in case the 'i' picked up is not the first one:
    44
    55{{{
     
    3838    {
    3939        // modify repeated entry
    40         // TODO: how to make it work with more than 2 repetitions?
     40        // NOTE: how to make it work with more than 2 repetitions?
    4141        previous.value -= epsilon
    4242    }