Documentation of 'org.neuroph.imgrec.ImageFilesIterator' Java class
ImageFilesIterator
org.neuroph.imgrec

Class ImageFilesIterator

  • All Implemented Interfaces:
    java.util.Iterator<java.io.File>


    public class ImageFilesIterator
    extends java.lang.Object
    implements java.util.Iterator<java.io.File>
    This class provides Iterator for the image files (jpg and png) from the specified directory next() method loads and returns File objects
    • Constructor Summary

      Constructors 
      Constructor and Description
      ImageFilesIterator(java.io.File dir)
      Creates image files iterator for the specified directory
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getFilenameOfCurrentImage() 
      boolean hasNext() 
      java.io.File next()
      Loads and returns next image
      void remove() 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Constructor Detail

      • ImageFilesIterator

        public ImageFilesIterator(java.io.File dir)
                           throws java.io.IOException
        Creates image files iterator for the specified directory
        Parameters:
        dir - Directory to iterate images from
        Throws:
        java.io.IOException
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<java.io.File>
      • next

        public java.io.File next()
        Loads and returns next image
        Specified by:
        next in interface java.util.Iterator<java.io.File>
        Returns:
        Retruns next image file from directory as File object
      • remove

        public void remove()
        Specified by:
        remove in interface java.util.Iterator<java.io.File>
      • getFilenameOfCurrentImage

        public java.lang.String getFilenameOfCurrentImage()

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.