For 16-level products, only the lower-order byte should be used for the data level threshold

This commit is contained in:
Dan Paulat 2022-04-10 19:47:57 -05:00
parent fd35a912e5
commit f8765e0d2d

View file

@ -222,7 +222,7 @@ void Level3ProductView::UpdateColorTable()
if ((th & 0x8000u) == 0) if ((th & 0x8000u) == 0)
{ {
// If bit 0 is zero, then the LSB is numeric // If bit 0 is zero, then the LSB is numeric
f = static_cast<float>(th); f = static_cast<float>(th & 0x00ffu);
lut[lutIndex] = p->colorTable_->Color(f); lut[lutIndex] = p->colorTable_->Color(f);
} }
else else