public class FamilyImageFolder extends java.lang.Object implements IFamilyImageSeeker
Modifier and Type | Field and Description |
---|---|
protected int |
count |
protected java.io.File |
folder |
protected static int |
MAX_IMAGE_IN_FOLDER |
Constructor and Description |
---|
FamilyImageFolder(java.io.File folder,
java.util.regex.Pattern filePatternMatching) |
Modifier and Type | Method and Description |
---|---|
java.io.File |
getFolder()
get wurrent working folder
|
int |
getImageCount()
count the number of images in folder assuming there are continuous
|
java.awt.image.BufferedImage |
loadImage(int sequence)
load the image from index
|
protected static final int MAX_IMAGE_IN_FOLDER
protected java.io.File folder
protected int count
public FamilyImageFolder(java.io.File folder, java.util.regex.Pattern filePatternMatching)
public java.awt.image.BufferedImage loadImage(int sequence) throws java.lang.Exception
loadImage
in interface IFamilyImageSeeker
sequence
- java.lang.Exception
public int getImageCount()
getImageCount
in interface IFamilyImageSeeker
public java.io.File getFolder()