Click here to Skip to main content
12,395,871 members (65,587 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# Image-Processing
I want to perform a Fast Fourier Transform on a fingerprint image of M x N pixels on small blocks of 32 x 32 pixels.
So do i need to resize the image to M x M (or) N x N (or) in any square size ?

If not..please help me how to traverse these blocks separately.

x=0;
y=0;
for (j = 0; j < Math.Ceiling((double)img.Height / 32); j++)
{
    for (i = 0; i < Math.Ceiling((double)(img.Width/ 32)); i++)
    {
        //transformation in each block of 32 x 32 pix
        a = i;
        b = j;
        for (q = b; q < y + 32;q++)
        {
            for (p = a; p < x + 32; p++)
            {
                //transformation
            }
        }
        x = x + 32;
        y = y + 32;
    }
}

Please help, anyone.

regards.
Posted 27-Feb-13 6:08am
Updated 27-Feb-13 6:43am
v2
Comments
Sandeep Mewara 27-Feb-13 12:34pm
   
And what effort have you made so far?
deepaksharma0390 27-Feb-13 12:52pm
   
i just want to know whether i have to resize the image in the size 2^k x 2^l in order to perform FFT
Sergey Alexandrovich Kryukov 27-Feb-13 22:57pm
   
What code are you using for FFT?
—SA
Sergey Alexandrovich Kryukov 27-Feb-13 22:57pm
   
What code are you using for FFT?
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 27 Feb 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100