@staticmethod
def _img_invert(img_thr):
    """Invert boolean image.

        Parameters
        ----------
        img_thr : NumPy array
            Boolean image in NumPy format.

        """
    img_inv = (~img_thr.astype(bool)).astype(int)
    return img_inv
