3.0

3.0 | 3 ratings Rate this file 28 Downloads (last 30 days) File Size: 1.17 KB File ID: #13584

Compression Ratio

by Madhu S. Nair

 

09 Jan 2007 (Updated 12 Jan 2007)

Get the compression ratio

| Watch this File

File Information
Description

a)Read an image
 b)Copy the image to another file
 c)Get the image information
 d)Find the compression ratio for the copied image

Required Products Image Processing Toolbox
MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
01 Apr 2007 Dimitri Shvorob

If you post this one-liner, why not make it a function?

Full contents:

% % Program No:1
% Matlab functions for the following
% a)Read an image
% b)Copy the image to another file
% c)Get the image information
% d)Find the compression ratio for the copied image

f=imread('crystal.jpg');
imwrite(f,'crystal1.jpg');
k=imfinfo('crystal.jpg');
ib=k.Width*k.Height*k.BitDepth/8;
cb=k.FileSize;
cr=ib/cb

04 Feb 2008 pri ya  
01 Apr 2009 pra v

how to Watching this File of compressiion ratio

21 May 2009 dcn e&c

program to read an image in horizantal and zig zag faction

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
compression Madhu S. Nair 22 Oct 2008 08:55:42
image compression ratio Madhu S. Nair 22 Oct 2008 08:55:42
image Madhu S. Nair 22 Oct 2008 08:55:42
image processing Madhu S. Nair 22 Oct 2008 08:55:42
ratio Madhu S. Nair 22 Oct 2008 08:55:42
image compression ratio Thurein Oo 24 Jan 2009 03:44:54
image rajesh yadav 20 Sep 2010 04:20:54

Contact us at files@mathworks.com