본문 바로가기
반응형

분류 전체보기798

샤프닝..!! double mVal = 1.0 / 1024.0; double[,] mask = new double[32,32]; for (int i = 0; i < 32; i++) { mask[i,0] = mVal; for(int j=0; j < 32; j++) mask[i,j] = mVal; } int [,] ResultArray = convolve(grayArray, image.Width, image.Height, mask, 32,32,0); displayResultArray(ResultArray, image.Width, image.Height); 2007. 1. 23.
Dshow API -> MFC 포팅..! //------------------------------------------------------------------------------ // File: Auxiliary.cpp // // Desc: Useful auxiliaries for the Win32 Application. // // Copyright (c) 2000 - 2005, L544™ Technology. All rights reserved. //------------------------------------------------------------------------------ #include "stdafx.h" #ifdef _DEBUG #include /* void TRACE(LPCTSTR lpszFormat, ...) {.. 2007. 1. 23.
2005 Directshow 미디어 재생기 만들기.. // MediaPlayerView.cpp : CMediaPlayerView 클래스의 구현 // #include "stdafx.h" #include "MediaPlayer.h" #include "MediaPlayerDoc.h" #include "MediaPlayerView.h" #include const int TIMER_ID_TIMECHECK = 102; #ifdef _DEBUG #define new DEBUG_NEW #endif // CMediaPlayerView IMPLEMENT_DYNCREATE(CMediaPlayerView, CFormView) BEGIN_MESSAGE_MAP(CMediaPlayerView, CFormView) ON_BN_CLICKED(IDC_BTN_OPEN, &CMediaPlay.. 2007. 1. 23.
미디어 프로그램 변수 / 함수 정의 부분.. // MediaPlayerView.h : CMediaPlayerView 클래스의 인터페이스 // #pragma once #include "afxcmn.h" #include "afxwin.h" class CMediaPlayerView : public CFormView { public: IGraphBuilder * m_pGB ; // 필터 그래프 매니져 TCHAR m_szFileName[MAX_PATH] ; #ifdef REGISTER_FILTERGRAPH DWORD m_dwGraphRegister ; #endif protected: // serialization에서만 만들어집니다. CMediaPlayerView(); DECLARE_DYNCREATE(CMediaPlayerView) public: enum{ .. 2007. 1. 23.
반응형