Location:
Search - C IDCT2
Search list
Description: CT2 IDCT2 变换C代码。经调试成功,适用于altera,有结果。-CT2 IDCT2 transform C code. After successful testing for altera, bear fruit.
Platform: |
Size: 1171456 |
Author: 金夕 |
Hits:
Description: 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 )
Platform: |
Size: 29696 |
Author: parthiban |
Hits:
Description: 对frame1进行一个简化的帧内编码方案: A)将图像分为8x8的块. B)将图像每一块做DCT2变换. C)将DCT系数采用11.ppt page 35的亮度量化表量化. 量化系数 = 取整 (DCT系数./量化表). D) 统计整个图像中非零量化系统的比重, 该比重可反映什么? E) 将量化系数进行 IDCT2, 绘制出重建图像.-a example for matlab to deal with a picture
Platform: |
Size: 1024 |
Author: 姚晓栋 |
Hits: