No License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Lossy Image Compression

4.2 | 29 ratings Rate this file 28 Downloads (last 30 days) File Size: 2.86 KB File ID: #4718 Version: 1.0

Lossy Image Compression



06 Apr 2004 (Updated )

This function takes in a image and compresses it using block truncation coding.

| Watch this File

File Information

This function accepts an image(color or gray) and compresses it using the block truncation coding. Please read the Help section for shortcommings of this implementation.


This file inspired Image Compression.

Required Products Image Processing Toolbox
MATLAB release MATLAB 6.1 (R12.1)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (44)
20 Dec 2016 suganya s d

hello everyone, if u have any code related to image compression using Haar wavelet.send it to mail it will be helpful for my mtech project.

Comment only
08 Dec 2016 mohammed Mujahid

i need help i have project about Image Compression or video data Compression in math-lab but i have no idea about mathlab

who can help me please contact with me

Comment only
21 Nov 2016 sara sajedi

I got the following error from matlab:

Index exceeds matrix dimensions.

Error in btc_image (line 89)

Is the code correct? I took it from

Comment only
22 Nov 2011 Mohit Khandelwal

plsss i need matlab code for image compression using adaptive quantization coding and intensity based adaptive quantization coding......any body having it mail to it very urgently...

Comment only
17 Sep 2010 paramveer sran

could you plz mail me the documentation of this to my email(,it's a great help for me to understand the code.i need this for my project Looking forward for your help.

01 Jun 2010 li ??

li ?? (view profile)

can you mail the document to my email(,it's a great help for me to unstand the a algorithm.Looking forward for your help.

Comment only
12 Mar 2010 Nageswararao

may i know how to run this program
please give one example

Comment only
15 Oct 2009 daniel i

14 Sep 2009 yash janiani

if u have code in matlab for image compression by using walsh-hadamard transform then please mail the code on my email ( Looking forward for your help.
Thank you.

Comment only
27 Jan 2009 Thurein Oo

thank all

Comment only
11 Jan 2009 Paul

Paul (view profile)

26 Jun 2008 fakeeha jafari

thanks for this work...please if you have a code in matlab to compressing the any image in DWT(8x8 block),please send me and thanks again

Comment only
21 May 2008 thair abed

im engineer

17 Apr 2008 subathra suba

11 Apr 2008 Adilson Gonçalves

tks for this work...please if you have a code in matlab to compressing the any image in DCT(8x8 block),please send me and tanks again

27 Mar 2008 shiven pandya

plz give me all combination code of this project vbecause it was my final year project.thank u very much.

18 Mar 2008 tina n

Please help me! If you have complete code for image compression with matlab, please kindly mail to me coz it is my subject project. Thank you very much!(

23 Feb 2008 BIANCA BABY

if u have a code in matlab for compression of grayscale images plz mail to this id....plz

21 Feb 2008 udita agrawal

if u have complete code in matlab for compression of colored images then please mail the code on my email ( Looking forward for your help. Thank you.

15 Dec 2007 madhavi dubal

if u have code in matlab for DCT based fractal in image compression then please mail the code on my email (madhushri_2008@rediffmail or Looking forward for your help. Thank you.

Comment only
26 Nov 2007 jorge alberto

very good

22 Nov 2007 emma zhang

i hope you can send me the full coding .thanks .

Comment only
13 Aug 2007 sushil rangari

can u mail me the full coding of image compression?its my project topic.please help me!

Comment only
22 Jun 2007 geeta viadya

hi i need this source

28 Apr 2007 warda lee

thank u

14 Apr 2007 amani ali

03 Apr 2007 nuz ara

18 Mar 2007 eray uyanik

12 Mar 2007 Mamta jha


07 Mar 2007 magesh kumar


i want this software

Comment only
09 May 2006 Li lessuez

In decoding,exchange "Mu" for "Mi" ,the result is better.

15 Mar 2006 Cuber Ice

Matlab stops responding with a block_size = 4.

03 Aug 2005 Nissim Nabar

18 Jul 2005 rina rao

i tried using this function for a 4x4 lena image but matlab is showing errors for functions imread and the parameter in_put for the function out_put. could you please let me know how i can best use your function in matlab?

04 Jul 2005 Pratibha Rao

16 Apr 2005 Deema Halabi

i have lucky for meeting you in this site
thank u.

09 Mar 2005 diana rebecca

the output for 8*8 blocks is not clear...can I know wht is the standard block size used..

25 Feb 2005 abhinit samchin

hope , this coding will helful in our project,thanking u

20 Aug 2004 rob thomas

very good

30 Jun 2004 doaa rady

is this function available for fingerprint compression

30 Jun 2004 doaa rady

i need the documents of this function algorithm to understand it

Comment only
30 Jun 2004 doaa rady

i need to under stand this algorithm

Comment only
22 Jun 2004 amit sagar

i was finding this from a long time i find it here it is in a good form thanks to the Vallabha Hampiholi

Contact us