Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.

C#
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
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900