org.neuroph.imgrec
Class ImageFilesIterator
- java.lang.Object
-
- org.neuroph.imgrec.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.StringgetFilenameOfCurrentImage()booleanhasNext()java.io.Filenext()Loads and returns next imagevoidremove()
-
-
-
Constructor Detail
-
ImageFilesIterator
public ImageFilesIterator(java.io.File dir) throws java.io.IOExceptionCreates 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:
hasNextin interfacejava.util.Iterator<java.io.File>
-
next
public java.io.File next()
Loads and returns next image- Specified by:
nextin interfacejava.util.Iterator<java.io.File>- Returns:
- Retruns next image file from directory as File object
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator<java.io.File>
-
getFilenameOfCurrentImage
public java.lang.String getFilenameOfCurrentImage()
-
-
DMelt 3.0 © DataMelt by jWork.ORG