def getframe(self, num): """ returns the file numbered 'num' in the series as a fabioimage """ if self.nframes == 1: # single image per file import openimage return openimage.openimage(fabio.jump_filename(self.filename, num)) raise Exception("getframe out of range")
def current_image(self): """ Current image in sequence @return: fabioimage """ return openimage(self.current())
def jump_image(self, num): """ Jump to and read image @return: fabioimage """ return openimage(self.jump(num))
def next_image(self): """ Return the next image @return: fabioimage """ return openimage(self.next())
def last_image(self): """ Last image in a sequence @return: fabioimage """ return openimage(self.last())
def first_image(self): """ First image in a sequence @return: fabioimage """ return openimage(self.first())
def previous_image(self): """ Return the previous image @return: fabioimage """ return openimage(self.previous())
def jump_image(self, num): """ returns the image number as a fabioimage""" return openimage(self.jump(num))
def current_image(self): """ returns the current image as a fabioimage""" return openimage(self.current())
def prev_image(self): """ returns the previos image as a fabioimage """ return openimage(self.previous())
def next_image(self): """ returns the next image as a fabioimage """ return openimage(self.next())
def last_image(self): """ last image in a sequence """ return openimage(self.last())
def current_image(self): """ current image in sequence """ return openimage(self.current())
def jump_image(self, num): """ jump to and read image """ return openimage(self.jump(num))
def previous(self): """ returns the previous file in the series as a fabioimage """ import openimage return openimage.openimage(fabioutils.previous_filename(self.filename))
def next(self): """ returns the next file in the series as a fabioimage """ import openimage return openimage.openimage(fabioutils.next_filename(self.filename))
def first_image(self): """ first image in a sequence """ return openimage(self.first())