Click here to Skip to main content
Click here to Skip to main content
 
Add your own
alternative version

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__;
#endif

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


CConvolveDlg::CConvolveDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CConvolveDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CConvolveDlg)
	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;
	//}}AFX_DATA_INIT
}


void CConvolveDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CConvolveDlg)
	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);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// 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.

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

Share

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.

| Advertise | Privacy | Mobile
Web01 | 2.8.141022.2 | Last Updated 29 Mar 2006
Article Copyright 2004 by Fred Ackers
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid