Thread Subject: Wavelet Color Conversion

Subject: Wavelet Color Conversion

From: Jonathan Garzon

Date: 31 Dec, 2007 17:54:53

Message: 1 of 4

Hi,
I want to do an image compression. I use the function:

      [xcCOIF,cxc,lxc,perf0,perfl2 = wdencmp
('gbl',c,s,'coif1',level,thr,'h',1);

and after:

                     image(xcCOIF);

to show the image. The problem is that all the colors are
changed at the display. The same problem for Daubechies or
Biorthogonal wavelets.

Why it changes the color? How can I fix it?

Subject: Wavelet Color Conversion

From: Huy

Date: 31 Dec, 2007 18:04:05

Message: 2 of 4

"Jonathan Garzon" <jonathangarzon@gmail.com> wrote in message
<flbadd$loj$1@fred.mathworks.com>...
> Hi,
> I want to do an image compression. I use the function:
>
> [xcCOIF,cxc,lxc,perf0,perfl2 = wdencmp
> ('gbl',c,s,'coif1',level,thr,'h',1);
>
> and after:
>
> image(xcCOIF);
>
> to show the image. The problem is that all the colors are
> changed at the display. The same problem for Daubechies or
> Biorthogonal wavelets.
>
> Why it changes the color? How can I fix it?
The reason is that you compress separatedly three color bands
(RGB). You should change to YUV color model or some other color
decorrelation techniques.

Anh Huy Phan
RIKEN - BSI

Subject: Wavelet Color Conversion

From: Yumnam Kirani Singh

Date: 1 Jan, 2008 05:24:33

Message: 3 of 4

Another approach you can try is to convert the rgb image into an index image and a colormap. Do the wavelet compression or whatever on the index image and after reconstruction when you display the image, use imshow command with the colormap option.

Subject: Wavelet Color Conversion

From: Jonathan Garzon

Date: 2 Jan, 2008 17:14:19

Message: 4 of 4

Yumnam Kirani Singh <kirani.singh@gmail.com> wrote in
message
<64671.1199165103959.JavaMail.jakarta@nitrogen.mathforum.org>...
> Another approach you can try is to convert the rgb image
into an index image and a colormap. Do the wavelet
compression or whatever on the index image and after
reconstruction when you display the image, use imshow
command with the colormap option.


Hi,
Firs of all, thank you for helping.
I try to separate the index and the colormap, but it gives
me a problem with the input parameters.

I´m still with the same problem. Maybe you have another
option or know how to fix it. (reminder: undesirable color
from a png, gif image after wavelet).

Thank you again, Jonathan

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
wavelet Jonathan Garzon 31 Dec, 2007 12:54:58
rssFeed for this Thread

Public Submission Policy

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Contact us at files@mathworks.com