Changes between Version 2 and Version 3 of Ticket #6422, comment 2
- Timestamp:
- Mar 23, 2016, 6:21:57 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #6422, comment 2
v2 v3 1 1 Thanks 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. 2 2 3 Your concern about the later lines in the function could propably be addressed with th is, to avoid getting NaN in the calculation of dfRatio in case the 'i' picked up is not the first one:3 Your 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: 4 4 5 5 {{{ … … 38 38 { 39 39 // 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? 41 41 previous.value -= epsilon 42 42 }