Esempio n. 1
0
    def display(self, workspace, figure):
        orig_image_pixel_data = workspace.display_data.orig_image_pixel_data
        cropped_pixel_data = workspace.display_data.cropped_pixel_data
        figure.set_subplots((2, 1))

        title = "Original: %s, cycle # %d" % (self.image_name.value,
                                              workspace.display_data.image_set_number)
        figure.subplot_imshow_grayscale(0, 0, orig_image_pixel_data, title)
        figure.subplot_imshow_bw(1, 0, cropped_pixel_data,
                                 self.cropped_image_name.value,
                                 sharexy=figure.subplot(0, 0))
Esempio n. 2
0
    def display(self, workspace, figure):
        orig_image_pixel_data = workspace.display_data.orig_image_pixel_data
        cropped_pixel_data = workspace.display_data.cropped_pixel_data
        figure.set_subplots((2, 1))

        title = "Original: %s, cycle # %d" % (
            self.image_name.value, workspace.display_data.image_set_number)
        figure.subplot_imshow_grayscale(0, 0, orig_image_pixel_data, title)
        figure.subplot_imshow_bw(1,
                                 0,
                                 cropped_pixel_data,
                                 self.cropped_image_name.value,
                                 sharexy=figure.subplot(0, 0))
Esempio n. 3
0
 def imshow_fn(pixel_data):
     if pixel_data.ndim == 3:
         figure.subplot_imshow_color(0, 0, pixel_data, title=title)
     else:
         figure.subplot_imshow_grayscale(0, 0, pixel_data, title=title)