QianMo / OpenCV3-Intro-Book-Src

:blue_book:《OpenCV3编程入门》书本配套源码 |《Introduction to OpenCV3 Programming》Book Source Code
1.82k stars 939 forks source link

fix colorReduce4 #3

Open captainwong opened 7 years ago

captainwong commented 7 years ago

I've test it, origin code will generate a bad image.

Github had automatically converted source code's encoding from GB18030 to UTF8.

Valid change is line 177: origin: (data+i)= data&mask + div/2; change to: (data+i)= (data+1)&mask + div/2;