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

📄 imagenview.h

📁 这是VC++ 2003.net图像处理的光盘源程序!!!非常好的
💻 H
字号:
// ImageNView.h : interface of the CImageNView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_ImageNVIEW_H__1B803495_4335_49E3_9465_BB0DC206C9D7__INCLUDED_)
#define AFX_ImageNVIEW_H__1B803495_4335_49E3_9465_BB0DC206C9D7__INCLUDED_

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

#define	PI	3.14159265

class CImageNView : public CView
{
protected: // create from serialization only
	CImageNView();
	DECLARE_DYNCREATE(CImageNView)

// Attributes
public:
	CImageNDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CImageNView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CImageNView();

private:
  	int			m_nGraphicFlag;
	int			m_nFlag;
	int			m_nMaskF;
	int  		m_nStartX;
	int			m_nStartY;
	int  		m_nMaskX;
	int			m_nMaskY;

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

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CImageNView)
   	afx_msg void OnRefresh();
  	afx_msg void OnUpdateRefresh(CCmdUI *pCmdUI);
	afx_msg void OnGrayImage();
 	afx_msg void OnUpdateGrayImage(CCmdUI *pCmdUI);
	afx_msg void OnGtExp();
	afx_msg void OnGtSquare();
	afx_msg void OnGtLinear();
	afx_msg void OnGtSqrt();
	afx_msg void OnGtLog();
	afx_msg void OnGtEqual();
	afx_msg void OnGtHistoEq();
	afx_msg void OnGtNega();
	afx_msg void OnBorderEqual();
	afx_msg void OnGtPsendoColor();
	afx_msg void OnOtsuThreshold();
	afx_msg void OnUpdateGtExp(CCmdUI *pCmdUI);
	afx_msg void OnUpdateGtSquare(CCmdUI *pCmdUI);
	afx_msg void OnUpdateGtLinear(CCmdUI *pCmdUI);
	afx_msg void OnUpdateGtSqrt(CCmdUI *pCmdUI);
	afx_msg void OnUpdateGtLog(CCmdUI *pCmdUI);
	afx_msg void OnUpdateGtEqual(CCmdUI *pCmdUI);
	afx_msg void OnUpdateGtHistoEq(CCmdUI *pCmdUI);
	afx_msg void OnUpdateGtNega(CCmdUI *pCmdUI);
	afx_msg void OnUpdateBorderEqual(CCmdUI *pCmdUI);
	afx_msg void OnUpdateGtPsendoColor(CCmdUI *pCmdUI);
	afx_msg void OnDensitySegment();
	afx_msg void OnUpdateDensitySegment(CCmdUI *pCmdUI);
	afx_msg void OnMinimumThreshold();
	afx_msg void OnEntropicThreshold();
	afx_msg void OnMomentThreshold();
	afx_msg void OnBiasnormalThreshold();
	afx_msg void OnUpdateOtsuThreshold(CCmdUI *pCmdUI);
	afx_msg void OnUpdateMinimumThreshold(CCmdUI *pCmdUI);
	afx_msg void OnUpdateEntropicThreshold(CCmdUI *pCmdUI);
	afx_msg void OnUpdateMomentThreshold(CCmdUI *pCmdUI);
	afx_msg void OnUpdateBiasnormalThreshold(CCmdUI *pCmdUI);
	afx_msg void OnSmooth5();
	afx_msg void OnSmooth9();
	afx_msg void OnMedian5();
	afx_msg void OnMedian9();
	afx_msg void OnGradBorddetec();
	afx_msg void OnRobertsBorddetec();
	afx_msg void OnSobelBorddetec();
	afx_msg void OnLaplaceBorddetec();
	afx_msg void OnKirschBorddetec();
	afx_msg void OnRobinsonBorddetec();
	afx_msg void OnPrewittBorddetec();
	afx_msg void OnBoundaryEnhance();
	afx_msg void OnUpdateSmooth5(CCmdUI *pCmdUI);
	afx_msg void OnUpdateSmooth9(CCmdUI *pCmdUI);
	afx_msg void OnUpdateMedian5(CCmdUI *pCmdUI);
	afx_msg void OnUpdateMedian9(CCmdUI *pCmdUI);
	afx_msg void OnUpdateGradBorddetec(CCmdUI *pCmdUI);
	afx_msg void OnUpdateRobertsBorddetec(CCmdUI *pCmdUI);
	afx_msg void OnUpdateSobelBorddetec(CCmdUI *pCmdUI);
	afx_msg void OnUpdateLaplaceBorddetec(CCmdUI *pCmdUI);
	afx_msg void OnUpdateKirschBorddetec(CCmdUI *pCmdUI);
	afx_msg void OnUpdateRobinsonBorddetec(CCmdUI *pCmdUI);
	afx_msg void OnUpdatePrewittBorddetec(CCmdUI *pCmdUI);
	afx_msg void OnUpdateBoundaryEnhance(CCmdUI *pCmdUI);
	afx_msg void OnConservationImage();
	afx_msg void OnUpdateConservationImage(CCmdUI *pCmdUI);
	afx_msg void OnHilditchThinning();
	afx_msg void OnDeutchThinning();
	afx_msg void OnFastthinThinning();
	afx_msg void OnNaccacheThinning();
	afx_msg void OnPavlidis1Thinning();
	afx_msg void OnPavlidis2Thinning();
	afx_msg void OnRosenfeld4Thinning();
	afx_msg void OnRosenfeld8Thinnin();
	afx_msg void OnUpdateHilditchThinning(CCmdUI *pCmdUI);
	afx_msg void OnUpdateDeutchThinning(CCmdUI *pCmdUI);
	afx_msg void OnUpdateFastthinThinning(CCmdUI *pCmdUI);
	afx_msg void OnUpdateNaccacheThinning(CCmdUI *pCmdUI);
	afx_msg void OnUpdatePavlidis1Thinning(CCmdUI *pCmdUI);
	afx_msg void OnUpdatePavlidis2Thinning(CCmdUI *pCmdUI);
	afx_msg void OnUpdateRosenfeld4Thinning(CCmdUI *pCmdUI);
	afx_msg void OnUpdateRosenfeld8Thinnin(CCmdUI *pCmdUI);
	afx_msg void OnDistance();
	afx_msg void OnUpdateDistance(CCmdUI *pCmdUI);
	afx_msg void OnUpdateErosion(CCmdUI *pCmdUI);
	afx_msg void OnErosion();
	afx_msg void OnDilation();
	afx_msg void OnOpening();
	afx_msg void OnClosing();
	afx_msg void OnUpdateDilation(CCmdUI *pCmdUI);
	afx_msg void OnUpdateOpening(CCmdUI *pCmdUI);
	afx_msg void OnUpdateClosing(CCmdUI *pCmdUI);
	afx_msg void OnGrayErosion();
	afx_msg void OnGrayDilation();
	afx_msg void OnGrayOpenning();
	afx_msg void OnGrayClosing();
	afx_msg void OnUpdateGrayErosion(CCmdUI *pCmdUI);
	afx_msg void OnUpdateGrayDilation(CCmdUI *pCmdUI);
	afx_msg void OnUpdateGrayOpenning(CCmdUI *pCmdUI);
	afx_msg void OnUpdateGrayClosing(CCmdUI *pCmdUI);
	afx_msg void OnGrayGrads();
	afx_msg void OnGinnerBorder();
	afx_msg void OnGouterBorder();
	afx_msg void OnGrayTophat();
	afx_msg void OnUpdateGrayGrads(CCmdUI *pCmdUI);
	afx_msg void OnUpdateGinnerBorder(CCmdUI *pCmdUI);
	afx_msg void OnUpdateGouterBorder(CCmdUI *pCmdUI);
	afx_msg void OnUpdateGrayTophat(CCmdUI *pCmdUI);
	afx_msg void OnProjection();
	afx_msg void OnUpdateProjection(CCmdUI *pCmdUI);
	afx_msg void OnImageHistogram();
	afx_msg void OnUpdateImageHistogram(CCmdUI *pCmdUI);
	afx_msg void OnLapsketchBorddetec();
	afx_msg void OnUpdateLapsketchBorddetec(CCmdUI *pCmdUI);
	afx_msg void OnLoGBorddetec();
	afx_msg void OnUpdateLoGBorddetec(CCmdUI *pCmdUI);
	afx_msg void OnOneWidthLineDetect();
	afx_msg void OnUpdateOneWidthLineDetect(CCmdUI *pCmdUI);
	afx_msg void OnImageInvert();
	afx_msg void OnUpdateImageInvert(CCmdUI *pCmdUI);
	afx_msg void OnPtileThreshold();
	afx_msg void OnUpdatePtileThreshold(CCmdUI *pCmdUI);
	afx_msg void OnMorphologyThin();
	afx_msg void OnUpdateMorphologyThin(CCmdUI *pCmdUI);
	afx_msg void OnFormAnalysis();
	afx_msg void OnUpdateFormAnalysis(CCmdUI *pCmdUI);
	afx_msg void OnHistogramType();
	afx_msg void OnUpdateHistogramType(CCmdUI *pCmdUI);
  	afx_msg void OnRemoveLineNoise();
	afx_msg void OnUpdateRemoveLineNoise(CCmdUI *pCmdUI);
	afx_msg void OnImageHue();
	afx_msg void OnImageSaturation();
	afx_msg void OnImageValue();
	afx_msg void OnUpdateImageHue(CCmdUI *pCmdUI);
	afx_msg void OnUpdateImageSaturation(CCmdUI *pCmdUI);
	afx_msg void OnUpdateImageValue(CCmdUI *pCmdUI);
	afx_msg void OnHSPlane();
	afx_msg void OnSVPlane();
	afx_msg void OnHVPlane();
	afx_msg void On2DimensionHistogram();
	afx_msg void OnUpdate2DimensionHistogram(CCmdUI *pCmdUI);
	afx_msg void OnRgbHistogram();
	afx_msg void OnHsvHistogram();
	afx_msg void OnUpdateRgbHistogram(CCmdUI *pCmdUI);
	afx_msg void OnUpdateHsvHistogram(CCmdUI *pCmdUI);
	afx_msg void OnImageRed();
	afx_msg void OnImageGreen();
	afx_msg void OnImageBlue();
	afx_msg void OnUpdateImageRed(CCmdUI *pCmdUI);
	afx_msg void OnUpdateImageGreen(CCmdUI *pCmdUI);
	afx_msg void OnUpdateImageBlue(CCmdUI *pCmdUI);
	afx_msg void OnColorSobel();
	afx_msg void OnColorSobelVector();
	afx_msg void OnUpdateColorSobel(CCmdUI *pCmdUI);
	afx_msg void OnUpdateColorSobelVector(CCmdUI *pCmdUI);
	afx_msg void OnUpdate2DimensionCombine(CCmdUI *pCmdUI);
	afx_msg void On2DimensionCombine();
	afx_msg void OnIndexImage();
	afx_msg void OnUpdateIndexImage(CCmdUI *pCmdUI);
	afx_msg void OnCircularColorPlanes();
	afx_msg void OnDirectionNo0();
	afx_msg void OnDirectionNo1();
	afx_msg void OnDirectionNo2();
	afx_msg void OnDirectionNo3();
	afx_msg void OnDirectionNo4();
	afx_msg void OnDirectionNo5();
	afx_msg void OnDirectionNo6();
	afx_msg void OnDirectionNo7();
	afx_msg void OnDirectionNo8();
	afx_msg void OnSobelThinning();
	afx_msg void OnUpdateSobelThinning(CCmdUI *pCmdUI);
	afx_msg void OnSaveMask();
	afx_msg void OnRemoveBackgrond();
	afx_msg void OnUpdateSaveMask(CCmdUI *pCmdUI);
	afx_msg void OnUpdateRemoveBackgrond(CCmdUI *pCmdUI);
	afx_msg void OnAddImage();
	afx_msg void OnSaveAddImage();
	afx_msg void OnUpdateSaveAddImage(CCmdUI *pCmdUI);
	afx_msg void OnUpdateAddImage(CCmdUI *pCmdUI);
	afx_msg void OnColligationThreshold();
	afx_msg void OnUpdateColligationThreshold(CCmdUI *pCmdUI);
	afx_msg void OnSimpleThreshold();
	afx_msg void OnUpdateSimpleThreshold(CCmdUI *pCmdUI);
	afx_msg void OnLogPrewitt();
	afx_msg void OnUpdateLogPrewitt(CCmdUI *pCmdUI);
	afx_msg void OnSobelGradOr();
	afx_msg void OnUpdateSobelGradOr(CCmdUI *pCmdUI);
	afx_msg void OnSobelRgb();
	afx_msg void OnSobelYiq();
	afx_msg void OnUpdateSobelRgb(CCmdUI *pCmdUI);
	afx_msg void OnUpdateSobelYiq(CCmdUI *pCmdUI);
	afx_msg void OnSobelLab();
	afx_msg void OnUpdateSobelLab(CCmdUI *pCmdUI);
	afx_msg void OnImageY();
	afx_msg void OnImageI();
	afx_msg void OnImageQ();
	afx_msg void OnImageL();
	afx_msg void OnImageA();
	afx_msg void OnImageB();
	afx_msg void OnUpdateImageY(CCmdUI *pCmdUI);
	afx_msg void OnUpdateImageI(CCmdUI *pCmdUI);
	afx_msg void OnUpdateImageQ(CCmdUI *pCmdUI);
	afx_msg void OnUpdateImageL(CCmdUI *pCmdUI);
	afx_msg void OnUpdateImageA(CCmdUI *pCmdUI);
	afx_msg void OnUpdateImageB(CCmdUI *pCmdUI);
	afx_msg void OnInnerBoundary();
	afx_msg void OnOuterBoundary();
	afx_msg void OnMorphologyBoundary();
	afx_msg void OnAreaSkeleton();
	afx_msg void OnUpdateInnerBoundary(CCmdUI *pCmdUI);
	afx_msg void OnUpdateOuterBoundary(CCmdUI *pCmdUI);
	afx_msg void OnUpdateMorphologyBoundary(CCmdUI *pCmdUI);
	afx_msg void OnUpdateAreaSkeleton(CCmdUI *pCmdUI);
	afx_msg void OnBlackGrayTophat();
	afx_msg void OnUpdateBlackGrayTophat(CCmdUI *pCmdUI);
	afx_msg void OnRemoveNoise();
	afx_msg void OnUpdateRemoveNoise(CCmdUI *pCmdUI);
	afx_msg void OnPatternThin();
	afx_msg void OnUpdatePatternThin(CCmdUI *pCmdUI);
	afx_msg void On2dimensionHistogramHv();
	afx_msg void On2dimensionHistogramSv();
	afx_msg void OnUpdate2dimensionHistogramHv(CCmdUI *pCmdUI);
	afx_msg void OnUpdate2dimensionHistogramSv(CCmdUI *pCmdUI);

	afx_msg void OnContourTracking();
	afx_msg void OnAreaParamentMeasure();
 	afx_msg void OnLineCoding();
	afx_msg void OnAreaMeasure();
	afx_msg void OnSearchAreaKernel();
	afx_msg void OnLimitErosion();
	afx_msg void OnConditionDilation();
	afx_msg void OnUpdateContourTracking(CCmdUI *pCmdUI);
	afx_msg void OnUpdateAreaParamentMeasure(CCmdUI *pCmdUI);
 	afx_msg void OnUpdateLineCoding(CCmdUI *pCmdUI);
	afx_msg void OnUpdateAreaMeasure(CCmdUI *pCmdUI);
	afx_msg void OnUpdateSearchAreaKernel(CCmdUI *pCmdUI);
	afx_msg void OnUpdateLimitErosion(CCmdUI *pCmdUI);
	afx_msg void OnUpdateConditionDilation(CCmdUI *pCmdUI);
	afx_msg void OnAutomaticSelect();
	afx_msg void OnWhiteArea();
	afx_msg void OnBlackArea();
	afx_msg void OnUpdateAutomaticSelect(CCmdUI *pCmdUI);
	afx_msg void OnUpdateWhiteArea(CCmdUI *pCmdUI);
	afx_msg void OnUpdateBlackArea(CCmdUI *pCmdUI);

 	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnMakeMask();
	afx_msg void OnUpdateMakeMask(CCmdUI *pCmdUI);
	afx_msg void OnSaveMaskA();
	afx_msg void OnUpdateSaveMaskA(CCmdUI *pCmdUI);

	void WriteTitle(CImage* pImg,CString FileName,CString str0);
 	void WorkCanvusToWindow();
	void ClearWindow(int flag);
  	void GrayTransfer(int f);
	void SelectDirection(int n);
	void MorphologicA(int n);

	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};


#ifndef _DEBUG  // debug version in ImageNView.cpp
inline CImageNDoc* CImageNView::GetDocument()
   { return (CImageNDoc*)m_pDocument; }
#endif

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

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_ImageNVIEW_H__1B803495_4335_49E3_9465_BB0DC206C9D7__INCLUDED_)

⌨️ 快捷键说明

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