Forums

Dividing an Image into 3x3 Matrix

Started by jawaad aslam September 28, 2008
Hello All,

Hope everyone is fine and going smoothly. I raised the same querry before but didnt get the desired reply from you. Actually I am working on Fingerprints Recognition. I tell you in detail please go through it carefully.

Lets suppose I have a fingerprint Image and after converting it into binary form I get the result as follows:

1 0 0 1 1 1 0 0 1 0 0 1 0 1 1........

0 0 1 0 1 1 0 1 0 1 0 1 1 1 1..........

0 0 1 1 0 0 1 1 1 1 0 1 0 0 1.......

1 0 0 1 0 1 0 1 0 1 0 1 0 0 0........
.
.
.
.
.
.


If I want to work on3x3 blocks respectivelyout of huge matrix. How could I do this?

Please please help me.


Thank you

Regards,

Jawad
Hi Jawaad,

Maybe you can just sample your image in 3x3 matrix ?
For example you have matrix:
A = 300 x 300 matrix
you can sample it by take:
a1 = A(1:3,1:3);
a2 = A(1:3,4:6);
and so on
you can automate it using iteration.

Hope it helps.

Regards,
-wisnu-
----- Original Message ----
From: jawaad aslam
To: Matlab - Yahoo Group
Sent: Saturday, September 27, 2008 9:05:25 AM
Subject: [matlab] Dividing an Image into 3x3 Matrix
Hello All,

Hope everyone is fine and going smoothly. I raised the same querry before but didnt get the desired reply from you. Actually I am working on Fingerprints Recognition. I tell you in detail please go through it carefully.

Lets suppose I have a fingerprint Image and after converting it into binary form I get the result as follows:

1 0 0 1 1 1 0 0 1 0 0 1 0 1 1........

0 0 1 0 1 1 0 1 0 1 0 1 1 1 1..........

0 0 1 1 0 0 1 1 1 1 0 1 0 0 1.......

1 0 0 1 0 1 0 1 0 1 0 1 0 0 0........
.
.
.
.
.
.

If I want to work on 3x3 blocks respectively out of huge matrix. How could I do this?

Please please help me.

Thank you

Regards,

Jawad
Hi Jawaad,
One of the fast ways of performing block operation in matlab is using
the following function

B = blkproc(A,[m n],fun)

u define ur function and then work on the whole image .. look on for help
for more information

Regards
Nirup Reddy

On Tue, Sep 30, 2008 at 2:45 AM, Wisnumurti Kristanto wrote:

> Hi Jawaad,
>
> Maybe you can just sample your image in 3x3 matrix ?
> For example you have matrix:
> A = 300 x 300 matrix
> you can sample it by take:
> a1 = A(1:3,1:3);
> a2 = A(1:3,4:6);
> and so on
> you can automate it using iteration.
>
> Hope it helps.
>
> Regards,
> -wisnu-
> ----- Original Message ----
> From: jawaad aslam >
> To: Matlab - Yahoo Group
> >
> Sent: Saturday, September 27, 2008 9:05:25 AM
> Subject: [matlab] Dividing an Image into 3x3 Matrix
>
> Hello All,
>
> Hope everyone is fine and going smoothly. I raised the same querry before
> but didnt get the desired reply from you. Actually I am working on
> Fingerprints Recognition. I tell you in detail please go through it
> carefully.
>
> Lets suppose I have a fingerprint Image and after converting it into binary
> form I get the result as follows:
>
> 1 0 0 1 1 1 0 0 1 0 0 1 0 1 1........
>
> 0 0 1 0 1 1 0 1 0 1 0 1 1 1 1..........
>
> 0 0 1 1 0 0 1 1 1 1 0 1 0 0 1.......
>
> 1 0 0 1 0 1 0 1 0 1 0 1 0 0 0........
> .
> .
> .
> .
> .
> .
> If I want to work on 3x3 blocks respectively out of huge matrix. How could
> I do this?
>
> Please please help me.
> Thank you
>
> Regards,
>
> Jawad
>
>
>
Hi Jawaad,
One of the fast ways of performing block operation in matlab is using
the following function

B = blkproc(A,[m n],fun)

u define ur function and then work on the whole image .. look on for help
for more information

Regards
Nirup Reddy
> On Tue, Sep 30, 2008 at 2:45 AM, Wisnumurti Kristanto wrote:
>
>> Hi Jawaad,
>>
>> Maybe you can just sample your image in 3x3 matrix ?
>> For example you have matrix:
>> A = 300 x 300 matrix
>> you can sample it by take:
>> a1 = A(1:3,1:3);
>> a2 = A(1:3,4:6);
>> and so on
>> you can automate it using iteration.
>>
>> Hope it helps.
>>
>> Regards,
>> -wisnu-
>> ----- Original Message ----
>> From: jawaad aslam >
>> To: Matlab - Yahoo Group
>> >
>> Sent: Saturday, September 27, 2008 9:05:25 AM
>> Subject: [matlab] Dividing an Image into 3x3 Matrix
>>
>> Hello All,
>>
>> Hope everyone is fine and going smoothly. I raised the same querry before
>> but didnt get the desired reply from you. Actually I am working on
>> Fingerprints Recognition. I tell you in detail please go through it
>> carefully.
>>
>> Lets suppose I have a fingerprint Image and after converting it into
>> binary form I get the result as follows:
>>
>> 1 0 0 1 1 1 0 0 1 0 0 1 0 1 1........
>>
>> 0 0 1 0 1 1 0 1 0 1 0 1 1 1 1..........
>>
>> 0 0 1 1 0 0 1 1 1 1 0 1 0 0 1.......
>>
>> 1 0 0 1 0 1 0 1 0 1 0 1 0 0 0........
>> .
>> .
>> .
>> .
>> .
>> .
>> If I want to work on 3x3 blocks respectively out of huge matrix. How could
>> I do this?
>>
>> Please please help me.
>> Thank you
>>
>> Regards,
>>
>> Jawad
>>
>>
>>