资源简介
直接引入java工程,new SIFT()便可以获得sift特征
代码片段和文件信息
package com.healthcare.food;
import java.io.Serializable;
public class ImageFeature implements Comparable Serializable{
/**the ImageFeature here stands for every line of descriptor for each image
* objects whose class implements Comparable interface are comparable thus can be directly used by util.Array.Sort(objects[]);
*
*/
private static final long serialVersionUID = -6498123789358412224L;
private float[] descriptor;
private float orientation;
private float scale;
public ImageFeature()
{
}
public ImageFeature(double[] desc)
{
descriptor=new float[desc.length];
for (int i=0;i {
descriptor[i]=(float)desc[i];
}
}
public ImageFeature(f
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2007 2013-07-15 08:45 ImageFeature.java
文件 1272 2013-07-15 08:45 ImageFeatureExtractor.java
文件 32775 2013-07-15 08:45 Jama-1.0.2.jar
文件 7584 2013-07-18 09:38 SIFT.java
文件 46715 2013-07-15 08:45 Java_SIFT.jar
----------- --------- ---------- ----- ----
90353 5
- 上一篇:jsp+sql宿舍管理系统
- 下一篇:Android课程设计—简易音乐播放器
评论
共有 条评论