def load(self, ips): titles = WindowsManager.get_titles() self.para['img1'] = titles[0] self.para['img2'] = titles[0] Plugin.view = [(list, titles, str, 'image1', 'img1', ''), (list, ['max', 'min', 'diff', 'add', 'substract'], str, 'operator', 'op', ''), (list, titles, str, 'image2', 'img2', '')] return True
def load(self, ips): titles = WindowsManager.get_titles() self.para['red'] = titles[0] self.para['green'] = titles[0] self.para['blue'] = titles[0] Plugin.view = [(list, titles, str, 'Red', 'red', ''), (list, titles, str, 'Green', 'green', ''), (list, titles, str, 'Blue', 'blue', ''), (bool, 'Destory r,g,b image', 'destory')] return True
def load(self, ips): titles = WindowsManager.get_titles() self.para['img1'] = titles[0] self.para['img2'] = titles[0] Match.view = [('lab', '========= two image in 8-bit ========='), (list, titles, str, 'image1', 'img1', ''), (list, titles, str, 'image2', 'img2', ''), ('lab', ''), ('lab', '====== parameter about the surf ======'), (int, (0, 5), 0, 'octaves', 'oct', ''), (int, (0, 5), 0, 'intervals', 'int', ''), (int, (500, 2000), 0, 'threshold', 'thr', '1-100'), (bool, 'extended', 'ext'), (bool, 'upright', 'upright'), ('lab', ''), ('lab', '====== how to match and display ======'), (list, ['None', 'Affine', 'H**o'], str, 'transform', 'trans', ''), (int, (1, 5), 0, 'Std', 'std', 'torlerance'), (list, ['Blue/Yellow', 'Hide'], str, 'Aspect', 'style', 'color'), (bool, 'Show log', 'log')] return True
def add_img(self, title, key, unit): titles = WindowsManager.get_titles() self.add_choice(titles, str, title, key, unit) self.para[key] = titles[0] return True
def run(self, para=None): if para['name'] == 'All': for i in WindowsManager.get_titles(): WindowsManager.close(i) else: WindowsManager.close(para['name'])
def load(self): ImageKiller.para = {'name': 'All'} titles = ['All'] + WindowsManager.get_titles() ##!TODO: waht is the view ? ImageKiller.view = [(list, titles, str, 'Name', 'name', 'selected')] return True