def is_in_area(row, col, image):
    """
    A function return if position is in area or not

    @param:
        - row, col (position of pixel)
        - image (to get width and height of image)
    @return:
        - position is in area or not
    """
    return row >= 0 and row < image.size[1] and col >= 0 and col < image.size[0]