Source code for Apps_Colonoscopy

"""
This module provides functionality for processing colonoscopy images.
"""

from ShowResult import ShowImageResult


[docs] class Colonoscopy: """ This class encapsulates methods for processing colonoscopy images. """ def __init__(self, MainWindow): self.parent = MainWindow self.show = ShowImageResult(self.parent)
[docs] def colonoscopy(self): """ Process the colonoscopy image. This method processes the colonoscopy image based on the selected options. """ if self.parent.image is None: pass else: image = self.parent.image.copy() self.show.showOriginalImage(image) if self.parent.ui.checkAnypoint.isChecked(): self.parent.anypoint.showPolygon() self.show.showPanoAnyImage(self.parent.angle) elif self.parent.ui.checkPanorama.isChecked(): self.parent.panorama.showOriginalPanorama() self.show.showPanoAnyImage() elif self.parent.ui.checkBox_CenterLumen.isChecked(): self.parent.autoPano.centerLumen() # elif self.parent.ui.checkPanoramaAuto.isChecked(): # self.parent.autoPano.autoMode() # self.show.showPanoAnyImage() else: self.show.showResult(image)