Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

image processing

Status
Not open for further replies.

rsksps

Newbie level 1
Joined
Nov 7, 2011
Messages
0
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,280
Activity points
1,280
can anyone help me in dividing images into blocks using matlab?
 

hi;
You can use smthng below;
ie you want to divide the image 4 sub block

| SubBlock1 | SubBlock2 |
------------------------------
| SubBlock3 | SubBlock4 |

[m,n]=size(img);
sub_block1=img(1:m/2,1:n/2);
sub_block2=img(1:m/2,n/2+1:n);
sub_block3=img(m/2+1:m,1:n/2);
sub_block4=img(m/2+1:m,n/2+1:n);
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top