public class ShapeModelDatasets extends Object
ShapeModelDataset
instances.Modifier and Type | Method and Description |
---|---|
static <IMAGE extends Image<?,IMAGE>> |
create(List<IndependentPair<PointList,IMAGE>> data,
PointListConnections connections)
Create a dataset with the given data.
|
static <IMAGE extends Image<?,IMAGE>> |
loadASFDataset(String path,
InputStreamObjectReader<IMAGE> reader)
Load a dataset from ASF format files as used by the IMM dataset.
|
static <IMAGE extends Image<?,IMAGE>> |
loadPTSDataset(String ptsDirPath,
String imgDirPath,
String modelFilePath,
InputStreamObjectReader<IMAGE> reader)
Load a dataset from PTS format files as used by Tim Cootes's ASM/AAM
tools.
|
public static <IMAGE extends Image<?,IMAGE>> ShapeModelDataset<IMAGE> create(List<IndependentPair<PointList,IMAGE>> data, PointListConnections connections)
data
- the image-pointset pairsconnections
- the connections across the pointspublic static <IMAGE extends Image<?,IMAGE>> ShapeModelDataset<IMAGE> loadASFDataset(String path, InputStreamObjectReader<IMAGE> reader) throws IOException
path
- the file system path or uri. See the Apache Commons VFS2
documentation for all the details.reader
- the reader with which to load the imagesIOException
- if an error occursIMMFaceDatabase
,
"http://commons.apache.org/proper/commons-vfs/filesystems.html"public static <IMAGE extends Image<?,IMAGE>> ShapeModelDataset<IMAGE> loadPTSDataset(String ptsDirPath, String imgDirPath, String modelFilePath, InputStreamObjectReader<IMAGE> reader) throws IOException
ptsDirPath
- the directory containing the pts filesimgDirPath
- the directory containing the imagesmodelFilePath
- the path to the model (connections) filereader
- the reader with which to load the imagesIOException
- if an error occursIMMFaceDatabase
,
"http://commons.apache.org/proper/commons-vfs/filesystems.html"