def is_out_of_image(self, image, fully=True, partly=False, default=True):
if len(self.coords) == <NUM_LIT:0>:<EOL><INDENT>return default<EOL><DEDENT>if self.is_fully_within_image(image):<EOL><INDENT>return False<EOL><DEDENT>elif self.is_partly_within_image(image):<EOL><INDENT>return partly<EOL><DEDENT>else:<EOL><INDENT>return fully<EOL><DEDENT>
Estimate whether the line is partially/fully outside of the image area.

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

fully : bool, optional
    Whether to return True if the bounding box is fully outside fo the
    image area.

partly : bool, optional
    Whether to return True if the bounding box is at least partially
    outside fo the image area.

default
    Default value to return if the line string contains no points.

Returns
-------
bool
    `default` if the line string has no points.
    True if the line string is partially/fully outside of the image
    area, depending on defined parameters.
    False otherwise.