def __init__(self, data1, data2, v=1):
        # now = time.time()
        sct.printv('Computing 2D Hausdorff\'s distance ... ', v, 'normal')
        self.data1 = bin_data(data1)
        self.data2 = bin_data(data2)

        self.min_distances_1 = self.relative_hausdorff_dist(self.data1, self.data2, v)
        self.min_distances_2 = self.relative_hausdorff_dist(self.data2, self.data1, v)

        # relatives hausdorff's distances in pixel
        self.h1 = np.max(self.min_distances_1)
        self.h2 = np.max(self.min_distances_2)

        # Hausdorff's distance in pixel
        self.H = max(self.h1, self.h2)
        # t = time.time() - now
        # print 'Hausdorff dist time :', t

    # ------------------------------------------------------------------------------------------------------------------
Return detection of an Android device
dataset/ETHPy150Open neuropoly/spinalcordtoolbox/scripts/sct_compute_hausdorff_distance.py/HausdorffDistance.__init__--crossover with--dataset/ETHPy150Open viewfinderco/viewfinder/backend/www/mdetect.py/UAgentInfo.detectAndroid