public class TiledImage extends java.lang.Object implements ITiledImage
| Constructor and Description |
|---|
TiledImage(java.io.File imagePath,
java.io.File outputRecognitionProject) |
TiledImage(java.io.File imagePath,
java.io.File outputRecognitionProject,
int maxHeight) |
| Modifier and Type | Method and Description |
|---|---|
protected java.io.File |
constructImagePath(int i,
java.lang.String suffix) |
void |
constructTiles() |
int |
getHeight() |
int |
getImageCount()
number of images
|
protected java.io.File |
getImagePath() |
java.io.File |
getImagePath(int i)
file image path associated to its index
|
int |
getWidth() |
static java.awt.Dimension |
readImageSize(java.io.InputStream is) |
protected void |
setTiledImageDirectory(java.io.File tileImageDirectory) |
java.awt.geom.Rectangle2D.Double |
subTileDimension(int index)
grab the tile extend
|
int[] |
subTiles(java.awt.geom.Rectangle2D.Double viewport)
return the tiles that intersect the viewport
|
public TiledImage(java.io.File imagePath,
java.io.File outputRecognitionProject)
throws java.lang.Exception
java.lang.Exceptionpublic TiledImage(java.io.File imagePath,
java.io.File outputRecognitionProject,
int maxHeight)
throws java.lang.Exception
java.lang.Exceptionprotected void setTiledImageDirectory(java.io.File tileImageDirectory)
protected java.io.File getImagePath()
public int getWidth()
getWidth in interface ITiledImagepublic int getHeight()
getHeight in interface ITiledImagepublic void constructTiles()
throws java.lang.Exception
java.lang.Exceptionpublic int getImageCount()
ITiledImagegetImageCount in interface ITiledImageprotected java.io.File constructImagePath(int i,
java.lang.String suffix)
public java.io.File getImagePath(int i)
ITiledImagegetImagePath in interface ITiledImagepublic static java.awt.Dimension readImageSize(java.io.InputStream is)
throws java.lang.Exception
java.lang.Exceptionpublic java.awt.geom.Rectangle2D.Double subTileDimension(int index)
ITiledImagesubTileDimension in interface ITiledImagepublic int[] subTiles(java.awt.geom.Rectangle2D.Double viewport)
ITiledImagesubTiles in interface ITiledImage