⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 imagefeaturesdoc.h

📁 A tutorial and open source code for finding edges and corners based on the filters used in primary v
💻 H
字号:
// Partially wizard generated code
// ImageFeaturesDoc.h : interface of the CImageFeaturesDoc class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_IMAGEFEATURESDOC_H__42540390_80AF_11D2_8933_004033A0E6FB__INCLUDED_)
#define AFX_IMAGEFEATURESDOC_H__42540390_80AF_11D2_8933_004033A0E6FB__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

//#include "imagehandler.h"

#ifndef PROCESS_FEATURES_H
#include "ProcessFeatures.h"
#endif 

#include "canny.h"


class CImageFeaturesDoc : public CDocument
{
protected: // create from serialization only
	CImageFeaturesDoc();
	DECLARE_DYNCREATE(CImageFeaturesDoc)

public:
	// Get the image.
	const CVisImageBase& Image() const
		{ return m_image; }

	CVisImageBase& Image()
		{ return m_image; }
    void DisplayFeatureImage();
    // return true if successful
    bool DisplayText();

	CDefaultImage m_image;
	CDefaultImage GetImage()
		{ return m_image; }
//	void OnNewImage();

    void WindowNew();  // window for text or graphics

    CProcessFeatures m_process;

	Canny *m_pCanny;

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CImageFeaturesDoc)
	public:
	virtual BOOL OnNewDocument();
	virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
	virtual BOOL OnSaveDocument(LPCTSTR lpszPathName);
	virtual void DeleteContents();
	virtual void Serialize(CArchive& ar);
	//}}AFX_VIRTUAL

	virtual ~CImageFeaturesDoc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

private:
    bool m_viewText;
    bool m_viewGraphics;


protected:
	// This object will start a background thread that will
	//	handle getting images and processing them
//	CImageHandler m_ImageHandler;

// Generated message map functions
protected:
	//{{AFX_MSG(CImageFeaturesDoc)
	afx_msg void OnProcessFind();
	afx_msg void OnProcessGrid();
	afx_msg void OnViewGraphicaloutput();
	afx_msg void OnViewGridfile();
	afx_msg void OnViewTextoutput();
	afx_msg void OnProcessOptions();
	afx_msg void OnProcessTestEdges();
	afx_msg void OnProcessTestBars();
	afx_msg void OnUpdateViewGraphicaloutput(CCmdUI* pCmdUI);
	afx_msg void OnUpdateViewTextoutput(CCmdUI* pCmdUI);
	afx_msg void OnViewEdgesonly();
	afx_msg void OnUpdateViewEdgesonly(CCmdUI* pCmdUI);
	afx_msg void OnUpdateViewGridfile(CCmdUI* pCmdUI);
	afx_msg void OnProcessTestTaperedBars();
	afx_msg void OnProcessTestStoppedBars();
	afx_msg void OnProcessTestSolid3way();
	afx_msg void OnProcessTestSeparatedCorners();
	afx_msg void OnProcessTestForks();
	afx_msg void OnProcessTestEdgeResolution();
	afx_msg void OnProcessTest2Corners();
	afx_msg void OnProcessTestDisks();
	afx_msg void OnProcessTestCurves();
	afx_msg void OnProcessTestCross();
	afx_msg void OnProcessTestCorners();
	afx_msg void OnProcessTestBlobs();
	afx_msg void OnProcessTestBarResolurion();
	afx_msg void OnProcessTestAngleBars();
	afx_msg void OnProcessCanny();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_IMAGEFEATURESDOC_H__42540390_80AF_11D2_8933_004033A0E6FB__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -