Use const struct quirc parameter in otsu() function and fix tabs
This commit is contained in:
parent
96a5a380fb
commit
766f79ce7c
1 changed files with 54 additions and 54 deletions
|
@ -174,7 +174,7 @@ static void flood_fill_seed(struct quirc *q, int x, int y, int from, int to,
|
|||
* Adaptive thresholding
|
||||
*/
|
||||
|
||||
uint8_t otsu(struct quirc *q)
|
||||
uint8_t otsu(const struct quirc *q)
|
||||
{
|
||||
int numPixels = q->w * q->h;
|
||||
|
||||
|
|
Loading…
Reference in a new issue