本文整理匯總了Python中result.Result.U_PSNR方法的典型用法代碼示例。如果您正苦於以下問題:Python Result.U_PSNR方法的具體用法?Python Result.U_PSNR怎麽用?Python Result.U_PSNR使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類result.Result
的用法示例。
在下文中一共展示了Result.U_PSNR方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: read_profile
# 需要導入模塊: from result import Result [as 別名]
# 或者: from result.Result import U_PSNR [as 別名]
def read_profile(fp_result,video,profile):
#READ QP
qp = int(fp_result.readline())
# print str(qp)
#READ DEPTH
depth = int(fp_result.readline())
# print str(depth)
result = Result()
#READ BITS
result.bits = float(fp_result.readline())
# print str(result.bits)
#READ Y_PSNR
result.Y_PSNR = float(fp_result.readline())
# print str(result.Y_PSNR)
#READ U_PSNR
result.U_PSNR = float(fp_result.readline())
# print str(result.U_PSNR)
#READ V_PSNR
result.V_PSNR = float(fp_result.readline())
# print str(result.V_PSNR)
#READ TIME
result.time = float(fp_result.readline())
# print str(result.time)
if qp == 22:
j=0
elif qp == 27:
j=1
elif qp == 32:
j=2
else:
j=3
if depth == -1:
reference[video][profile][j].append(result)
elif depth == 8:
results_h0_depth8[video][profile][j].append(result)
elif depth == 16:
results_h0_depth16[video][profile][j].append(result)
elif depth == 32:
results_h0_depth32[video][profile][j].append(result)
else:
results_h0_depth64[video][profile][j].append(result)