public class SiftWrapper extends Object
SiftWrapper t = new SiftWrapper(new File("c:/temp/siftWin32.exe"));
List features = t.getFeatures(new File("c:\\temp\\ant-sample.pgm"));
An image passed to this class is first saved as a .pgm in the systems temp directory. This file is passed to the sift
binary and deleted afterwards.Constructor and Description |
---|
SiftWrapper(File siftBinary)
creates the sift wrapper
|
Modifier and Type | Method and Description |
---|---|
List<double[]> |
getFeatures(File f)
Creates and returnes Sift-Features from the given file.
|
List<double[]> |
getFeatures(ij.process.ImageProcessor ip) |
public SiftWrapper(File siftBinary) throws IOException
siftBinary
- the SIFT executableIOException
- if exec is not an executablepublic List<double[]> getFeatures(ij.process.ImageProcessor ip) throws IOException, InterruptedException
IOException
InterruptedException
public List<double[]> getFeatures(File f) throws IOException, InterruptedException
f
- PGM imageIOException
InterruptedException
Copyright © 2013. All Rights Reserved.