Merge pull request #599 from XPila/MK25

XYZcal image processing tunning (different equation for minimum level)
This commit is contained in:
XPila 2018-04-04 17:08:07 +02:00 committed by GitHub
commit db6ba988c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -384,7 +384,7 @@ void xyzcal_adjust_pixels(uint8_t* pixels, uint16_t* histo)
for (l = 14; l > 8; l--)
if (histo[l] >= 10)
break;
uint8_t pix_min = (max_l - 1) << 4;
uint8_t pix_min = (max_l << 4) / 2;
uint8_t pix_max = l << 4;
uint8_t pix_dif = pix_max - pix_min;
DBG(_n(" min=%d max=%d dif=%d\n"), pix_min, pix_max, pix_dif);