Esempio n. 1
0
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
Esempio n. 2
0
    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
Esempio n. 3
0
 def __init__(self, java_object ):
     JavaWrapper.__init__(self, java_object)
Esempio n. 4
0
 def __init__(self, java_object):
     JavaWrapper.__init__(self, java_object)