Use const struct quirc parameter in otsu() function and fix tabs

This commit is contained in:
Claudio Felber 2019-04-30 18:44:59 +02:00
parent 96a5a380fb
commit 766f79ce7c

View file

@ -174,7 +174,7 @@ static void flood_fill_seed(struct quirc *q, int x, int y, int from, int to,
* Adaptive thresholding * Adaptive thresholding
*/ */
uint8_t otsu(struct quirc *q) uint8_t otsu(const struct quirc *q)
{ {
int numPixels = q->w * q->h; int numPixels = q->w * q->h;