def run(self, ips, snap, img, para=None): pts = find_maximum(self.ips.img, para['tol'], False) self.ips.roi = PointRoi([tuple(i) for i in pts[:, ::-1]]) self.ips.update = True
def run(self, ips, snap, img, para = None): cimg = feature.corner_moravec(img, window_size=para['size']) pts = feature.corner_peaks(cimg, min_distance=1) self.ips.roi = PointRoi([tuple(i[::-1]) for i in pts])
def run(self, ips, snap, img, para = None): cimg = feature.corner_shi_tomasi(img, sigma=para['sigma']) pts = feature.corner_peaks(cimg, min_distance=1) self.ips.roi = PointRoi([tuple(i[::-1]) for i in pts])
def run(self, ips, snap, img, para = None): cimg = feature.corner_kitchen_rosenfeld(img, mode='constant', cval=para['cval']) pts = feature.corner_peaks(cimg, min_distance=1) self.ips.roi = PointRoi([tuple(i[::-1]) for i in pts])