本文整理匯總了Python中MCTF_parser.MCTF_parser.subband方法的典型用法代碼示例。如果您正苦於以下問題:Python MCTF_parser.subband方法的具體用法?Python MCTF_parser.subband怎麽用?Python MCTF_parser.subband使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類MCTF_parser.MCTF_parser
的用法示例。
在下文中一共展示了MCTF_parser.subband方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: MCTF_parser
# 需要導入模塊: from MCTF_parser import MCTF_parser [as 別名]
# 或者: from MCTF_parser.MCTF_parser import subband [as 別名]
## Width of the pictures.
pixels_in_x = 352
## Height of the pictures.
pixels_in_y = 288
## Current temporal iteration.
subband = 0
## The parser module provides an interface to Python's internal parser
## and byte-code compiler.
parser = MCTF_parser(description="Expands the the LFB y HFB texture data using JPEG 2000.")
parser.add_argument("--file", help="file that contains the LFB or HFB data. Default = {})".format(file))
parser.add_argument("--rate", help="read only the initial portion of the code-stream, corresponding to an overall bit-rate of \"rate\" bits/sample. Default = {})".format(rate))
parser.pictures(pictures)
parser.pixels_in_x(pixels_in_x)
parser.pixels_in_y(pixels_in_y)
parser.subband(subband)
## 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.file:
file = args.file
if args.rate:
rate = float(args.rate)
if args.pictures:
pictures = int(args.pictures)
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.subband: