Exemple #1
0
    def load_zip_file_UI(self):
        """Load a zip file using a UI dialog box.

        .. versionadded:: 0.6
        """
        zfile = get_filepath_UI()
        self.load_zip_file(zfile)
Exemple #2
0
    def load_image_UI(self, im_type='open'):
        """Open a UI file browser to load dicom image.

        Parameters
        ----------
        im_type : {'open', 'mlcs'}
            Specifies which file/image type is being loaded in.
        """
        if _is_open_type(im_type):
            caption = "Select Open Field EPID Image..."
        elif _is_dmlc_type(im_type):
            caption = "Select MLC Field EPID Image..."

        fs = get_filepath_UI(self, caption=caption)
        if fs:  # if user didn't hit cancel
            self.load_image(fs, im_type=im_type)
Exemple #3
0
    def load_image_UI(self, im_type='open'):
        """Open a UI file browser to load dicom image.

        Parameters
        ----------
        im_type : {'open', 'mlcs'}
            Specifies which file/image type is being loaded in.
        """
        if _is_open_type(im_type):
            caption = "Select Open Field EPID Image..."
        elif _is_dmlc_type(im_type):
            caption = "Select MLC Field EPID Image..."

        fs = get_filepath_UI(self, caption=caption)
        if fs:  # if user didn't hit cancel
            self.load_image(fs, im_type=im_type)
Exemple #4
0
 def load_image_UI(self):
     """Load the image by using a UI dialog box."""
     path = get_filepath_UI()
     if path:
         self.load_image(path)
Exemple #5
0
 def from_UI(cls, caption='', to_gray=True):
     """Load an image using a UI dialog."""
     file_path = get_filepath_UI()
     if file_path:
         obj = cls(file_path, to_gray)
         return obj
Exemple #6
0
 def load_image_UI(self, filter=None):
     """Load the image using a UI dialog box."""
     path = get_filepath_UI()
     self.load_image(path, filter=filter)
Exemple #7
0
 def load_image_UI(self, filter=None):
     """Load the image using a UI dialog box."""
     path = get_filepath_UI()
     self.load_image(path, filter=filter)
Exemple #8
0
 def load_image_UI(self):
     """Load the image by using a UI dialog box."""
     path = get_filepath_UI()
     if path:
         self.load_image(path)