// bitmapDlg.h : header file // #include "pnmio.h" #include "klt.h" #include "morphing.h" //#include "videopro.h" #include "VideoPro.h" #if !defined(AFX_BITMAPDLG_H__9C9DC8BC_D882_11D2_94CD_C01555C10000__INCLUDED_) #define AFX_BITMAPDLG_H__9C9DC8BC_D882_11D2_94CD_C01555C10000__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 ///////////////////////////////////////////////////////////////////////////// // CBitmapDlg dialog class CBitmapDlg : public CDialog { // Construction public: CBitmapDlg(CWnd* pParent = NULL); // standard constructor CVideoPro *MyCam; CDC dcmem; CDC *mydc; CBitmap bitmap; CBitmap base_bitmap; CBitmap tracked_bitmap; int filenum; HBITMAP hbitmap; BOOL loaded; CString directory; int my_frame; TrackedFeatures base_features[1000]; TrackedFeatures tracked_features[1000]; unsigned char *img1, *img2,*img3, *img4, *img_morph, *img_unfinished; char fnamein[100], fnameout[100]; bool pause; bool reset; bool realtime; unsigned char *t1; KLT_TrackingContext tc; KLT_FeatureList fl; KLT_FeatureTable ft; int nFeatures, nFrames ; int ncols, nrows; int i; int offset_x; int offset_y; bool automate; bool start_automation; int auto_frames; int total_frames; int fl_x[300]; int fl_y[300]; // Dialog Data //{{AFX_DATA(CBitmapDlg) enum { IDD = IDD_BITMAP_DIALOG }; int m_max_features; int m_update_features; BOOL m_all; //}}AFX_DATA // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CBitmapDlg) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: HICON m_hIcon; // Generated message map functions //{{AFX_MSG(CBitmapDlg) virtual BOOL OnInitDialog(); afx_msg void OnSysCommand(UINT nID, LPARAM lParam); afx_msg void OnPaint(); afx_msg HCURSOR OnQueryDragIcon(); afx_msg void OnMouseMove(UINT nFlags, CPoint point); afx_msg void OnLButtonDown(UINT nFlags, CPoint point); afx_msg void OnRButtonDown(UINT nFlags, CPoint point); afx_msg void OnTimer(UINT nIDEvent); afx_msg void OnNextImage(); afx_msg void OnStartFeature(); afx_msg void cleanup(); afx_msg void OnReset(); afx_msg void OnClose(); afx_msg void OnSeqList(); afx_msg void OnSelchangeSeqlist(); afx_msg void Onstream1(); afx_msg void Onstream2(); afx_msg void Onstream3(); afx_msg void Onfeaturenumbers(); afx_msg void OnUpdateFeatures(); afx_msg void OnRadio1(); afx_msg void OnRadio2(); afx_msg void OnStop(); afx_msg void OnChangeUpdateFeatures(); afx_msg void Automate(); afx_msg void OnAutotracker(); afx_msg void find_tracked_features(); afx_msg void Onstream4(); afx_msg void Onstream5(); afx_msg void find_total_frames(); afx_msg void copy_base_image(); afx_msg void copy_base_image1(); afx_msg void copy_tracked_image(); afx_msg void OnPause(); afx_msg void OnCamera(); afx_msg void GrabImage(unsigned char tt[]); afx_msg void OnShoot(); afx_msg void OnExit(); afx_msg void OnGrabber(); afx_msg void OnClosecamera(); afx_msg void OnButton1(); afx_msg int minim_vector(int i,int j) ; afx_msg void put_blk(int i,int j,int mv0, int mv1, int flg); afx_msg void OnAll(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_BITMAPDLG_H__9C9DC8BC_D882_11D2_94CD_C01555C10000__INCLUDED_)