示例#1
0
 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")
示例#2
0
    def current_image(self):
        """
        Current image in sequence

        @return: fabioimage

        """
        return openimage(self.current())
示例#3
0
    def jump_image(self, num):
        """
        Jump to and read image

        @return: fabioimage

        """
        return openimage(self.jump(num))
示例#4
0
    def next_image(self):
        """
        Return the next image

        @return: fabioimage

        """
        return openimage(self.next())
示例#5
0
    def last_image(self):
        """
        Last image in a sequence

        @return: fabioimage

        """
        return openimage(self.last())
示例#6
0
    def first_image(self):
        """
        First image in a sequence

        @return: fabioimage

        """
        return openimage(self.first())
示例#7
0
    def previous_image(self):
        """
        Return the previous image

        @return: fabioimage

        """
        return openimage(self.previous())
示例#8
0
 def jump_image(self, num):
     """ returns the image number as a fabioimage"""
     return openimage(self.jump(num))
示例#9
0
 def current_image(self):
     """ returns the current image as a fabioimage"""
     return openimage(self.current())
示例#10
0
 def prev_image(self):
     """ returns the previos image as a fabioimage """
     return openimage(self.previous())
示例#11
0
 def next_image(self):
     """ returns the next image as a fabioimage """
     return openimage(self.next())
示例#12
0
 def last_image(self):
     """ last image in a sequence """
     return openimage(self.last())
示例#13
0
 def current_image(self):
     """ current image in sequence """
     return openimage(self.current())
示例#14
0
 def jump_image(self, num):
     """ jump to and read image """
     return openimage(self.jump(num))
示例#15
0
 def previous(self):
     """ returns the previous file in the series as a fabioimage """
     import openimage
     return openimage.openimage(fabioutils.previous_filename(self.filename))
示例#16
0
 def next(self):
     """ returns the next file in the series as a fabioimage """
     import openimage
     return openimage.openimage(fabioutils.next_filename(self.filename))
示例#17
0
 def first_image(self):
     """ first image in a sequence """
     return openimage(self.first())