📄 clusterkltransformationview.h
字号:
// ClusterKLTransformationView.h : interface of the CClusterKLTransformationView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_CLUSTERKLTRANSFORMATIONVIEW_H__30A094ED_4F39_4BA9_982B_EF5AE381DA9A__INCLUDED_)
#define AFX_CLUSTERKLTRANSFORMATIONVIEW_H__30A094ED_4F39_4BA9_982B_EF5AE381DA9A__INCLUDED_
#include "Matrix.h"//添加矩阵运算类
#include "ClusterKLTransformationDoc.h"
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CClusterKLTransformationView : public CScrollView
{
protected: // create from serialization only
CClusterKLTransformationView();
DECLARE_DYNCREATE(CClusterKLTransformationView)
// Attributes
public:
CMatrix tm;//存储图象所有象素的灰度值
CMatrix fea;//特征向量矩阵
double *feature;//特征值
CMatrix temp;//矩阵R
CSize sizeImage;//图象大小
CSize sizeSaveImage;//图象实际存储大小
HWND hwnd;
CString m_NewFileName[6];//用于判断度的图象是否已度入
CString NewFileName;//图象文件名,用于dib类度图象
CDib m_pDib;//dib对象
int a;//一副图象的象素数
int index[6];//将特征值排序后对应在特征值数组中的位置
void OnKl();//KL变换计算
void Draw();//图象输出
CMatrix xfea;//某一特征向量
CMatrix xfeat;//某一特征向量转置
CMatrix result;//输入图象
CClusterKLTransformationDoc* GetDocument();
double* AllPixel;
void Histogram();
CBitmap m_StoreBmp; //存储位图
CDC m_StoreDC; //存储DC
int m_nCoordStrLen; //坐标字符串长度
CPoint m_OldPt; //上次的鼠标位置
BOOL m_bStart; //鼠标是否开始移动
void CopyBitmap(CDC* pDC,CPoint copyPt);
void DrawCoord(CDC* pDC,CString& coordString,CPoint drawPt);
void DoRubberCoord(CDC* pDC,CPoint showPt);
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CClusterKLTransformationView)
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 ~CClusterKLTransformationView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CClusterKLTransformationView)
afx_msg void OnTmIn();
afx_msg void OnFirst();
afx_msg void OnSecond();
afx_msg void OnThird();
afx_msg void OnListshow();
afx_msg void OnHistogram();
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in ClusterKLTransformationView.cpp
inline CClusterKLTransformationDoc* CClusterKLTransformationView::GetDocument()
{ return (CClusterKLTransformationDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CLUSTERKLTRANSFORMATIONVIEW_H__30A094ED_4F39_4BA9_982B_EF5AE381DA9A__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -