def dupe_stack_roi(self): with operation_in_progress( "Copying data, this may take a while", "The data is being copied, this may take a while.", self.view): new_images = self.images.copy_roi( SensibleROI.from_points(*self.view.image_view.get_roi())) self.view.parent_create_stack(new_images, self.view.name)
def current_roi(self) -> SensibleROI: return SensibleROI.from_points(*self.image_view.get_roi())