def PictureCannySharpen(): global photoNew photoNew = ImageTk.PhotoImage(utils.CV2PIL(tp.CannySharpen(img))) LabReplace = tk.Label(mainwindow, compound='center', image=photoNew) LabReplace.place(x=440, y=50)
def PictureTwoFilter(): global photoNew photoNew = ImageTk.PhotoImage(utils.CV2PIL(tp.TwoEdgesFilter(img))) LabReplace = tk.Label(mainwindow, compound='center', image=photoNew) LabReplace.place(x=440, y=50)