Thread Subject: steganography- High PSNR

Subject: steganography- High PSNR

From: remi

Date: 3 Jul, 2009 01:48:01

Message: 1 of 5

hi all....
please i am getting very high PSNR values like above 50 between by original and stego image, and i know it is supposed to range between 20-40db. I have debugged my code and the embedding seems to be working just fine....i am at loss as to what could be causing it.....
Any ideas as to why i am getting high PSNR values and how i can get a value between the normal range..
thanks

Subject: Psnr

From: Sprinceana

Date: 30 Jul, 2009 20:03:01

Message: 2 of 5

Script to compute PSNR and EQM(Error Quadratic Mean):


PSNR.m:

y=imread('lena.tif');
[taille_i_l taille_i_c]=size(y);
figure(1)
colormap('gray')
imagesc(y);


Q=8;
z=double(dec2bin(double(y),Q))- 48;
Y = z(:);
[l_z c_z]= size(z);

fRe = 2*Y(1:2:length(Y))-1;
fIm = 2*Y(2:2:length(Y))-1; %
dk=(fRe+sqrt(-1)*fIm);
N_symb=length(dk);

%% Image reconstruction
X(1:2:2*N_symb) = real(dk);
X(2:2:2*N_symb) = imag(dk);
X_p=zeros(1,l_z*Q);
X_p(1:length(X))=X;



z2=reshape(X_p,length(X_p)/Q,Q);
mindex_1=find(z2==-1);
z2(mindex_1)=0;
num=2.^(Q-1:-1:0);
z_quantifie=z2*num';
image_dec=reshape(z_quantifie,taille_i_l,taille_i_c);
figure(3)
colormap('gray')
imagesc(image_dec)

%%PSNR
%EQM :
EQM = sum ((double(y(:))-image_dec(:)).^2)/(size(y,1)*size(y,2));

%PSNR: Peak Signal-Noise Ratio
PSNR = 10*log10(255*255/EQM)

Subject: Psnr

From: Matt Fig

Date: 30 Jul, 2009 20:12:01

Message: 3 of 5

My car is getting really bad gas mileage. It is supposed to get 35 mpg but gets 30 mpg. Can you tell me why?

If you answer No, and you think about WHY you cannot tell me why, you may have some insight into your own question as posted.

Subject: Psnr

From: us

Date: 30 Jul, 2009 20:26:03

Message: 4 of 5

"Matt Fig" <spamanon@yahoo.com> wrote in message <h4suqh$40$1@fred.mathworks.com>...
> My car is getting really bad gas mileage. It is supposed to get 35 mpg but gets 30 mpg. Can you tell me why?

but - matt - of course(!): your counter has a FP issue...

us...

Subject: Psnr

From: Matt Fig

Date: 30 Jul, 2009 20:38:02

Message: 5 of 5

"us " <us@neurol.unizh.ch> wrote in message <h4svkr$lhs$1@fred.mathworks.com>...
> "Matt Fig" <spamanon@yahoo.com> wrote in message <h4suqh$40$1@fred.mathworks.com>...
> > My car is getting really bad gas mileage. It is supposed to get 35 mpg but gets 30 mpg. Can you tell me why?
>
> but - matt - of course(!): your counter has a FP issue...
>
> us...

Oh, I forgot!

eps(30)
ans =
 5

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
humor us 30 Jul, 2009 16:29:03
for 2 images is... Sprinceana 30 Jul, 2009 16:06:20
psnr Sprinceana 30 Jul, 2009 16:04:03
eqm Sprinceana 30 Jul, 2009 16:04:03
psnr remi 2 Jul, 2009 21:49:02
rssFeed for this Thread
 

MATLAB Central Terms of Use

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 Terms prior to use.

Contact us at files@mathworks.com