WMW
  NEWS     ABOUT     PARTNERS     CONTACT  
  HELP
WATERMARKING
  • Biography
  • FAQ
MAILINGLIST
  • Management
  • Archive
CONFERENCES
  • Calls
BENCHMARKING
  • Stirmark
  • CheckMark
  • Optimark
BOOKS
LINKS
  • Companies
  • Research
  • Others
WEBRING
DISCLAIMER

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [WM]: MATLAB problem in color Image Processing



 

Dear = Dahlia,

 

You may make a = mistake when convert the data type between uint8 (0- 255, 8-bit) and double

Change: "save modlisa.mat = catmon" intead of "save modlisa.mat catmon8"  in the first program, = and   "mor=catmon" intead of "mor=catmon8"  in the  = second program.  You multiply all the coefficients by 100, and then the data is over "uint8".

Usually, when one = watermark color image. Color images are converted in to a YIQ representation and the = brightness component Y is then watermarked. The color image can then be converted = to other formats but should be converted back to YIQ to extraction watermark. Or = you can directly watermark into R, G, and B respectively.

 

tdhien


xc=imread('monalisa.bmp');
figure(1)
imshow(xc)
%Title('The Original Image 256 * 256')
x1=xc(:,:,1);
x1=double(x1);
x2=xc(:,:,2);
x2=double(x2);
x3=xc(:,:,3);
x3=double(x3);
x=x3;
[c3,s3]=wavedec2(x,2,'db1');     % size of ch2,cv2,cd2 is 4761*3=14283
c4=c3.*100;
s4=s3;
mod=waverec2(c4,s4,'db1');
catmon=cat(3,x1,x2,mod);
catmon8=uint8(catmon);
%save modlisa.mat catmon8
save modlisa.mat catmon;
figure(2)
imshow(catmon8)
imwrite(catmon8,'modlisa.bmp')


load modlisa.mat
%mor=imread('modlisa.bmp');
%mor=catmon8;
mor=catmon;
figure(1)
imshow(mor)
Title('The Original Image')
y1r=mor(:,:,1);
y1r=double(y1r);
y2g=mor(:,:,2);
y2g=double(y2g);
y3b=mor(:,:,3);
y3b=double(y3b);
y=y R>3b;
[c6,s6]=wavedec2(y,2,'db1');
c7=c6./100;
s7=s6;
moda=waverec2(c7,s7,'db1');
catmona=cat(3,y1r,y2g,moda);
catmona8=uint8(catmona);
figure(2)
imshow(catmona8)
image([catmona8])
imwrite(catmona8,'modlisab2n.bmp')

 
 
----- Original Message -----
From: Dahlia
Sent: Friday, July 01, 2005 8:35 PM
Subject: [WM]: MATLAB problem = in color Image Processing

 
 
Hello
 
I am working in the field of Digital Image Watermarking for = colored images
 
Attached to this email are two programs
In order to process colored images as in the 1st = program
 
-I first separated the three RGB components from one = another
-then I performed a DWT on the Bule image component
-and then I tried to multiply all the coefficients by a = constant number (100)
-Then performed an IDWT on the modified blue image = component
-and Finally, I combined the RG and modified blue = components back together and wrote the modified image
 
In the 2nd program
 
I read the modified RGB image, separated the three = components
and then performed a DWT on the blue modified image = component
Then I divided all the coefficients by the same constant used in the 1st stage (100)
Then I performed an IDWT on the modified blue image = component
and finall combined the RG and B all together and wrote the processed image
 
matter of fact, there is a difference between both images, = the original Monalisa Image and the processed image.
The precision have been doubled for all variables.
When the value of the constant change the difference = between the original and processed images change
when the mul;tiplication and division are changed into = addition and subtraction, for values below 100, there is a slight = modifications, for values below 1000 , they are more, and so on
 
so I want to ask why is the process not reversible?
In other meanings
the subtraction should cancel the effect of addition
and the division should cancel the effect of the multiplication,
but this is not what happens
 
 
This problem doesn't appear in gray-level images; and a = colored image is supposed to be a three stacks of gray level images, = so I really cannot explain why this happens and  I would = truly appreciate a further assistance to solve it.
 
 
Also, if you can direct me for further readings in the area = of watermarking colored images, I would truly appreciate it. As a = matter of fact, I could only find 3 papers on the internet and the three = adds PN sequences while I would like to add a picture which involves = multiplying and dividing by the weighing factor (ALPHA)
Thanks in Advance
===========================
Eng. Dahlia R. ElShafie
Teaching Assistant = and M.Sc. Student
Electronics and communications
College of = Engineering and Technology
Arab Academy for = Science and Technology
Alexandria-Egypt
 
________

Watermarking Mailing List - http://www.watermarkingworld.org/ml.html
To unsubscribe send email to "majordomo@watermarkingworld.org" with
"unsubscribe watermarking YOURMAIL" in the body.
______________________________________________________________________________


Internal Virus Database is out-of-date.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.6.2 - Release = Date: 2005/06/04

© 2000-2002 by WatermarkingWorld
Design and Concept by Martin Kutter