performance improvement: using opencv mat functions to construct AR sudoku image