FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > DSP

DSP comp.dsp newsgroup, mailing list

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-03-2009, 11:25 AM
praveen.264
Guest
 
Posts: n/a
Default PSNR and SSIM values of a YUV video

Hi friends !

Iam trying to project the performance of our video processing algorith
objectively in terms of PSNR and SSIM. We are dealing with YV12 videos. Ia
using the MSU Video Quality measurement tool to compute the PSNR and SSI
values. Here they give the options to compute the values for Y-compone
alone (and average for all the Y frames), U componet alone (and average fo
all the U frames),V componet alone (and average for all the V frames.

My question here is which value should I take into consideration (Y, U o
V?? or the average of Y,U,V values??) for comparing with unprocessed video



to summarize,

what will be correct PSNR for a YUV video - Y component PSNR, U componen
PSNR or V component PSNR or the average of the three?

Pls give ur valuable inputs..

Thanks in advance,
Praveen




Reply With Quote
  #2 (permalink)  
Old 04-03-2009, 04:32 PM
kennheinrich@sympatico.ca
Guest
 
Posts: n/a
Default Re: PSNR and SSIM values of a YUV video

On Apr 3, 6:25*am, "praveen.264" <kpk_...@yahoo.co.in> wrote:
> Hi friends !
>
> Iam trying to project the performance of our video processing algorithm
> objectively in terms of PSNR and SSIM. We are dealing with YV12 videos. Iam
> using the MSU Video Quality measurement tool to compute the PSNR and SSIM
> values. Here they give the options to compute the values for Y-componet
> alone (and average for all the Y frames), U componet alone (and average for
> all the U frames),V componet alone (and average for all the V frames.
>
> My question here is which value should I take into consideration (Y, U or
> V?? or the average of Y,U,V values??) for comparing with unprocessed video?
>
> to summarize,
>
> what will be correct PSNR for a YUV video - *Y component PSNR, U component
> PSNR or V component PSNR or the average of the three?
>
> Pls give ur valuable inputs..
>
> Thanks in advance,
> Praveen


There is no one answer that is "correct". I have seen much literature
in the video compression community where the Y PSNR is the primary
metric, and the others are ignored, or assumed to follow fairly
closely. If you wanted conservative results, you could use max of
Y,U,V. But there's certainly no reason you can't average them either.
If on the other hand you're try to compare against some other
published literature, you should do exactly what they do to make the
comparison more fair.

- Kenn
Reply With Quote
  #3 (permalink)  
Old 04-03-2009, 04:51 PM
praveen.264
Guest
 
Posts: n/a
Default Re: PSNR and SSIM values of a YUV video

>On Apr 3, 6:25=A0am, "praveen.264" <kpk_...@yahoo.co.in> wrote:
>> Hi friends !
>>
>> Iam trying to project the performance of our video processin

algorithm
>> objectively in terms of PSNR and SSIM. We are dealing with YV12 videos

I=
>am
>> using the MSU Video Quality measurement tool to compute the PSNR an

SSIM
>> values. Here they give the options to compute the values fo

Y-componet
>> alone (and average for all the Y frames), U componet alone (and averag

f=
>or
>> all the U frames),V componet alone (and average for all the V frames.
>>
>> My question here is which value should I take into consideration (Y,

or
>> V?? or the average of Y,U,V values??) for comparing with unprocesse

vide=
>o?
>>
>> to summarize,
>>
>> what will be correct PSNR for a YUV video - =A0Y component PSNR,

compon=
>ent
>> PSNR or V component PSNR or the average of the three?
>>
>> Pls give ur valuable inputs..
>>
>> Thanks in advance,
>> Praveen

>
>There is no one answer that is "correct". I have seen much literature
>in the video compression community where the Y PSNR is the primary
>metric, and the others are ignored, or assumed to follow fairly
>closely. If you wanted conservative results, you could use max of
>Y,U,V. But there's certainly no reason you can't average them either.
>If on the other hand you're try to compare against some other
>published literature, you should do exactly what they do to make the
>comparison more fair.
>
> - Kenn
>


Thanks Kenn for the reply. I have been going through some literatures fo
reference. I could only find the term "Avg. PSNR" or "MSSIM" but no wher
clearly mentioned whether it is of Y, U ,V or avg of YUV. Can u pls let m
know what the standard practice is ? I am a newbie to this stuff.

Thanks

Praveen


Reply With Quote
  #4 (permalink)  
Old 04-03-2009, 05:13 PM
praveen.264
Guest
 
Posts: n/a
Default Re: PSNR and SSIM values of a YUV video

>On Apr 3, 6:25=A0am, "praveen.264" <kpk_...@yahoo.co.in> wrote:
>> Hi friends !
>>
>> Iam trying to project the performance of our video processin

algorithm
>> objectively in terms of PSNR and SSIM. We are dealing with YV12 videos

I=
>am
>> using the MSU Video Quality measurement tool to compute the PSNR an

SSIM
>> values. Here they give the options to compute the values fo

Y-componet
>> alone (and average for all the Y frames), U componet alone (and averag

f=
>or
>> all the U frames),V componet alone (and average for all the V frames.
>>
>> My question here is which value should I take into consideration (Y,

or
>> V?? or the average of Y,U,V values??) for comparing with unprocesse

vide=
>o?
>>
>> to summarize,
>>
>> what will be correct PSNR for a YUV video - =A0Y component PSNR,

compon=
>ent
>> PSNR or V component PSNR or the average of the three?
>>
>> Pls give ur valuable inputs..
>>
>> Thanks in advance,
>> Praveen

>
>There is no one answer that is "correct". I have seen much literature
>in the video compression community where the Y PSNR is the primary
>metric, and the others are ignored, or assumed to follow fairly
>closely. If you wanted conservative results, you could use max of
>Y,U,V. But there's certainly no reason you can't average them either.
>If on the other hand you're try to compare against some other
>published literature, you should do exactly what they do to make the
>comparison more fair.
>
> - Kenn
>


Hi Kenn!

I was caught in this dilemma because of the following situation:

Our processing is mainly concentrated on Y component than U and
components. So, obviously as the U and V components are not much affected
the PSNR or SSIM for U and V will be very high compared to the Y component
Consider the follwoing example:

I have to compare our encoder with an existing encoder (MPEG4 or H.26
etc..) which gave the following PSNR values (compared with original file
for Y, U, and V respectively: 49, 53, 54 => Avg of YUV = 52 db (only thi
Avg value being shown in the literature without the individual values)

let the values obtained by our encoder (compared with original file) be
51, 80, 80=> Avg. of YUV = 70.33

now, going by the Avg., can we claim a whopping difference of 18.33 d
while the actual improvement is 2 db for Y-component alone?


Reply With Quote
  #5 (permalink)  
Old 04-03-2009, 05:43 PM
kennheinrich@sympatico.ca
Guest
 
Posts: n/a
Default Re: PSNR and SSIM values of a YUV video

On Apr 3, 12:13*pm, "praveen.264" <kpk_...@yahoo.co.in> wrote:
> >On Apr 3, 6:25=A0am, "praveen.264" <kpk_...@yahoo.co.in> wrote:
> >> Hi friends !

>
> >> Iam trying to project the performance of our video processing

> algorithm
> >> objectively in terms of PSNR and SSIM. We are dealing with YV12 videos..

> I=
> >am
> >> using the MSU Video Quality measurement tool to compute the PSNR and

> SSIM
> >> values. Here they give the options to compute the values for

> Y-componet
> >> alone (and average for all the Y frames), U componet alone (and average

> f=
> >or
> >> all the U frames),V componet alone (and average for all the V frames.

>
> >> My question here is which value should I take into consideration (Y, U

> or
> >> V?? or the average of Y,U,V values??) for comparing with unprocessed

> vide=
> >o?

>
> >> to summarize,

>
> >> what will be correct PSNR for a YUV video - =A0Y component PSNR, U

> compon=
> >ent
> >> PSNR or V component PSNR or the average of the three?

>
> >> Pls give ur valuable inputs..

>
> >> Thanks in advance,
> >> Praveen

>
> >There is no one answer that is "correct". I have seen much literature
> >in the video compression community where the Y PSNR is the primary
> >metric, and the others are ignored, or assumed to follow fairly
> >closely. If you wanted conservative results, you could use max of
> >Y,U,V. But there's certainly no reason you can't average them either.
> >If on the other hand you're try to compare against some other
> >published literature, you should do exactly what they do to make the
> >comparison more fair.

>
> > - Kenn

>
> Hi Kenn!
>
> I was caught in this dilemma because of the following situation:
>
> Our processing is mainly concentrated on Y component than U and V
> components. So, obviously as the U and V components are not much affected,
> the PSNR or SSIM for U and V will be very high compared to the Y component.
> Consider the follwoing example:
>
> I have to compare our encoder with an existing encoder (MPEG4 or H.264
> etc..) which gave the following PSNR values (compared with original file)
> for Y, U, and V respectively: 49, 53, 54 => Avg of YUV = 52 db (only this
> Avg value being shown in the literature without the individual values)
>
> let the values obtained by our encoder (compared with original file) be :
> 51, 80, 80=> Avg. of YUV = 70.33
>
> now, going by the Avg., can we claim a whopping difference of 18.33 db
> while the actual improvement is 2 db for Y-component alone?


That's why you *can* average the PSNRs if you want to but it doesn't
necessarily give you what you think it gives you. PSNR is in a log
scale - what you're usually worried about is some measure of visible
distortion. If the Y component looks like garbage, at 20 dB, the whole
picture will still look like garbage even if U and V are clean.
That's what I meant by taking the maximum... although maximum
distortion is really minimum PSNR after you turn it into logarithmic
form.

Everyone who does image metrics that I've seen runs into this problem
but I have yet to see the one, simple, right answer that is
universally accepted and implemented by everyone.

One possibility I'd propose is to treat the YUV as points in a 3-D
vector space, find the norm of the 3-D difference, then take the PSNR
as the normalized log of that sum. But that only works cleanly if you
have co-sited 4:4:4 pixels to begin with, and will undoubtedly still
cause arguments.

And as far as SSIM and derivatives, there seem to be as many different
implementations that give slightly different results as there are
papers. It seems to be more of a family of metrics than a single
one... for that reason I'm leery of doing comparisons to external
results based purely on one scalar number called "SSIM".

- Kenn
Reply With Quote
  #6 (permalink)  
Old 12-13-2009, 07:45 PM
hsoj
Guest
 
Posts: n/a
Default Re: PSNR and SSIM values of a YUV video

>>On Apr 3, 6:25=A0am, "praveen.264" <kpk_...@yahoo.co.in> wrote:
>>> Hi friends !
>>>
>>> Iam trying to project the performance of our video processing

>algorithm
>>> objectively in terms of PSNR and SSIM. We are dealing with YV1

videos.
>I=
>>am
>>> using the MSU Video Quality measurement tool to compute the PSNR and

>SSIM
>>> values. Here they give the options to compute the values for

>Y-componet
>>> alone (and average for all the Y frames), U componet alone (an

average
>f=
>>or
>>> all the U frames),V componet alone (and average for all the V frames.
>>>
>>> My question here is which value should I take into consideration (Y

U
>or
>>> V?? or the average of Y,U,V values??) for comparing with unprocessed

>vide=
>>o?
>>>
>>> to summarize,
>>>
>>> what will be correct PSNR for a YUV video - =A0Y component PSNR, U

>compon=
>>ent
>>> PSNR or V component PSNR or the average of the three?
>>>
>>> Pls give ur valuable inputs..
>>>
>>> Thanks in advance,
>>> Praveen

>>
>>There is no one answer that is "correct". I have seen much literature
>>in the video compression community where the Y PSNR is the primary
>>metric, and the others are ignored, or assumed to follow fairly
>>closely. If you wanted conservative results, you could use max of
>>Y,U,V. But there's certainly no reason you can't average them either.
>>If on the other hand you're try to compare against some other
>>published literature, you should do exactly what they do to make the
>>comparison more fair.
>>
>> - Kenn
>>

>
>Thanks Kenn for the reply. I have been going through some literature

for
>reference. I could only find the term "Avg. PSNR" or "MSSIM" but n

where
>clearly mentioned whether it is of Y, U ,V or avg of YUV. Can u pls le

me
>know what the standard practice is ? I am a newbie to this stuff.
>
>Thanks
>
>Praveen
>
>
>


I am doing some reading on SSIM for my DSP course and here is a good star
on SSIM and also the code to calculate.

This is the web page of the originator (to my knowledge) for thi
algorithm

http://www.ece.uwaterloo.ca/~z70wang/research/ssim/

and if you scroll through you will find the link to download hi
algorithm

http://www.ece.uwaterloo.ca/~z70wang...ch/ssim/ssim.m

[SSIM, qMap] = ssim(original_image, comparison_image );

he also has a non reference algorithm that works pretty nice. Its no
perfect though

good luck!


Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Regarding PSNR for audio compression vasindagi DSP 0 07-05-2008 03:33 PM
inserting text into a video stream (from a pre-existing video source) wallge VHDL 8 01-12-2007 04:23 PM
inserting text into a video stream (from a pre-existing video source) wallge FPGA 8 01-12-2007 04:23 PM
Reference Video Clips for Video Compression Testing? Randy Yates DSP 1 10-31-2005 01:58 PM
JOB: Video Engineer Lead- (Video Compression Algorithm, H.264) - Austin, TX Dee Dee Dial, Executive Technology Recruiter DSP 10 05-03-2005 10:30 PM


All times are GMT +1. The time now is 08:33 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved