Esempio n. 1
0
 def ConvertToHSV(self):
     progress_dialog = QProgressDialog()
     self.processing_wdg.SetConvertBtnDisactive()
     image = self.processed_image.ConvertToHSV()
     self.processed_image = Segmented_image.FromSITKImage(image)
     self.ShowSelectedImage()
     progress_dialog.close()
Esempio n. 2
0
 def MakeSegmentation(self):
     progress_dialog = QProgressDialog()
     segmentation = Segmentation(self.processed_image)
     progress_dialog.setValue(10)
     seg_img = segmentation.makeSegment(self.processing_wdg.GetMinObjSize(),
                                        self.processing_wdg.GetThrDown(),
                                        self.processing_wdg.GetThrUp())
     progress_dialog.setValue(30)
     self.processed_image = Segmented_image.FromSITKImage(seg_img)
     progress_dialog.setValue(50)
     self.processing_wdg.SetCellsNumResult(segmentation.GetCellsNum())
     progress_dialog.setValue(80)
     self.ShowSelectedImage()
     progress_dialog.setValue(100)
     progress_dialog.close()