| 51 | } |
| 52 | |
| 53 | static uchar getFixedRange2(const float& value) |
| 54 | { |
| 55 | const float value2(getFixedRange(value)*255.0f); |
| 56 | if (value2 <= 0.0f) |
| 57 | return 0; |
| 58 | if (value2 >= 255.0f) |
| 59 | return 255; |
| 60 | return static_cast<uchar>(value2 + 0.5f); |
| 61 | } |
| 62 | |
| 63 | // ----------------------------------------------------------------------- |
| 64 |
no test coverage detected