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

📄 rsipview.h

📁 基于小波的SAR斑点处理
💻 H
字号:
// RSIPView.h : interface of the CRSIPView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_RSIPVIEW_H__EB17B870_5C6C_11D3_8B6A_0000E83F643B__INCLUDED_)
#define AFX_RSIPVIEW_H__EB17B870_5C6C_11D3_8B6A_0000E83F643B__INCLUDED_

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

#define MOUSE_NOTHING	0			//鼠标无动作
#define VIEW_ZOOMIN		1			//放大图象
#define VIEW_ZOOMOUT	2			//缩小图象
#define VIEW_PAN		3			//漫游图象
#define	CLASS_EXAMPLEAREA	4		//选取训练区
#define	PRE_PICKGCPS		5		//选取地面控制点
#define PRE_CUTIMAGE		6		//拉框切割图象
#define PI	3.1415926535

#include "RSIPDoc.h"
#include "ClassifyInfoDlg.h"
#include "PickGCPDlg.h"
//#include "ClassifyInfoFile.h"

static class CRSIPView : public CScrollView
{
protected: // create from serialization only
	CRSIPView();
	DECLARE_DYNCREATE(CRSIPView)

	int m_nMouseAction;				//鼠标动作类型
	CClassInfoDlg1 * m_pClassInfoDlg;
	CPickGCPDlg * m_pPickGCPDlg;
	CPtrArray		m_aPointArray;		//训练区内的点
	BOOL			m_bTrace;

	POINT	m_nStartPoint;
	POINT	m_nEndPoint;

// Attributes
public:
	CRSIPDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CRSIPView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void OnInitialUpdate();
	virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView);
	//}}AFX_VIRTUAL

// Implementation
public:
	float CRSIPView::ImageThreshold(float* pFromData, int nCurWidth, int nCurHeight,
		int nWidth, int nHeight,  int nScale, float& theta, float coff);
	BOOL HardThreshold(float* pFromData, float* pToData, int nCurWidth, int nCurHeight,
		int nWidth, int nHeight,  int nScale, float& mad, float&  coff);
	BOOL SoftGetNoise(float* pFromData, float* pToData, int nCurWidth, int nCurHeight,
		int nWidth, int nHeight,  int nScale, float& mad, float& coff);
	void ReverseWavelet( float* pTemp, BYTE* pImage, 
		int nWidth, int nHeight, int nScale, int wtBasis);
	float GetModeDeviation(BYTE* pData, int nWidth, int nHeight, int nMode);
	BOOL GetMedian(BYTE *pFromData, BYTE *pToData, int nWidth, int nHeight);
//	BOOL WaveletSNDivide(float* pFromData, float* pToData, int x, int y, int nWidth, int  nHeight,int nScale);
	BOOL SoftThreshold(float* pFromData, float* pToData, int nCurWidth, int nCurHeight,
		int nWidth, int nHeight,  int nScale, float& mad,float&  coff);
	float TextureThreshold(float* pFromData, int nCurWidth, int nCurHeight,
		int nWidth, int nHeight,  int nScale, float& theta, float& coff);
	float BinaryThreshold(float* pFromData, int nCurWidth, int nCurHeight,
		int nWidth, int nHeight,  int nScale, float& theta);
	void DetectTexture55();
	BOOL OpenRSImage(LPCTSTR lpszPathName,CRSImage *pRSImage);
	void WaveTexturePickup();
	virtual ~CRSIPView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

	void OnDrawPracticeRegion();

