Location:
Search - disp bmp
Search list
Description: c语言写的bmp图像读取显示例程,有助于具体了解bmp文件格式,灵活操作-wrote bmp images show routines to read, help to understand the specific bmp file format, flexible operation
Platform: |
Size: 1937 |
Author: 余飞 |
Hits:
Description: c语言写的bmp图像读取显示例程,有助于具体了解bmp文件格式,灵活操作-wrote bmp images show routines to read, help to understand the specific bmp file format, flexible operation
Platform: |
Size: 2048 |
Author: 余飞 |
Hits:
Description: clc
img = imread( lena.bmp )
JPEG compression
jpegcompression(img, lena_compressed.mat )
JPEG decompression
Irec = jpegrestoration( lena_compressed.mat )
System performances
[CR,BPP,PSNR,MSE,SNR] = systemperformances(img,Irec, lena_compressed.mat )
Plotting
figure,subplot(1,2,1),imshow(img),title( Original image ),...
subplot(1,2,2),imshow(Irec),title( Compressed image )
disp( Compression ratio: )
disp(CR)
disp( Bits per pixel: )
disp(BPP)
disp( Peak signal to noise ratio: )
disp(PSNR)
disp( Mean squared error: )
disp(MSE)
disp( Signal to noise ratio )
disp(SNR) -clc
img = imread( lena.bmp )
JPEG compression
jpegcompression(img, lena_compressed.mat )
JPEG decompression
Irec = jpegrestoration( lena_compressed.mat )
System performances
[CR,BPP,PSNR,MSE,SNR] = systemperformances(img,Irec, lena_compressed.mat )
Plotting
figure,subplot(1,2,1),imshow(img),title( Original image ),...
subplot(1,2,2),imshow(Irec),title( Compressed image )
disp( Compression ratio: )
disp(CR)
disp( Bits per pixel: )
disp(BPP)
disp( Peak signal to noise ratio: )
disp(PSNR)
disp( Mean squared error: )
disp(MSE)
disp( Signal to noise ratio )
disp(SNR)
Platform: |
Size: 189440 |
Author: neethumennie |
Hits: