rxyconnectedcomponent2d.h
来自「3D reconstruction, medical image process」· C头文件 代码 · 共 42 行
H
42 行
// 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 + =
减小字号Ctrl + -
显示快捷键?