Click here to Skip to main content
12,755,652 members (37,164 online)
Click here to Skip to main content


42 bookmarked
Posted 26 Mar 2004

Convolution of Bitmaps

, 29 Mar 2006
Article discussing how to convolve images, specificially the convolution of bitmaps.
// ConvolveDlg.cpp : implementation file

#include "stdafx.h"
#include "ImageConvolution.h"
#include "ConvolveDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;

// CConvolveDlg dialog

CConvolveDlg::CConvolveDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CConvolveDlg::IDD, pParent)
	m_r1c1 = "0.0f";
	m_r1c2 = "0.0f";
	m_r1c3 = "0.0f";
	m_r2c1 = "0.0f";
	m_r2c2 = "0.0f";
	m_r2c3 = "0.0f";
	m_r3c1 = "0.0f";
	m_r3c2 = "0.0f";
	m_r3c3 = "0.0f";
	m_bias = 0;

void CConvolveDlg::DoDataExchange(CDataExchange* pDX)
	DDX_Text(pDX, IDC_ROW1COL1, m_r1c1);
	DDX_Text(pDX, IDC_ROW1COL2, m_r1c2);
	DDX_Text(pDX, IDC_ROW1COL3, m_r1c3);
	DDX_Text(pDX, IDC_ROW2COL1, m_r2c1);
	DDX_Text(pDX, IDC_ROW2COL2, m_r2c2);
	DDX_Text(pDX, IDC_ROW2COL3, m_r2c3);
	DDX_Text(pDX, IDC_ROW3COL1, m_r3c1);
	DDX_Text(pDX, IDC_ROW3COL2, m_r3c2);
	DDX_Text(pDX, IDC_ROW3COL3, m_r3c3);
	DDX_Text(pDX, IDC_BIAS, m_bias);

BEGIN_MESSAGE_MAP(CConvolveDlg, CDialog)
		// NOTE: the ClassWizard will add message map macros here

// CConvolveDlg message handlers

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.


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


About the Author

Fred Ackers
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.

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170217.1 | Last Updated 29 Mar 2006
Article Copyright 2004 by Fred Ackers
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid