def METHOD_NAME(self):
    for point in self.points:
        y, x = point
        neighbours = self._get_neighbours(x, y)
        for n_idx, nx, ny in neighbours:
            link_value = self.link_mask[y, x, n_idx]
            pixel_cls = self.pixel_mask[ny, nx]
            if link_value and pixel_cls:
                self._join(point, (ny, nx))
    self._get_all()
    self._mask_to_bboxes()