def get_pointwise_inside_image_mask(self, image):
if len(self.coords) == <NUM_LIT:0>:<EOL><INDENT>return np.zeros((<NUM_LIT:0>,), dtype=bool)<EOL><DEDENT>shape = normalize_shape(image)<EOL>height, width = shape[<NUM_LIT:0>:<NUM_LIT:2>]<EOL>x_within = np.logical_and(<NUM_LIT:0> <= self.xx, self.xx < width)<EOL>y_within = np.logical_and(<NUM_LIT:0> <= self.yy, self.yy < height)<EOL>return np.logical_and(x_within, y_within)<EOL>
Get for each point whether it is inside of the given image plane.

Parameters
----------
image : ndarray or tuple of int
    Either an image with shape ``(H,W,[C])`` or a tuple denoting
    such an image shape.

Returns
-------
ndarray
    Boolean array with one value per point indicating whether it is
    inside of the provided image plane (``True``) or not (``False``).