当前位置: 首页>>代码示例>>Python>>正文


Python MCTF_parser.distortions方法代码示例

本文整理汇总了Python中MCTF_parser.MCTF_parser.distortions方法的典型用法代码示例。如果您正苦于以下问题:Python MCTF_parser.distortions方法的具体用法?Python MCTF_parser.distortions怎么用?Python MCTF_parser.distortions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在MCTF_parser.MCTF_parser的用法示例。


在下文中一共展示了MCTF_parser.distortions方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: MCTF_parser

# 需要导入模块: from MCTF_parser import MCTF_parser [as 别名]
# 或者: from MCTF_parser.MCTF_parser import distortions [as 别名]
## File containing a distortion value per line. Each line corresponds
## to a frame of the sequence.
distortions           = ""

## The parser module provides an interface to Python's internal parser
## and byte-code compiler.
parser = MCTF_parser(description="Compress the texture.")
parser.GOPs(GOPs)
parser.nLayers(nLayers)
parser.pixels_in_x(pixels_in_x)
parser.pixels_in_y(pixels_in_y)
parser.quantization(quantization)
parser.quantization_step(quantization_step)
parser.TRLs(TRLs)
parser.SRLs(SRLs)
parser.distortions(distortions)

## A script may only parse a few of the command-line arguments,
## passing the remaining arguments on to another script or program.
args = parser.parse_known_args()[0]
if args.GOPs:
    GOPs = int(args.GOPs)
if args.nLayers:
    nLayers = int(args.nLayers)
if args.pixels_in_x:
    pixels_in_x = int(args.pixels_in_x)
if args.pixels_in_y:
    pixels_in_y = int(args.pixels_in_y)
if args.quantization:
    quantization = args.quantization
if args.quantization_step:
开发者ID:vicente-gonzalez-ruiz,项目名称:QSVC,代码行数:33,代码来源:searchSlope_byDistortion_j2k.py


注:本文中的MCTF_parser.MCTF_parser.distortions方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。