original_docstring: 
          compute_desc_dist_score: a simple scoring based on fingerprints (unused currently in this protocol)
      
docstring: a simple scoring based on fingerprints (unused currently in this protocol)
docstring_tokens: a simple scoring based on fingerprints ( unused currently in this protocol )
code: def compute_desc_dist_score(
      target_pcd, source_pcd, corr, target_desc, source_desc, cutoff=2.0
  ):
      """
          compute_desc_dist_score: a simple scoring based on fingerprints (unused currently in this protocol)
      """
      # Compute scores based on correspondences.
      if len(corr) < 1:
          dists_cutoff = np.array([1000.0])
          inliers = 0
      else:
          target_p = corr[:, 1]
          source_p = corr[:, 0]
          try:
              dists_cutoff = target_desc.data[:, target_p] - source_desc.data[:, source_p]
          except:
              set_trace()
          dists_cutoff = np.sqrt(np.sum(np.square(dists_cutoff.T), axis=1))
          inliers = len(corr)
  
      scores_corr = np.sum(np.square(1.0 / dists_cutoff))
      scores_corr_cube = np.sum(np.power(1.0 / dists_cutoff, 3))
      scores_corr_mean = np.mean(np.square(1.0 / dists_cutoff))
  
      return np.array([scores_corr, inliers, scores_corr_mean, scores_corr_cube]).T
code_tokens: def compute_desc_dist_score ( target_pcd , source_pcd , corr , target_desc , source_desc , cutoff = 2.0 ) : if len ( corr ) < 1 : dists_cutoff = np . array ( [ 1000.0 ] ) inliers = 0 else : target_p = corr [ : , 1 ] source_p = corr [ : , 0 ] try : dists_cutoff = target_desc . data [ : , target_p ] - source_desc . data [ : , source_p ] except : set_trace ( ) dists_cutoff = np . sqrt ( np . sum ( np . square ( dists_cutoff . T ) , axis = 1 ) ) inliers = len ( corr ) scores_corr = np . sum ( np . square ( 1.0 / dists_cutoff ) ) scores_corr_cube = np . sum ( np . power ( 1.0 / dists_cutoff , 3 ) ) scores_corr_mean = np . mean ( np . square ( 1.0 / dists_cutoff ) ) return np . array ( [ scores_corr , inliers , scores_corr_mean , scores_corr_cube ] ) . T
short_docstring: compute_desc_dist_score: a simple scoring based on fingerprints (unused currently in this protocol)
short_docstring_tokens: compute_desc_dist_score : a simple scoring based on fingerprints ( unused currently in this protocol )
comment: """
          compute_desc_dist_score: a simple scoring based on fingerprints (unused currently in this protocol)
      """$SEP$# Compute scores based on correspondences.