文件名称:Blocks
介绍说明--下载内容均来自于网络,请自行研究使用
clc
close all
clear all
I=imread( desert.jpg )
[r c]=size(I)
bs=16 Block Size (8x8)
nob=(r/bs)*(c/bs) Total number of 8x8 Blocks
Dividing the image into 8x8 Blocks
kk=0
for i=1:(r/bs)
for j=1:(c/bs)
Block(:,:,kk+j)=I((bs*(i-1)+1:bs*(i-1)+bs),(bs*(j-1)+1:bs*(j-1)+bs))
end
kk=kk+(r/bs)
end
Accessing individual Blocks
figure imshow(Block(:,9,1)) This shows u the fist 8x8 Block in a figure window
figure imshow(Block(:,:,2-clc
close all
clear all
I=imread( desert.jpg )
[r c]=size(I)
bs=16 Block Size (8x8)
nob=(r/bs)*(c/bs) Total number of 8x8 Blocks
Dividing the image into 8x8 Blocks
kk=0
for i=1:(r/bs)
for j=1:(c/bs)
Block(:,:,kk+j)=I((bs*(i-1)+1:bs*(i-1)+bs),(bs*(j-1)+1:bs*(j-1)+bs))
end
kk=kk+(r/bs)
end
Accessing individual Blocks
figure imshow(Block(:,9,1)) This shows u the fist 8x8 Block in a figure window
figure imshow(Block(:,:,2))
close all
clear all
I=imread( desert.jpg )
[r c]=size(I)
bs=16 Block Size (8x8)
nob=(r/bs)*(c/bs) Total number of 8x8 Blocks
Dividing the image into 8x8 Blocks
kk=0
for i=1:(r/bs)
for j=1:(c/bs)
Block(:,:,kk+j)=I((bs*(i-1)+1:bs*(i-1)+bs),(bs*(j-1)+1:bs*(j-1)+bs))
end
kk=kk+(r/bs)
end
Accessing individual Blocks
figure imshow(Block(:,9,1)) This shows u the fist 8x8 Block in a figure window
figure imshow(Block(:,:,2-clc
close all
clear all
I=imread( desert.jpg )
[r c]=size(I)
bs=16 Block Size (8x8)
nob=(r/bs)*(c/bs) Total number of 8x8 Blocks
Dividing the image into 8x8 Blocks
kk=0
for i=1:(r/bs)
for j=1:(c/bs)
Block(:,:,kk+j)=I((bs*(i-1)+1:bs*(i-1)+bs),(bs*(j-1)+1:bs*(j-1)+bs))
end
kk=kk+(r/bs)
end
Accessing individual Blocks
figure imshow(Block(:,9,1)) This shows u the fist 8x8 Block in a figure window
figure imshow(Block(:,:,2))
(系统自动生成,下载前可以参看下载内容)
下载文件列表
blocks.m
license.txt
recom_blocks.m