def make_checkerboard_mask(column_distance, row_distance, column_offset=<NUM_LIT:0>, row_offset=<NUM_LIT:0>, default=<NUM_LIT:0>, value=<NUM_LIT:1>):
col_shape = (<NUM_LIT>,)<EOL>col = np.full(col_shape, fill_value=default, dtype=np.uint8)<EOL>col[::row_distance] = value<EOL>shape = (<NUM_LIT>, <NUM_LIT>)<EOL>chessboard_mask = np.full(shape, fill_value=default, dtype=np.uint8)<EOL>chessboard_mask[column_offset::column_distance * <NUM_LIT:2>] = np.roll(col, row_offset)<EOL>chessboard_mask[column_distance + column_offset::column_distance * <NUM_LIT:2>] = np.roll(col, row_distance / <NUM_LIT:2> + row_offset)<EOL>return chessboard_mask<EOL>
Generate chessboard/checkerboard mask.

Parameters
----------
column_distance : int
    Column distance of the enabled pixels.
row_distance : int
    Row distance of the enabled pixels.
column_offset : int
    Additional column offset which shifts the columns by the given amount.
column_offset : int
    Additional row offset which shifts the rows by the given amount.

Returns
-------
ndarray
    Chessboard mask.

Example
-------
Input:
column_distance : 6
row_distance : 2

Output:
[[1 0 0 0 0 0 1 0 0 0 ... 0 0 0 0 1 0 0 0 0 0]
 [0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0]
 [0 0 0 1 0 0 0 0 0 1 ... 0 1 0 0 0 0 0 1 0 0]
 ...
 [0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0]
 [0 0 0 1 0 0 0 0 0 1 ... 0 1 0 0 0 0 0 1 0 0]
 [0 0 0 0 0 0 0 0 0 0 ... 0 0 0 0 0 0 0 0 0 0]]