phoenix@PhoenixBai:~/Downloads/siftDemoV4$ ls sift
sift
phoenix@PhoenixBai:~/Downloads/siftDemoV4$ ./sift
bash: ./sift: No such file or directory
phoenix@PhoenixBai:~/Downloads/siftDemoV4$ file sift
sift: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.5, for SuSE 9.1, not stripped
phoenix@PhoenixBai:~/Downloads/siftDemoV4$ uname -a
Linux PhoenixBai 3.13.0-36-generic #63-Ubuntu SMP Wed Sep 3 21:30:07 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
--
You received this message because you are subscribed to the Google Groups "JFeatureLib" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jfeaturelib...@googlegroups.com.
To post to this group, send email to jfeat...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
phoenix@PhoenixBai:~/Downloads/siftDemoV4$ ./sift -display <book.pgm>result.pgm
Finding keypoints...
882 keypoints found.
PGM file output.
2014-10-22 19:32:50,042 [main] WARN [de.lmu.ifi.dbs.jfeaturelib.features.Sift] - Stream closed
java.io.IOException: Stream closed
at java.lang.ProcessBuilder$NullOutputStream.write(ProcessBuilder.java:434)
at java.io.OutputStream.write(OutputStream.java:116)
at java.io.BufferedOutputStream.write(BufferedOutputStream.java:122)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
at java.io.BufferedOutputStream.write(BufferedOutputStream.java:95)
at de.lmu.ifi.dbs.jfeaturelib.features.sift.SiftWrapper.dataToProcess(SiftWrapper.java:229)
at de.lmu.ifi.dbs.jfeaturelib.features.sift.SiftWrapper.getFeatures(SiftWrapper.java:130)
at de.lmu.ifi.dbs.jfeaturelib.features.sift.SiftWrapper.getFeatures(SiftWrapper.java:104)
at de.lmu.ifi.dbs.jfeaturelib.features.sift.SiftWrapper.getFeatures(SiftWrapper.java:81)
at de.lmu.ifi.dbs.jfeaturelib.features.Sift.run(Sift.java:115)
phoenix@PhoenixBai:~/Downloads/siftDemoV4$ ./sift -display <abc.pgm> abc.pgm
Finding keypoints...
ERROR: Input is not a standard raw PGM file.
Use xv or PNM tools to convert file to 8-bit PGM format.
public List<double[]> getFeatures(ImageProcessor ip) throws IOException, InterruptedException {
File tmpFile = File.createTempFile(PREFIX, SUFFIX);
List<double[]> features;
try {
ImagePlus iPlus = new ImagePlus(tmpFile.getAbsolutePath());
iPlus.setProcessor("", ip);
new FileSaver(iPlus).saveAsPgm(tmpFile.getAbsolutePath());
features = getFeatures(tmpFile);
} finally {();
}
return features;
}
new ColorProcessor(new BufferedImage(...))
java version "1.7.0_72"
Java(TM) SE Runtime Environment (build 1.7.0_72-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.72-b04, mixed mode)
//add i386 support to run 32bit binary file
sudo apt-get install gcc-multilib
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
./sift -display <book.pgm >result.pgm