www.pudn.com > Imagepro_4.rar > ImageproView.h


// ImageproView.h : interface of the CImageproView class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_IMAGEPROVIEW_H__322B92FC_24EB_4D49_9893_C475313B0642__INCLUDED_) 
#define AFX_IMAGEPROVIEW_H__322B92FC_24EB_4D49_9893_C475313B0642__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
#include "Dib.h" 
#include "imageproDoc.h" 
class CImageproView : public CScrollView 
{ 
protected: // create from serialization only 
	CImageproView(); 
	DECLARE_DYNCREATE(CImageproView) 
 
// Attributes 
public: 
	CImageproDoc* GetDocument(); 
	 
    CDib  m_Dib; 
	long  currentwidth;				//图像的宽和高,即实际图像个数 
	long  currentheight; 
	int   	flag_binary  ; 
	int m_bk_first_width ; 
	int m_bk_first_height ; 
    bool  isTeZhengZhi ; 
	bool  isBKChonsen ; 
// Operations 
public: 
   void RegionGrow(CDib * pDib, unsigned char * pUnRegion, int nThreshold); 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CImageproView) 
	public: 
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	protected: 
	virtual void OnInitialUpdate(); // called first time after construct 
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); 
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo); 
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	virtual ~CImageproView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CImageproView) 
	afx_msg void OnSegmentEdgeLaplacian(); 
	afx_msg void OnSegmentEdgeLog(); 
	afx_msg void OnSegmentEdgeRoberts(); 
	afx_msg void OnSegmentEdgeSobel(); 
	afx_msg void OnSegmetEdgePrewitt(); 
	afx_msg void OnThresholdMesm(); 
	afx_msg void OnThresholdJohannson(); 
	afx_msg void OnThresholdGlobal(); 
	afx_msg void OnThresholdKapur(); 
	afx_msg void OnThresholdMincross(); 
	afx_msg void OnThresholdConcavity(); 
	afx_msg void OnThresholdOstu(); 
	afx_msg void OnThresholdGradient(); 
	afx_msg void OnThresholdProserve(); 
	afx_msg void OnThresholdReddi(); 
	afx_msg void OnRegionThresholdBased(); 
	afx_msg void OnEdgeLaplacian2(); 
	afx_msg void OnSegmetEdgePrewitt2(); 
	afx_msg void OnSegmentEdgeKrisch(); 
	afx_msg void OnSegmentEdgeKrisch2(); 
	afx_msg void OnFileSave(); 
	afx_msg void OnFileSaveAs(); 
	afx_msg void OnSub(); 
	afx_msg void OnSegmentEdgeRoberts2(); 
	afx_msg void OnMenuBkFtrst(); 
	afx_msg void OnMenuBkGray(); 
	afx_msg void OnMenuBkSecond(); 
	afx_msg void OnMenuGradient(); 
	afx_msg void OnMenuMedifilter(); 
	afx_msg void OnMenuPipei(); 
	afx_msg void OnMenuPipeizhongxin(); 
	afx_msg void OnMenuTezhengquyu(); 
	afx_msg void OnMenuMedifilter2(); 
	afx_msg void OnMenuFileload(); 
	afx_msg void OnMenuMedfilter(); 
	afx_msg void OnMenuMarching(); 
	afx_msg void OnMenuMatching2(); 
	afx_msg void OnMenuShowobject(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
private: 
	void Binary(); 
}; 
 
#ifndef _DEBUG  // debug version in ImageproView.cpp 
inline CImageproDoc* CImageproView::GetDocument() 
   { return (CImageproDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_IMAGEPROVIEW_H__322B92FC_24EB_4D49_9893_C475313B0642__INCLUDED_)