def make_pixel_mask_from_col_row(column, row, default=<NUM_LIT:0>, value=<NUM_LIT:1>):
<EOL>col_array = np.array(column) - <NUM_LIT:1><EOL>row_array = np.array(row) - <NUM_LIT:1><EOL>if np.any(col_array >= <NUM_LIT>) or np.any(col_array < <NUM_LIT:0>) or np.any(row_array >= <NUM_LIT>) or np.any(row_array < <NUM_LIT:0>):<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>shape = (<NUM_LIT>, <NUM_LIT>)<EOL>mask = np.full(shape, default, dtype=np.uint8)<EOL>mask[col_array, row_array] = value  <EOL>return mask<EOL>
Generate mask from column and row lists

    Parameters
    ----------
    column : iterable, int
        List of colums values.
    row : iterable, int
        List of row values.
    default : int
        Value of pixels that are not selected by the mask.
    value : int
        Value of pixels that are selected by the mask.

    Returns
    -------
    mask : numpy.ndarray