文件名称:output_of_DCT_in_image_fusion
介绍说明--下载内容来自于网络,使用问题请自行百度
u can calculate DCT
clc
inp = imread( Im1.jpg )
inp1 = imread( Im2.jpg )
A = double(inp(:,:,1))
B = double(inp1(:,:,1))
A1=double(blkproc(A,[8 8], dct2 ))
B1=double(blkproc(B,[8 8], dct2 ))
[r,c] = size(A1)
r1 = []
for i=1:r
for j=1:c
if A1(i,j) > B1(i,j)
r1(i,j)=A1(i,j)
else
r1(i,j)=B1(i,j)
end
end
end
r1= double(r1(:,:,1))
C=blkproc(r1,[8 8], idct2 )
round(C)
C1=idct2(r1)
figure
imshow(uint8(C))
figure
imshow(uint8(C1))
imwrite(uint8(C), dct8x8min.jpg ) -u can calculate DCT
clc
inp = imread( Im1.jpg )
inp1 = imread( Im2.jpg )
A = double(inp(:,:,1))
B = double(inp1(:,:,1))
A1=double(blkproc(A,[8 8], dct2 ))
B1=double(blkproc(B,[8 8], dct2 ))
[r,c] = size(A1)
r1 = []
for i=1:r
for j=1:c
if A1(i,j) > B1(i,j)
r1(i,j)=A1(i,j)
else
r1(i,j)=B1(i,j)
end
end
end
r1= double(r1(:,:,1))
C=blkproc(r1,[8 8], idct2 )
round(C)
C1=idct2(r1)
figure
imshow(uint8(C))
figure
imshow(uint8(C1))
imwrite(uint8(C), dct8x8min.jpg )
clc
inp = imread( Im1.jpg )
inp1 = imread( Im2.jpg )
A = double(inp(:,:,1))
B = double(inp1(:,:,1))
A1=double(blkproc(A,[8 8], dct2 ))
B1=double(blkproc(B,[8 8], dct2 ))
[r,c] = size(A1)
r1 = []
for i=1:r
for j=1:c
if A1(i,j) > B1(i,j)
r1(i,j)=A1(i,j)
else
r1(i,j)=B1(i,j)
end
end
end
r1= double(r1(:,:,1))
C=blkproc(r1,[8 8], idct2 )
round(C)
C1=idct2(r1)
figure
imshow(uint8(C))
figure
imshow(uint8(C1))
imwrite(uint8(C), dct8x8min.jpg ) -u can calculate DCT
clc
inp = imread( Im1.jpg )
inp1 = imread( Im2.jpg )
A = double(inp(:,:,1))
B = double(inp1(:,:,1))
A1=double(blkproc(A,[8 8], dct2 ))
B1=double(blkproc(B,[8 8], dct2 ))
[r,c] = size(A1)
r1 = []
for i=1:r
for j=1:c
if A1(i,j) > B1(i,j)
r1(i,j)=A1(i,j)
else
r1(i,j)=B1(i,j)
end
end
end
r1= double(r1(:,:,1))
C=blkproc(r1,[8 8], idct2 )
round(C)
C1=idct2(r1)
figure
imshow(uint8(C))
figure
imshow(uint8(C1))
imwrite(uint8(C), dct8x8min.jpg )
相关搜索: blkproc
(系统自动生成,下载前可以参看下载内容)
下载文件列表
dct8x8min.jpg
im.m
Im1.JPG
Im2.jpg
im.m
Im1.JPG
Im2.jpg
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.