// Generated message map functions
protected:
	//{{AFX_MSG(CRSIPView)
	afx_msg void OnImageCircle();
	afx_msg void OnImageClassifyinfo();
	afx_msg void OnImageCombine();
	afx_msg void OnImageHistogram();
	afx_msg void OnImageInfomation();
	afx_msg void OnImageResample();
	afx_msg void OnImageHflip();
	afx_msg void OnImageVflip();
	afx_msg void OnImageIhsdecompose();
	afx_msg void OnImageRgbdecompose();
	afx_msg void OnImageCalculate();
	afx_msg void OnImagePowerinfo();
	afx_msg void OnImageRevert();
	afx_msg void OnImageEquualize();
	afx_msg void OnImageThreshold();
	afx_msg void OnImagePosterize();
	afx_msg void OnFilterFilter();
	afx_msg void OnFilterPower();
	afx_msg void OnFilterEdege();
	afx_msg void OnFilterSharpen();
	afx_msg void OnFilterAuto();
	afx_msg void OnClassCharacter();
	afx_msg void OnClassFisherrule();
	afx_msg void OnClassIsodistance();
	afx_msg void OnClassMaxlikeness();
	afx_msg void OnClassMinidistance();
	afx_msg void OnClassPracticeregion();
	afx_msg void OnClassEndPracticeRegion();
	afx_msg void OnClassSelforganize();
	afx_msg void OnClassStepcluster();
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnViewPan();
	afx_msg void OnViewWholeimage();
	afx_msg void OnViewZoomin();
	afx_msg void OnViewZoomout();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnViewFitwindow();
	afx_msg void OnPreHistotrans();
	afx_msg void OnPreKairwentrans();
	afx_msg void OnPrePickgcp();
	afx_msg void OnEndPickgcp();
	afx_msg void OnPreGeocorrect();
	afx_msg void OnPreRadiation();
	afx_msg void OnSplitMouse();
	afx_msg void OnDrawGcp();
	afx_msg void OnRefresh();
	afx_msg void OnNormal();
	afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
	afx_msg void OnUpdateNormal(CCmdUI* pCmdUI);
	afx_msg void OnUpdateViewZoomin(CCmdUI* pCmdUI);
	afx_msg void OnUpdateViewZoomout(CCmdUI* pCmdUI);
	afx_msg void OnUpdateViewPan(CCmdUI* pCmdUI);
	afx_msg void OnUpdateSplitMouse(CCmdUI* pCmdUI);
	afx_msg void OnUpdatePrePickgcp(CCmdUI* pCmdUI);
	afx_msg void OnUpdateClassPracticeregion(CCmdUI* pCmdUI);
	afx_msg void OnPreRegister();
	afx_msg void OnPreKeycutimg();
	afx_msg void OnWaveletTransform();
	afx_msg void OnReverseWavelet();
	afx_msg void OnCustomizeHistogram();
	afx_msg void OnStatisRelation();
	afx_msg void OnPreLocalcopy();
	afx_msg void OnTransLocalpaste();
	afx_msg void OnStatisEntropy();
	afx_msg void OnStatisDistort();
	afx_msg void OnStatisAveragegrad();
	afx_msg void OnStatisEnergy();
	afx_msg void OnStatisCorrel();
	afx_msg void OnTransLinghtContrast();
	afx_msg void OnTransEvcustom();
	afx_msg void OnTransWeight();
	afx_msg void OnPreEdgedetct();
	afx_msg void OnTransCoefselect();
	afx_msg void OnTransAddcoeff();
	afx_msg void OnPreInvkltransform();
	afx_msg void OnStatisFilter();
	afx_msg void OnPreMadtransform();
	afx_msg void OnTransRemoveLayer();
	afx_msg void OnTransRetainLayer();
	afx_msg void OnTransEditWaveLayer();
	afx_msg void OnSelectTexture();
	afx_msg void OnFilterFuse();
	afx_msg void OnSelectTextureFive();
	afx_msg void OnWaveletSoftTheshold();
	afx_msg void OnWaveletSNDivide();
	afx_msg void OnWaveletNoiseThreshold();
	afx_msg void OnTest();
	afx_msg void OnReadText();
	afx_msg void OnWriteText();
	afx_msg void OnSelectTextureDiv();
	afx_msg void OnSelectTextureRegion();
	afx_msg void OnGetNoise();
	afx_msg void OnGetNoiseTexture();
	afx_msg void OnSelectTextureSoft();
	afx_msg void OnSelectTextureSoft2();
	afx_msg void OnSelectTextureCustom();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in RSIPView.cpp
inline CRSIPDoc* CRSIPView::GetDocument()
   { return (CRSIPDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_RSIPVIEW_H__EB17B870_5C6C_11D3_8B6A_0000E83F643B__INCLUDED_)

⌨️ 快捷键说明

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