📄 rxyconnectedcomponent2d.h
字号:
// RxyConnectedComponent2D.h: interface for the RxyConnectedComponent2D class.////////////////////////////////////////////////////////////////////////#if !defined(AFX_RXYCONNECTEDCOMPONENT2D_H__266C59DC_8F89_43A3_8341_6261EAB70CC6__INCLUDED_)#define AFX_RXYCONNECTEDCOMPONENT2D_H__266C59DC_8F89_43A3_8341_6261EAB70CC6__INCLUDED_#if _MSC_VER > 1000#pragma once#endif // _MSC_VER > 1000class RxProgressWnd;class RxyConnectedComponent2D {protected: static int MapFillingWithSortedLabel(unsigned short *pTable, unsigned short *pMap, int nImageSize); static int FindFinalLabel(unsigned short *pTable, unsigned short nNowLabel); static void SetLabelByState(unsigned short *pMap, int nWidth, int nHeight, int x, int y, int *nLabel, int nState, unsigned short *pTable); static int GetState(unsigned short *pMap, int nWidth, int nHeight, int x, int y); enum { COMP_NONE = 0, COMP_X = 10, COMP_Y = 20, COMP_NEW = 30, COMP_SAME = 40, COMP_DIFF_XY= 50, COMP_DIFF =100, };public: RxyConnectedComponent2D(); virtual ~RxyConnectedComponent2D(); static int GetConnectedComponent(unsigned char *pMap, int nWidth, int nHeight, int nLargeThreshold); static int RemoveDiaphragm(unsigned char *pMap, int nWidth, int nHeight, int nLargeThreshold, RxProgressWnd *pWndProgress); static void ControlProgress(RxProgressWnd *pProWnd);};#endif // !defined(AFX_RXYCONNECTEDCOMPONENT2D_H__266C59DC_8F89_43A3_8341_6261EAB70CC6__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -