def view_warped_images(self, figure_id=None, new_figure=False, channels=None, **kwargs): r""" Displays the warped images. """ pixels_list = self.warped_images(as_pixels=True) return MultipleImageViewer(figure_id, new_figure, self.image.n_dims, pixels_list, channels=channels).render(**kwargs)
def view_appearance_reconstructions(self, figure_id=None, new_figure=False, channels=None, **kwargs): r""" Displays the appearance recontructions. """ pixels_list = self.appearance_reconstructions(as_pixels=True) return MultipleImageViewer(figure_id, new_figure, self.image.n_dims, pixels_list, channels=channels).render(**kwargs)
def view_error_images(self, figure_id=None, new_figure=False, channels=None, **kwargs): r""" Displays the error images. """ warped_images = self.warped_images(as_pixels=True) appearances = self.appearance_reconstructions(as_pixels=True) pixels_list = [a - i for a, i in zip(appearances, warped_images)] return MultipleImageViewer(figure_id, new_figure, self.image.n_dims, pixels_list, channels=channels).render(**kwargs)
def _view_images(self, pixels_list, figure_id=None, new_figure=False, channels=None, **kwargs): return MultipleImageViewer(figure_id, new_figure, self.image.n_dims, pixels_list, channels=channels).render(**kwargs)