Documentation of 'boofcv.io.wrapper.images.LoadFileImageSequence' Java class
LoadFileImageSequence
boofcv.io.wrapper.images

Class LoadFileImageSequence<T extends ImageBase>

  • All Implemented Interfaces:
    SimpleImageSequence<T>


    public class LoadFileImageSequence<T extends ImageBase>
    extends java.lang.Object
    implements SimpleImageSequence<T>
    Loads all the images in a directory that have the specified suffix. If requested it can scale the images down. The order in which the images are returned is determined by Collections.sort() by file name.
    • Constructor Summary

      Constructors 
      Constructor and Description
      LoadFileImageSequence(ImageType<T> type, java.lang.String directory, java.lang.String suffix)
      Will load an image sequence with no modification.
      LoadFileImageSequence(ImageType<T> type, java.lang.String directory, java.lang.String suffix, int scalefactor)
      Will load an image sequence and then scale the images
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void close()
      Call when done reading the image sequence.
      int getFrameNumber()
      Returns the number of the current frame in the sequence.
      java.awt.image.BufferedImage getGuiImage()
      Returns the image in the original format that it was read in as.
      ImageType<T> getImageType()
      Returns the type of class used to store the output image
      int getIndex() 
      int getNextHeight()
      Returns the height of the next image
      int getNextWidth()
      Returns the width of the next image
      boolean hasNext()
      True if there is another image to read and false if there are no more.
      boolean isLoop() 
      T next()
      Loads the next image into a BufferedImage and returns it.
      void reset()
      Start reading the sequence from the start
      void setIndex(int index) 
      void setLoop(boolean loop)
      Sets if the video should loop or not
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LoadFileImageSequence

        public LoadFileImageSequence(ImageType<T> type,
                                     java.lang.String directory,
                                     java.lang.String suffix)
        Will load an image sequence with no modification.
        Parameters:
        directory - The directory containing the images.
        suffix - The suffix that the images have.
      • LoadFileImageSequence

        public LoadFileImageSequence(ImageType<T> type,
                                     java.lang.String directory,
                                     java.lang.String suffix,
                                     int scalefactor)
        Will load an image sequence and then scale the images
        Parameters:
        directory - The directory containing the images.
        suffix - The suffix that the images have.
        scalefactor - How much the images will be scaled down by.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.