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]:Problem in implementing DWT for watermarking



Hi,
You should first convert the image into uint8 format before displaying it:

x = imread('camera.bmp');
[A,H,V,D] = dwt2(x,'haar');
img = idwt2(A,H,V,D,'haar');
img=uint8(img);
figure, subplot(121);imshow(x);subplot(122);imshow(img);

Good luck,
Corina


At 08:16 AM 4/15/2007, rupal agravat wrote:
>Respected All,
>Myself, Rupal Agravat, student of Master's Computer Science, 
>implementing watermarking using different methods like, LSB, other 
>spatial domain methods, DCT and now i m implementing using DWT. But i m 
>facing following problem.........
>I am using image of camera man 256x256 8bit per pixel. For testing 
>purpose only i wrote following code x = imread('camera.bmp');
>imshow(x)
>[A,H,V,D] = dwt2(x,'haar');
>img = idwt2(A,H,V,D,'haar');
>figure, imshow(img);
>And it is giving white image with out any grayscale 
>........................ i mean i m not able to see the camera man 
>image................
>Can anybody tell me why it is happening?
>In advance, i am very much thankful to the persons giving me the 
>positive answer...........
>
>-Rupal Agravat
>India



______________________________________________________________________________

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




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