"ABUTALA" <love.scream1@gmail.com> wrote in message <gef3t8$r8q$1@fred.mathworks.com>...
> Can anyone reply with the sample code to calculate PSNR of two
> images in MATLAB?
>
> thanks
Did you even try this yourself? Programming doesn't get much easier than this.
Post what you did and if it's not Matlab optimal people will happily help out. I'm sure someone will post the answer anyway...
"Adam" <not.real@email.com> wrote in message <gef4hp$5rn$1@fred.mathworks.com>...
> "ABUTALA" <love.scream1@gmail.com> wrote in message <gef3t8$r8q$1@fred.mathworks.com>...
> > Can anyone reply with the sample code to calculate PSNR of two
> > images in MATLAB?
> >
> > thanks
>
> Did you even try this yourself? Programming doesn't get much easier than this.
>
> Post what you did and if it's not Matlab optimal people will happily help out. I'm sure someone will post the answer anyway...
>
> ~Adam
If you have answer, you reply or we dont need comment?
"ABUTALA" <love.scream1@gmail.com> wrote in message <gef9bi$7gj$1@fred.mathworks.com>...
> "Adam" <not.real@email.com> wrote in message <gef4hp$5rn$1@fred.mathworks.com>...
> > "ABUTALA" <love.scream1@gmail.com> wrote in message <gef3t8$r8q$1@fred.mathworks.com>...
> > > Can anyone reply with the sample code to calculate PSNR of two
> > > images in MATLAB?
> > >
> > > thanks
> >
> > Did you even try this yourself? Programming doesn't get much easier than this.
> >
> > Post what you did and if it's not Matlab optimal people will happily help out. I'm sure someone will post the answer anyway...
> >
> > ~Adam
>
> If you have answer, you reply or we dont need comment?
>
> if i have answer , why i ask you?
Nope. I have answer, I'm just not telling, AND I'm commenting.
People come in here everyday asking for code without putting forth any indication they did any work themself. If you had googled PSNR you would see it's one equation and would already have your code instead of waiting for someone else to come along and maybe/maybe not answer your question.
"Adam" <not.real@email.com> wrote in message <gefah1$m7c$1@fred.mathworks.com>...
> "ABUTALA" <love.scream1@gmail.com> wrote in message <gef9bi$7gj$1@fred.mathworks.com>...
> > "Adam" <not.real@email.com> wrote in message <gef4hp$5rn$1@fred.mathworks.com>...
> > > "ABUTALA" <love.scream1@gmail.com> wrote in message <gef3t8$r8q$1@fred.mathworks.com>...
> > > > Can anyone reply with the sample code to calculate PSNR of two
> > > > images in MATLAB?
> > > >
> > > > thanks
> > >
> > > Did you even try this yourself? Programming doesn't get much easier than this.
> > >
> > > Post what you did and if it's not Matlab optimal people will happily help out. I'm sure someone will post the answer anyway...
> > >
> > > ~Adam
> >
> > If you have answer, you reply or we dont need comment?
> >
> > if i have answer , why i ask you?
>
> Nope. I have answer, I'm just not telling, AND I'm commenting.
>
> People come in here everyday asking for code without putting forth any indication they did any work themself. If you had googled PSNR you would see it's one equation and would already have your code instead of waiting for someone else to come along and maybe/maybe not answer your question.
>
> Good luck,
> ~Adam
So I ask because i dont have answer ans i googled but i didnt get my answer?
"ABUTALA" <love.scream1@gmail.com> wrote in message <gefm4a$gj9$1@fred.mathworks.com>...
> "Adam" <not.real@email.com> wrote in message <gefah1$m7c$1@fred.mathworks.com>...
> > "ABUTALA" <love.scream1@gmail.com> wrote in message <gef9bi$7gj$1@fred.mathworks.com>...
> > > "Adam" <not.real@email.com> wrote in message <gef4hp$5rn$1@fred.mathworks.com>...
> > > > "ABUTALA" <love.scream1@gmail.com> wrote in message <gef3t8$r8q$1@fred.mathworks.com>...
> > > > > Can anyone reply with the sample code to calculate PSNR of two
> > > > > images in MATLAB?
> > > > >
> > > > > thanks
> > > >
> > > > Did you even try this yourself? Programming doesn't get much easier than this.
> > > >
> > > > Post what you did and if it's not Matlab optimal people will happily help out. I'm sure someone will post the answer anyway...
> > > >
> > > > ~Adam
> > >
> > > If you have answer, you reply or we dont need comment?
> > >
> > > if i have answer , why i ask you?
> >
> > Nope. I have answer, I'm just not telling, AND I'm commenting.
> >
> > People come in here everyday asking for code without putting forth any indication they did any work themself. If you had googled PSNR you would see it's one equation and would already have your code instead of waiting for someone else to come along and maybe/maybe not answer your question.
> >
> > Good luck,
> > ~Adam
>
> So I ask because i dont have answer ans i googled but i didnt get my answer?
try googling:
psnr wiki
the first result should be useful.
-Justin
On Oct 31, 10:15=A0pm, "ABUTALA" <love.scre...@gmail.com> wrote:
> Can anyone reply with the sample code to calculate PSNR of two
> images in MATLAB?
>
> thanks
Matlab Sorce code is listed in the following. and the range of the
value of the two image A and B is 0~255:
function PSNR(A,B)
if A =3D=3D B
error('Images are identical: PSNR has infinite value')
end
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.