Click here to Skip to main content
15,885,546 members
Articles / Desktop Programming / MFC

Convolution of Bitmaps

Rate me:
Please Sign up or sign in to vote.
4.07/5 (27 votes)
29 Mar 20063 min read 213.2K   2.4K   44  
Article discussing how to convolve images, specificially the convolution of bitmaps.
#if !defined(AFX_CONVOLVEDLG_H__03FD4854_9CBA_409E_8451_A17AE9ABE2F4__INCLUDED_)
#define AFX_CONVOLVEDLG_H__03FD4854_9CBA_409E_8451_A17AE9ABE2F4__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ConvolveDlg.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CConvolveDlg dialog

class CConvolveDlg : public CDialog
{
// Construction
public:
	CConvolveDlg(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CConvolveDlg)
	enum { IDD = IDD_DLGCONVOLVE };
	CString	m_r1c1;
	CString	m_r1c2;
	CString	m_r1c3;
	CString	m_r2c1;
	CString	m_r2c2;
	CString	m_r2c3;
	CString	m_r3c1;
	CString	m_r3c2;
	CString	m_r3c3;
	int		m_bias;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CConvolveDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CConvolveDlg)
		// NOTE: the ClassWizard will add member functions here
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CONVOLVEDLG_H__03FD4854_9CBA_409E_8451_A17AE9ABE2F4__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United States United States
Programming using MFC and ATL for almost 12 years now. Currently studying Operating System implementation as well as Image processing. Previously worked on DSP and the use of FFT for audio application. Programmed using ADO, ODBC, ATL, COM, MFC for shell interfacing, databasing tasks, Internet items, and customization programs.

Comments and Discussions