def b2p_list_PointTrack(java_list): size = java_list.size() py_list = [] for i in range(size): java_track = JavaWrapper(java_list.get(i)) py_track = PointTrack() py_track.pixel = (float(java_track.pixel.x), float(java_track.pixel.y)) py_track.feature_id = int(java_track.featureId) py_track.spawn_frame_id = int(java_track.spawnFrameID) py_track.last_seen_frame_id = int(java_track.lastSeenFrameID) py_list.append(py_track) return py_list
def associate(self): """ Associates the two sets of features together. Returns a list of association indexes :return: List of (src index, dst index, match score) :rtype: [(int,int,float)] """ output = [] self.java_obj.associate() matches = self.java_obj.getMatches() for i in range(matches.getSize()): association = JavaWrapper(matches.get(i)) output.append( (association.src, association.dst, association.fitScore)) return output
def __init__(self, java_object ): JavaWrapper.__init__(self, java_object)
def __init__(self, java_object): JavaWrapper.__init__(self, java_object)