Click here to Skip to main content
15,920,956 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Enter and Esc Pin
David Crow15-Jun-05 5:41
David Crow15-Jun-05 5:41 
GeneralRe: Enter and Esc Pin
myth767615-Jun-05 7:23
myth767615-Jun-05 7:23 
GeneralRe: Enter and Esc Pin
Alexander M.,15-Jun-05 7:39
Alexander M.,15-Jun-05 7:39 
GeneralRe: Enter and Esc Pin
GKarRacer15-Jun-05 13:37
GKarRacer15-Jun-05 13:37 
GeneralRe: Enter and Esc Pin
Alexander M.,16-Jun-05 7:01
Alexander M.,16-Jun-05 7:01 
GeneralSharing memory with MapViewOfFile Pin
metal_rob15-Jun-05 5:09
metal_rob15-Jun-05 5:09 
GeneralRe: Sharing memory with MapViewOfFile Pin
Blake Miller15-Jun-05 8:02
Blake Miller15-Jun-05 8:02 
GeneralDFT of image data using FFT Pin
Aqiruse15-Jun-05 4:52
sussAqiruse15-Jun-05 4:52 
How do I do a DFT of an image using a FFT to speed things up? My code does not work but is :
int X, Y, num;
	long int R;
	float data[4096], scale;
	RGBQUAD rgb;
	num = max(pImage->GetWidth(),pImage->GetHeight());
	const DWORD RGB_MAX=RGB(255,255,255);
	if (!IsPowerOfTwo(num))
	{
		return;
	}
	if (dir == 1)
	{
		scale = num*num;
	}
	else scale = 1.0;
	for (Y=0; Y<num; Y++)
	{
		for (X=0;X<=2*num-1;X+=2)
		{
			data[X] = data[X+1] = pImage->GetPixelGray(X/2,Y);
		}
		if (!fft(data,num,dir))
			return;
		for (X=0;X<num;X++)
		{
			pImage->SetPixelColor(X,Y,RGB(abs(data[X*2]),abs(data[X*2]),abs(data[X*2])));
		}
	}
	for (X=0;X<=2*num-1;X+=2)
	{
		for (Y=0; Y<num; Y++)
		{
			R=Y*2;
			data[R] = data[R+1] = pImage->GetPixelGray(X/2,Y);
		}
		if (!fft(data,num,dir))
			return;
		for (Y=0;Y<num;Y++)
		{
			R=Y*2;
			pImage->SetPixelColor(X/2,Y,RGB(abs(data[R]),abs(data[R]),abs(data[R])));
		}
	}


Nothing is impossible, It's merely a matter of finding an answer to the question of HOW? ... And answering that question is usually the most difficult part of the job!!!
GeneralEnhanced Metafiles Pin
bkphat15-Jun-05 4:08
bkphat15-Jun-05 4:08 
GeneralRe: Icon On Tabctrl Pin
Alexander M.,15-Jun-05 5:36
Alexander M.,15-Jun-05 5:36 
GeneralRe: Icon On Tabctrl Pin
LiYS15-Jun-05 15:24
LiYS15-Jun-05 15:24 
GeneralClosing an application. Pin
mcgahanfl15-Jun-05 3:31
mcgahanfl15-Jun-05 3:31 
GeneralRe: Closing an application. Pin
Bob Stanneveld15-Jun-05 3:48
Bob Stanneveld15-Jun-05 3:48 
GeneralRe: Closing an application. Pin
mcgahanfl16-Jun-05 3:24
mcgahanfl16-Jun-05 3:24 
GeneralRe: Closing an application. Pin
David Crow15-Jun-05 4:50
David Crow15-Jun-05 4:50 
GeneralRe: Closing an application. Pin
GKarRacer15-Jun-05 13:44
GKarRacer15-Jun-05 13:44 
GeneralRe: Closing an application. Pin
mcgahanfl16-Jun-05 3:25
mcgahanfl16-Jun-05 3:25 
GeneralRe: Closing an application. Pin
Toby Opferman15-Jun-05 14:24
Toby Opferman15-Jun-05 14:24 
GeneralRe: Closing an application. Pin
mcgahanfl16-Jun-05 3:26
mcgahanfl16-Jun-05 3:26 
GeneralBuilding question Pin
Lampros Giampouras15-Jun-05 2:49
Lampros Giampouras15-Jun-05 2:49 
GeneralRe: Building question Pin
Cedric Moonen15-Jun-05 3:24
Cedric Moonen15-Jun-05 3:24 
GeneralRe: Building question Pin
normanS15-Jun-05 3:53
normanS15-Jun-05 3:53 
GeneralRe: Building question Pin
Lampros Giampouras15-Jun-05 14:09
Lampros Giampouras15-Jun-05 14:09 
GeneralRe: Building question Pin
squidev15-Jun-05 15:46
squidev15-Jun-05 15:46 
GeneralRe: Building question Pin
Lampros Giampouras16-Jun-05 9:11
Lampros Giampouras16-Jun-05 9:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.