MoveTrace.h
资源名称:VideoMove.rar [点击查看]
上传用户:czshopping
上传日期:2022-05-22
资源大小:5430k
文件大小:2k
源码类别:
视频捕捉/采集
开发平台:
Visual C++
- // MoveTrace.h: interface for the CMoveTrace class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_MOVETRACE_H__F43CEF57_027C_44D1_B6A8_A0F9C097DFFA__INCLUDED_)
- #define AFX_MOVETRACE_H__F43CEF57_027C_44D1_B6A8_A0F9C097DFFA__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class CMoveTrace : public CObject
- {
- public:
- int GetThreshold(const int nMinThreshold=70);
- void JudgeAnalysis(int off);
- bool Extract(int nX,int nY);
- int m_Count;
- CMoveTrace();
- virtual ~CMoveTrace();
- int Sobel();
- // int Mean();
- void Dither(int nThreshold);
- void Mosaic(int nMosaicWidth,const int nMosaicHeight);
- bool Rectangle(CRect &rect,const int nMaxWidth, const int nMinChange);
- bool Rectangle2(CRect &rect,const int nMaxWidth, const int nMinChange);
- bool Grey();
- void SaveFrame();
- BOOL FrameMinus();
- bool GetDIBBit(unsigned char * pImageData);
- void Uninitialize();
- bool Initialize(const int nImageWidth, const int nImageHeight,
- const int nWidthCount, const int nHeightCount,
- const int nBitsCount=24);
- PBYTE m_pMosaic;
- PBYTE m_pGrey,m_pGrey1 ,m_pGrey2, m_pGrey0;
- CRect m_CurrentRect, m_NextRect;
- private:
- void Forecast(CRect rect);
- int m_nDivisionHeight;
- int m_nDivisionWidth;
- int m_nHeightCount;
- int m_nWidthCount;
- int m_nMosaicWidth;//马赛克宽度
- int m_nMosaicHeight;//马赛克高度
- int m_nExtractWidth;//抽取后宽度
- int m_nExtractHeight;//抽取后高度
- int m_nX,m_nY;
- CRect m_rect;
- CRect **m_prect;
- unsigned char *m_pImageData;
- int m_nImageWidth;
- int m_nImageHeight;
- };
- #endif // !defined(AFX_MOVETRACE_H__F43CEF57_027C_44D1_B6A8_A0F9C097DFFA__INCLUDED_)