数量识别.rar
数量识别.rar
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 99765 2010-03-23 08:23 数量识别图像显示1.jpg
文件 105638 2010-03-20 12:48 数量识别图像显示10A.jpg
文件 109725 2010-03-23 08:24 数量识别图像显示12A.jpg
文件 202284 2010-03-15 18:02 数量识别图像显示1A.jpg
文件 111586 2010-03-17 18:04 数量识别图像显示2.jpg
文件 192621 2010-03-15 18:02 数量识别图像显示2A.jpg
文件 117331 2010-03-17 18:07 数量识别图像显示3.jpg
文件 75913 2010-03-16 09:34 数量识别图像显示3A.jpg
文件 119616 2010-03-20 12:36 数量识别图像显示4.jpg
文件 110740 2010-03-17 18:05 数量识别图像显示4A.jpg
文件 117331 2010-03-17 18:07 数量识别图像显示7A.jpg
文件 103180 2010-03-20 12:42 数量识别图像显示8A.jpg
文件 19698 2010-03-27 15:35 数量识别图像显示AboutShowDig.cpp
文件 2028 2010-03-24 09:07 数量识别图像显示AboutShowDig.h
文件 42327 2010-01-20 09:44 数量识别图像显示DebugAboutShowDig.obj.enc
文件 6152 2010-07-19 17:33 数量识别图像显示DebugBuildLog.htm
文件 135218 2010-07-17 16:14 数量识别图像显示Debuggraphicshow.exe
文件 2048 2010-07-19 17:33 数量识别图像显示Debuggraphicshow.exe.embed.manifest
文件 35540 2010-07-19 17:33 数量识别图像显示Debuggraphicshow.obj
文件 8040 2010-03-27 15:28 数量识别图像显示Debuggraphicshow.res
文件 21399 2010-07-19 17:33 数量识别图像显示DebuggraphicshowDoc.obj
文件 29889 2010-07-19 17:33 数量识别图像显示DebuggraphicshowView.obj
文件 33792 2011-05-17 15:42 数量识别图像显示Debugvc60.idb
文件 421888 2011-05-17 15:42 数量识别图像显示Debugvc60.pdb
文件 692224 2010-07-19 17:33 数量识别图像显示Debugvc80.pdb
文件 2359350 2010-03-10 09:11 数量识别图像显示duorect.bmp
文件 2359350 2010-03-10 09:13 数量识别图像显示duotangle.bmp
文件 393334 2010-03-10 09:15 数量识别图像显示duoyuan.bmp
文件 2359350 2010-01-20 10:15 数量识别图像显示duoyuan1.bmp
文件 787510 2010-07-24 15:33 数量识别图像显示duoyuan2.bmp
............此处省略52个文件信息
// AboutShowDig.cpp : implementation file
//
#include “stdafx.h“
#include “graphicshow.h“
#include “AboutShowDig.h“
#include “afx.h“
#include “math.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CAboutShowDig dialog
IplImage *img1*img2*img3;
int jm;
double area1[5]area2[5]rad[5];
double u[4]v[4];
double u1[3]v1[3];
int c1[5]c2[5]c3[5]c4[5]c5[5]c6[5]min1min2;
CAboutShowDig::CAboutShowDig(CWnd* pParent /*=NULL*/)
: CDialog(CAboutShowDig::IDD pParent)
{ //{{AFX_DATA_INIT(CAboutShowDig)
// m_SHOW = _T(““);
// m_TEXTSHOW = _T(““);
//}}AFX_DATA_INIT
}
void CAboutShowDig::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CAboutShowDig)
DDX_Control(pDX IDC_LISTCONTROL m_list);
// DDX_Control(pDX IDC_TEXTSHOW m_TEXTSHOW);
// DDX_Text(pDX IDC_TEXTSHOW m_SHOW);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CAboutShowDig CDialog)
//{{AFX_MSG_MAP(CAboutShowDig)
ON_BN_CLICKED(IDC_BUTTON1 OnDect)
// ON_BN_CLICKED(IDC_BUTTON2 OnSHOWRESULT)
ON_CBN_SELCHANGE(IDC_COMBO1 OnSelchangeCombo1)
// ON_BN_CLICKED(IDC_RADIO1 OnRadiocanny)
// ON_BN_CLICKED(IDC_RADIO2 OnRadiodect)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CAboutShowDig message handlers
void CAboutShowDig::OnOK()
{ //CString str=m_PICTURE;
// CString strName;
// GetDlgItemText(IDC_EDIT1strName);
img1=cvLoadImage(strItem1);
Display(IDR_DISimg1);
// TODO: Add extra validation here
// CDialog::OnOK();
}
void CAboutShowDig::Display(int IDC_IDIplImage *image)
{
CWnd* pwnd = GetDlgItem(IDC_ID);
CDC* pDC = pwnd->GetDC();
HDC hDC = pDC->GetSafeHdc();
CRect rect;
pwnd->GetClientRect(&rect);
CvvImage cimg;
cimg.CopyOf(image1);
cimg.DrawToHDC(hDC&rect);
}
void CAboutShowDig::OnFinalRelease()
{
// TODO: Add your specialized code here and/or call the base class
CDialog::OnFinalRelease();
}
void CAboutShowDig::OnDect()
{
/*void drawSquares(IplImage *img CvSeq *squares)
{
CvSeqReader reader;
//IplImage* cpy = cvCloneImage( img );
// initialize reader of the sequence
cvStartReadSeq( squares &reader 0 );
// read 4 sequence elements at a time (all vertices of a square)
for(int i = 0; i < squares->total; i += 4 )
{
CvPoint pt[4] *rect = pt;
int count = 4;
// read 4 vertices
CV_READ_SEQ_ELEM( pt[0] reader );
CV_READ_SEQ_ELEM( pt[1] reader );
CV_READ_SEQ_ELEM( pt[2] reader );
CV_READ_SEQ_ELEM( pt[3] reader );
// draw the square as a closed polyline
cvPolyLine( img&rect &count 1 1 CV_RGB(25500) 1 CV_AA 0 );
}
void drawTangles(IplImage *img CvSeq *squar
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 99765 2010-03-23 08:23 数量识别图像显示1.jpg
文件 105638 2010-03-20 12:48 数量识别图像显示10A.jpg
文件 109725 2010-03-23 08:24 数量识别图像显示12A.jpg
文件 202284 2010-03-15 18:02 数量识别图像显示1A.jpg
文件 111586 2010-03-17 18:04 数量识别图像显示2.jpg
文件 192621 2010-03-15 18:02 数量识别图像显示2A.jpg
文件 117331 2010-03-17 18:07 数量识别图像显示3.jpg
文件 75913 2010-03-16 09:34 数量识别图像显示3A.jpg
文件 119616 2010-03-20 12:36 数量识别图像显示4.jpg
文件 110740 2010-03-17 18:05 数量识别图像显示4A.jpg
文件 117331 2010-03-17 18:07 数量识别图像显示7A.jpg
文件 103180 2010-03-20 12:42 数量识别图像显示8A.jpg
文件 19698 2010-03-27 15:35 数量识别图像显示AboutShowDig.cpp
文件 2028 2010-03-24 09:07 数量识别图像显示AboutShowDig.h
文件 42327 2010-01-20 09:44 数量识别图像显示DebugAboutShowDig.obj.enc
文件 6152 2010-07-19 17:33 数量识别图像显示DebugBuildLog.htm
文件 135218 2010-07-17 16:14 数量识别图像显示Debuggraphicshow.exe
文件 2048 2010-07-19 17:33 数量识别图像显示Debuggraphicshow.exe.em
文件 35540 2010-07-19 17:33 数量识别图像显示Debuggraphicshow.obj
文件 8040 2010-03-27 15:28 数量识别图像显示Debuggraphicshow.res
文件 21399 2010-07-19 17:33 数量识别图像显示DebuggraphicshowDoc.obj
文件 29889 2010-07-19 17:33 数量识别图像显示DebuggraphicshowView.obj
文件 33792 2011-05-17 15:42 数量识别图像显示Debugvc60.idb
文件 421888 2011-05-17 15:42 数量识别图像显示Debugvc60.pdb
文件 692224 2010-07-19 17:33 数量识别图像显示Debugvc80.pdb
文件 2359350 2010-03-10 09:11 数量识别图像显示duorect.bmp
文件 2359350 2010-03-10 09:13 数量识别图像显示duotangle.bmp
文件 393334 2010-03-10 09:15 数量识别图像显示duoyuan.bmp
文件 2359350 2010-01-20 10:15 数量识别图像显示duoyuan1.bmp
文件 787510 2010-07-24 15:33 数量识别图像显示duoyuan2.bmp
............此处省略52个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)