Path: news.mathworks.com!not-for-mail
From: "ABUTALA " <love.scream1@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: I need to help?
Date: Fri, 19 Sep 2008 20:49:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 86
Message-ID: <gb137u$n54$1@fred.mathworks.com>
References: <gb0kj5$ov3$1@fred.mathworks.com> <e7ea5034-2104-4ba0-8820-104944d5d5a3@f36g2000hsa.googlegroups.com> <95fd5329-1f60-4e26-9749-9f14566c5ac3@m45g2000hsb.googlegroups.com>
Reply-To: "ABUTALA " <love.scream1@gmail.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1221857342 23716 172.30.248.38 (19 Sep 2008 20:49:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 19 Sep 2008 20:49:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1482948
Xref: news.mathworks.com comp.soft-sys.matlab:491044


Thank

I run program :
[


clear all
close all




[InputFileName, InputPathName] = uigetfile('*.tif', 'Select Input Image');
   InputImageName = strcat(InputPathName,InputFileName)
    cover=imread(InputImageName);
    
    if(~isgray(cover))
        cover=rgb2gray(cover);
    end
    
    figure, imshow(cover,[])   %Display the cover image
    
    [InputFileName, InputPathName] = uigetfile('*.tif', 'Select  Image to hide');
   InputImageName = strcat(InputPathName,InputFileName)
    hidden=imread(InputImageName);
    
    if(~isgray(hidden))
        hidden=rgb2gray(hidden);
    end
    figure, imshow(hidden,[])
    alpha = .02; %Strength of the hidden information
    stego = (1-alpha) * cover + alpha * hidden;
    
    figure, imshow(stego, []);
    reconstructed = (stego - (1-alpha) * cover)./alpha;
    figure, imshow(reconstructed, []);
    
    %%%See the difference between reconstructed and hidden
    diff = hidden - reconstructed;
  
if reconstructed == hidden
   error('Images are identical: PSNR has infinite value')
end

max2_A = max(max(reconstructed));
max2_B = max(max(hidden));
min2_A = min(min(reconstructed));
min2_B = min(min(hidden));


er = reconstructed - hidden;
decibels = 20*log10(255/(sqrt(mean(mean(er.^2)))))
plot(stego,reconstructed)

]

the result :

>> f

InputImageName =

E:\MatLAB\work\NewFolder1\demi256.tif

Warning: isgray is obsolete and may be removed in the future.
See product release notes for more information.
> In isgray at 27 % what is this?
  In f at 14 %what is this?Error or no ,i got it when i run.

InputImageName =

E:\MatLAB\work\NewFolder1\demi256.tif

Warning: isgray is obsolete and may be removed in the future.
See product release notes for more information.
> In isgray at 27
  In f at 24

decibels =

   30.3911 % this is difference between images or no?



Please help me?