how to create 8*8 subblock from a image without using matlab command

how to create 8*8 subblock from a image without using matlab command

댓글 수: 2

Use MATLAB functions instead ?
Are you aware that even array indexing uses built-in MATLAB functions?
it is ok. but i don't want to use mat2cell type function.i want logic for dividing image into subimage of 8*8.

댓글을 달려면 로그인하십시오.

답변 (1개)

Hint:
rowblks = size(YourImage, 1) / 8;
for K = 1 : rowblocks
YourImage( 8 * K - 7 : 8 * K, ....... )

댓글 수: 4

if i have 400*400 image and i want to read 6th number 8*8 block. how can i do it.
What is "6th number 8*8 block" ? When you are dividing into 8x8 blocks, you will have those blocks going across and those blocks going down, so which one of them is the "6th" ?
400*400=50*50 sub block of 8*8 ;i want every block to read for some doing some mathematical operation on it. suppose i want 6th block of 1st row.
BR = 1; BC = 6;
YourImage(8 * RB - 7 : 8 * BR, 8 * BC - 7 : 8 * BC, :)

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

태그

질문:

2012년 11월 22일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by