📄 qccimgimagecolorsnr.3
字号:
.TH QCCIMGIMAGECOLORSNR 3 "QCCPACK" "".SH NAMEQccIMGImageColorSNR\- copy image.SH SYNOPSIS.B #include "libQccPack.h".sp.BI "double QccIMGImageColorSNR(const QccIMGImage *" image1 ", const QccIMGImage *" image2 );.SH DESCRIPTION.BR QccIMGImageColorSNR()calculates a color distortion between two images.This color distortion is a signal-to-noise ratio (SNR)based on the 1964 CIE formula forthe distance between two colors as calculated in theCIE Modified UCS color space..BR QccIMGImageModifiedUCSColorMetric (3)is used to calculate these UCS color-space distances..LPBoth.IR image1and.IR image2must have the same size.Furthermore, all three YUV image components within each imagemust be the same size as well..SH "METHOD"If the pixels of.IR image1are .RI ( U1 ", " V1 ", " W1 )in Modified UCS color space,and pixels of.IR image2are.RI ( U2 ", " V2 ", " W2 "),"the color SNR between the two images is .I SNR= 10 * log .RI ( D1 / .IR D2 )..I D2is the average squared distance (1964 CIE formula) between the two images,.IR D2 " = mean((" U1 " - " U2 ")^2 + (" V1 " - " V2 ")^2 +.RI ( W1 " - " W2 ")^2).".I D1is the average squared distance between the pixels of.IR image1and the mean color, .RI ( u1 ", " v1 ", " w1 ") =".RI (mean( u1 "), mean(" v1 "), mean(" w1 )),of.IR image1 ;that is,.IR D1 " = mean((" U1 " - " u1 ")^2 + (" V1 " - " v1 ")^2 +.RI ( W1 " - " w1 ")^2).".SH "RETURN VALUE"This routine returns the value of the calculated SNR, or 0.0 incase of an error..SH "SEE ALSO".BR QccIMGImageModifiedUCSColorMetric (3),.BR QccIMGImage (3),.BR QccIMGImageComponent (3),.BR imgdist (1),.BR QccPackIMG (3),.BR QccPack (3).SH AUTHORCopyright (C) 1997-2009 James E. Fowler.\" The programs herein are free software; you can redistribute them an.or.\" modify them under the terms of the GNU General Public License.\" as published by the Free Software Foundation; either version 2.\" of the License, or (at your option) any later version..\" .\" These programs are distributed in the hope that they will be useful,.\" but WITHOUT ANY WARRANTY; without even the implied warranty of.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the.\" GNU General Public License for more details..\" .\" You should have received a copy of the GNU General Public License.\" along with these programs; if not, write to the Free Software.\" Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -