Location:
Search - blkproc
Search list
Description: 使用二维离散余弦变换(DCT)进行图象压缩。原始图象被转换成为8*8大小的块进行压缩和重构。 Cnum:为压缩时保留的系数的个数 MSM:均方误差压缩应该做到在最合理的近似原图象的情况下使用最少的系数。函数:dctmtx:返回一个n*n阶DCT变换 blkproc:对图象进行不同的块处理。 im2col:重排图象块为矩阵列。注意:只适用于灰度图象。
Platform: |
Size: 2962 |
Author: hff |
Hits:
Description: 使用二维离散余弦变换(DCT)进行图象压缩。原始图象被转换成为8*8大小的块进行压缩和重构。 Cnum:为压缩时保留的系数的个数 MSM:均方误差压缩应该做到在最合理的近似原图象的情况下使用最少的系数。函数:dctmtx:返回一个n*n阶DCT变换 blkproc:对图象进行不同的块处理。 im2col:重排图象块为矩阵列。注意:只适用于灰度图象。-The use of two-dimensional discrete cosine transform (DCT) for image compression. Original image is converted to become the size of 8* 8 block compression and reconstruction. Cnum: reservations for the compression factor of the number of MSM: mean square error compression should be done in the most reasonable approximation of the original image using the least coefficient. Function: dctmtx: returns an n* n-order DCT transform blkproc: image processing of different blocks. im2col: rearrangement of the matrix block out images. Note: only applicable to grayscale images.
Platform: |
Size: 3072 |
Author: hff |
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: blkproc.m,DCHuffmanEncoding.m,ACHuffmanEncoding.m,zigzag.m,PSNR.m,
对灰度图像进行DCT变换,量化,ZigZag扫描,Huffman编解码,反量化,反DCT变换而重建图像。
其中,blkproc.m为分块DCT变换函数;
DCHuffmanEncoding.m,ACHuffmanEncoding.m分别为DC和AC变换系数的Huffman码表函数;
zigzag.m为ZigZag扫描函数;PSNR.m为求图像峰值信噪比函数。
Copyright 2008 Reserved @ Wang Chengyou @ Tianjin University, P.R.China. -This function tests the DCTJPEG codec
Platform: |
Size: 3072 |
Author: 吴魏 |
Hits:
Description: 这是用omp算法来重构图像,这是把它分割为16X16的块进行处理,这其中是把每一个分割的图片先保存,之后再处理没有用blkproc函数。-This algorithm is used to reconstruct an image omp, which is divided into blocks 16X16 it is processed, each of which is divided to first save the image, after the re-treatment with blkproc not function.
Platform: |
Size: 1024 |
Author: 牛原野 |
Hits: