startracker.py
def match_rel(self, last_match):
        """Match stars relative to something?."""
        # make copy of stars from lastmatch
        img_stars_from_lm = last_match.img_stars.copy()
        w = last_match.match.winner
        # convert the stars to ECI
        for i in range(img_stars_from_lm.size()):
            s = img_stars_from_lm.get_star(i)
            x = s.x * w.R11 + s.y * w.R12 + s.z * w.R13
            y = s.x * w.R21 + s.y * w.R22 + s.z * w.R23
            z = s.x * w.R31 + s.y * w.R32 + s.z * w.R33
            s.x = x
            s.y = y
            s.z = z
        # create constellation from last match
        self.const_from_lm = \
            beast.constellation_db(img_stars_from_lm,
                                   beast.cvar.MAX_FALSE_STARS + 2,
                                   1)
        # match between last and current
        img_const = beast.constellation_db(self.img_stars,
                                           beast.cvar.MAX_FALSE_STARS + 2,
                                           1)
        rel = beast.db_match(self.const_from_lm, img_const)
        if rel.p_match > P_MATCH_THRESH:
            self.match_from_lm = rel
            self.db_stars_from_lm = rel.winner.from_match()
Match stars relative to something?.
Match stars relative to something?.
Match stars relative to something? .
def match_rel(self, last_match):
        img_stars_from_lm = last_match.img_stars.copy()
        w = last_match.match.winner
        for i in range(img_stars_from_lm.size()):
            s = img_stars_from_lm.get_star(i)
            x = s.x * w.R11 + s.y * w.R12 + s.z * w.R13
            y = s.x * w.R21 + s.y * w.R22 + s.z * w.R23
            z = s.x * w.R31 + s.y * w.R32 + s.z * w.R33
            s.x = x
            s.y = y
            s.z = z
        self.const_from_lm = \
            beast.constellation_db(img_stars_from_lm,
                                   beast.cvar.MAX_FALSE_STARS + 2,
                                   1)
        img_const = beast.constellation_db(self.img_stars,
                                           beast.cvar.MAX_FALSE_STARS + 2,
                                           1)
        rel = beast.db_match(self.const_from_lm, img_const)
        if rel.p_match > P_MATCH_THRESH:
            self.match_from_lm = rel
            self.db_stars_from_lm = rel.winner.from_match()
def match_rel ( self , last_match ) : img_stars_from_lm = last_match . img_stars . copy ( ) w = last_match . match . winner for i in range ( img_stars_from_lm . size ( ) ) : s = img_stars_from_lm . get_star ( i ) x = s . x * w . R11 + s . y * w . R12 + s . z * w . R13 y = s . x * w . R21 + s . y * w . R22 + s . z * w . R23 z = s . x * w . R31 + s . y * w . R32 + s . z * w . R33 s . x = x s . y = y s . z = z self . const_from_lm = beast . constellation_db ( img_stars_from_lm , beast . cvar . MAX_FALSE_STARS + 2 , 1 ) img_const = beast . constellation_db ( self . img_stars , beast . cvar . MAX_FALSE_STARS + 2 , 1 ) rel = beast . db_match ( self . const_from_lm , img_const ) if rel . p_match > P_MATCH_THRESH : self . match_from_lm = rel self . db_stars_from_lm = rel . winner . from_match ( )
Match stars relative to something?.
Match stars relative to something? .
"""Match stars relative to something?.""" # make copy of stars from lastmatch # convert the stars to ECI # create constellation from last match # match between last and current
self
last_match