- uns cols = data->cols;
- uns rows = data->rows;
- uns cell_cols = MIN(cols, MAX_CELLS_COLS);
- uns cell_rows = MIN(rows, MAX_CELLS_ROWS);
- uns cell_x[MAX_CELLS_COLS + 1];
- uns cell_y[MAX_CELLS_ROWS + 1];
- uns i, j;
+ if (image_sig_textured_threshold <= 0)
+ {
+ DBG("Zero textured threshold.");
+ return;
+ }
+
+ uint cols = data->cols;
+ uint rows = data->rows;
+ uint cell_cols = MIN((cols + 1) / 2, MAX_CELLS_COLS);
+ uint cell_rows = MIN((rows + 1) / 2, MAX_CELLS_ROWS);
+ uint cell_x[MAX_CELLS_COLS + 1];
+ uint cell_y[MAX_CELLS_ROWS + 1];
+ uint i, j;