コード例 #1
0
 def update_hybrid(self, *args):
     if self.left_image is not None and self.right_image is not None:
         left_kernel_size = int(self.left_size_slider.get() / 2) * 2 + 1
         right_kernel_size = int(self.right_size_slider.get() / 2) * 2 + 1
         hybrid_image = hybrid.create_hybrid_image(
             self.left_image, self.right_image,
             self.left_sigma_slider.get(), left_kernel_size,
             self.left_high_low_indicator.get(),
             self.right_sigma_slider.get(), right_kernel_size,
             self.right_high_low_indicator.get(), self.mixin_slider.get())
         self.image_widget.draw_cv_image(hybrid_image)
コード例 #2
0
ファイル: gui.py プロジェクト: danielkcasey/Hybrid
 def update_hybrid(self, *args):
     if self.left_image is not None and self.right_image is not None:
         left_kernel_size = int(self.left_size_slider.get() / 2) * 2 + 1
         right_kernel_size = int(self.right_size_slider.get() / 2) * 2 + 1
         hybrid_image = hybrid.create_hybrid_image(
             self.left_image, self.right_image,
             self.left_sigma_slider.get(), left_kernel_size,
             self.left_high_low_indicator.get(),
             self.right_sigma_slider.get(), right_kernel_size,
             self.right_high_low_indicator.get(), self.mixin_slider.get())
         self.image_widget.draw_cv_image(hybrid_image)