资源简介
具体操作步骤如下:
1.输入带检索图像。
2.选择检索库路径。
3.选择检索方式:基于颜色特征、基于形状特征或者基于颜色和形状综合特征。
4.点击【开始检索】按钮即可得到检索结果。

代码片段和文件信息
// imagetrievalDlg.cpp : implementation file
#include “stdafx.h“
#include “图像检索系统.h“
#include “imagetrievalDlg.h“
#include “picture.h“
#include “math.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
#define PI 3.1415926
CString* temp[100];//检索库中图像路径
CString temp_1[100];//临时存放检索库中图像路径
CString strfile;//待检索图像的路径
CString m_strPath;//检索库路径
int tempi;//临时的检索库图像计数器
int counts;//检索库图像计数器
double pix[1000][1000];//当前分析图像的像素
double feature_shape[8];//待检索图像的形状特征
double feature_shape_1[8]; //当前分析图像的形状特征
double feature_color[3][12];//待检索图像的颜色特征
double feature_color_1[3][12]; //当前分析图像的颜色特征
bool open_pic;//设置待检索图像标志位
bool dir;//设置检索库标志位
bool color;//各种颜色方法是否使用过标志位
bool shape;//形状方法是否使用过标志位
picture image;//基于颜色特征
picture image_color_temp;
picture image_color_1;
picture image_color_2;
picture image_color_3;
picture image_shape;
picture image_shape_temp;
/////////////////////////////////////////////////////////////////////////////
// CAboutDlg dialog used for App About
class CAboutDlg : public CDialog
{
public:
CAboutDlg();
// Dialog Data
//{{AFX_DATA(CAboutDlg)
enum { IDD = IDD_ABOUTBOX };
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CAboutDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
//{{AFX_MSG(CAboutDlg)
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
{
//{{AFX_DATA_INIT(CAboutDlg)
//}}AFX_DATA_INIT
}
void CAboutDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAboutDlg)
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CAboutDlg CDialog)
//{{AFX_MSG_MAP(CAboutDlg)
// No message handlers
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CImagetrievalDlg dialog
CImagetrievalDlg::CImagetrievalDlg(CWnd* pParent /*=NULL*/)
: CDialog(CImagetrievalDlg::IDD pParent)
ccmethod(_T(““))
ccper(_T(““))
ssper(_T(““))
{
//{{AFX_DATA_INIT(CImagetrievalDlg)
//初始化选择的方法
ccmethod=(“颜色直方图“);
method=1;
c_per=50;
s_per=50;
open_pic=false;
dir=false;
//}}AFX_DATA_INIT
// Note that LoadIcon does not require a subsequent DestroyIcon in Win32
m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINframe);
}
void CImagetrievalDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CImagetrievalDlg)
//}}AFX_DATA_MAP
DDX_CBString(pDX IDC_COMBO1 ccmethod);
CString str1str2str3;
str1=(“颜色直方图“);
str2=(“累计直方图“);
str3=(“颜色矩“);
if(ccmethod==str1)
c_method=1;
if(ccmethod==str2)
c_method=2;
if(ccmethod==str3)
c_method=3;
DDX_Text(pDX IDC_EDIT2 ccper);
c_per=atoi(CT2CA(ccper.GetBuffer(ccper.GetLength())));
DDX_Text(pDX IDC_EDIT3 ssper);
s_per=atoi(CT2CA(ssper.GetBuffer(ssper.GetLen
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-07-12 09:13 08_图像检索系统\
目录 0 2018-07-12 09:14 08_图像检索系统\Images\
文件 262198 2018-07-12 09:14 08_图像检索系统\Images\1.BMP
文件 262198 2018-07-12 09:14 08_图像检索系统\Images\2.BMP
文件 262198 2018-07-12 09:14 08_图像检索系统\Images\3.BMP
文件 262198 2018-07-12 09:14 08_图像检索系统\Images\5.BMP
文件 112950 2018-07-12 09:14 08_图像检索系统\Images\6.BMP
文件 233526 2018-07-12 09:14 08_图像检索系统\Images\7.BMP
文件 46902 2018-07-12 09:14 08_图像检索系统\Images\E1453.BMP
文件 48182 2018-07-12 09:14 08_图像检索系统\Images\E1454.BMP
文件 46902 2018-07-12 09:14 08_图像检索系统\Images\E1456.BMP
文件 46902 2018-07-12 09:14 08_图像检索系统\Images\E1458.BMP
文件 46902 2018-07-12 09:14 08_图像检索系统\Images\E1459.BMP
文件 186422 2018-07-12 09:14 08_图像检索系统\Images\hand1.BMP
文件 186422 2018-07-12 09:14 08_图像检索系统\Images\hand10.BMP
文件 186422 2018-07-12 09:14 08_图像检索系统\Images\hand13.BMP
文件 186422 2018-07-12 09:14 08_图像检索系统\Images\hand2.BMP
文件 175158 2018-07-12 09:14 08_图像检索系统\Images\hand4.BMP
文件 186422 2018-07-12 09:14 08_图像检索系统\Images\leaf2.BMP
文件 186422 2018-07-12 09:14 08_图像检索系统\Images\leaf5.BMP
文件 186422 2018-07-12 09:13 08_图像检索系统\Images\leaf6.BMP
文件 36534 2018-07-12 09:14 08_图像检索系统\Images\TM141.BMP
文件 36534 2018-07-12 09:13 08_图像检索系统\Images\TM146.BMP
文件 34998 2018-07-12 09:13 08_图像检索系统\Images\tn_0003.BMP
文件 34998 2018-07-12 09:13 08_图像检索系统\Images\tn_0023.BMP
文件 34998 2018-07-12 09:13 08_图像检索系统\Images\tn_0024.BMP
文件 34998 2018-07-12 09:13 08_图像检索系统\Images\tn_0026.BMP
文件 34998 2018-07-12 09:13 08_图像检索系统\Images\tn_0027.BMP
文件 34998 2018-07-12 09:13 08_图像检索系统\Images\tn_0029.BMP
文件 36534 2018-07-12 09:14 08_图像检索系统\Images\ys047.BMP
文件 36534 2018-07-12 09:13 08_图像检索系统\Images\ys065.BMP
............此处省略23个文件信息
- 上一篇:GLS人声消除小插件
- 下一篇:高校教务管理系统继续教育学院B/S
相关资源
- 基于OpenCV的数字识别468815
- 使用opencv去掉二值化图像中黑色面积
- 基于纹理的图像检索源代码
- opencv环境配置
- win10 64位下编译的opencv4.5.5库,opencv
- opencl编程指南随书代码
- OPENCL编程指南随书源码
- 移远OpenCPU快速开始指导手册
- NVIDIAOpticalFlowSDK-79c6cee80a2df9a196f20afd6
- opencv_contrib-3.4.0.zip
- opencv2.4.9源码分析——SIFT
- 用两个摄像头实现,双目标定,双目
- 论文研究-基于肤色和AdaBoost算法的彩
- opencv_traincascade训练分类器,手势识别
- opencv3.0交叉编译用parallel.cpp
- 基于opencv的图像识别识别图像中的色
- 基于openCV的识别特定颜色区域
- 基于OpenCV的分水岭算法实现
- QT+opencv+OCR 身份证号码,银行卡号识别
- 基于内容图像检索技术 - 周明全、耿
- opencv视频特定颜色区域识别
- 把RGB转换为HSV和HSI然后根据黄色和蓝
- opencv视觉测距
- 基于Qt和opencv的身份证号码识别系统
- opencv_ffmpeg249.dll
- SfM稀疏三维点云重建--完整工程文件
- 基于opencv的数人头程序源代码
- 基于哈希方法的人脸图像检索技术综
- OpenCC-1.0.5-Win32
- 利用OpenCV中的Stitcher类实现全景图像拼
评论
共有 条评论