lsy17096535 写了:我用了,这个输入应该是什么?YUV420可以吗?或者avi什么的?我明天贴一下我的脚本,帮我看一下行吗? 谢谢
RTFM. (Copied from the script)
################################################################################################################################
## Main function: BM3D()
################################################################################################################################
## A wrap function for BM3D/V-BM3D denoising filter
## The BM3D filtering is always done in 16-bit int or 32-bit float opponent(OPP) color space internally.
## It can automatically convert any input color space to OPP and convert it back after filtering.
## Alternatively, you can specify "output" to force outputting RGB or OPP, and "css" to change chroma subsampling.
## For Gray input, no color space conversion is involved, thus "output" and "css" won't take effect.
## You can specify "refine" for any number of final estimate refinements.
################################################################################################################################
## Basic parameters
## input {clip}: clip to be filtered
## can be of YUV/RGB/Gray/YCoCg color family, can be of 8-16 bit integer or 16/32 bit float
## sigma {float[]}: same as "sigma" in BM3D, used for both basic estimate and final estimate
## the strength of filtering, should be carefully adjusted according to the noise
## set 0 to disable the filtering of corresponding plane
## default: [5.0,5.0,5.0]
## radius1 {int}: temporal radius of basic estimate
## - 0: BM3D (spatial denoising)
## - 1~16: temporal radius of V-BM3D (spatial-temporal denoising)
## default: 0
## radius2 {int}: temporal radius of final estimate
## default is the same as "radius1"
## profile1 {str}: same as "profile" in BM3D basic estimate
## default: "fast"
## profile2 {str}: same as "profile" in BM3D final estimate
## default is the same as "profile1"
################################################################################################################################
## Advanced parameters
## refine {int}: refinement times
## - 0: basic estimate only
## - 1: basic estimate + refined with final estimate, the original behavior of BM3D
## - n: basic estimate + refined with final estimate for n times
## each final estimate takes the filtered clip in previous estimate as reference clip to filter the input clip
## default: 1
## pre {clip} (optional): pre-filtered clip for basic estimate
## must be of the same format and dimension as the input clip
## should be a clip better suited for block-matching than the input clip
## ref {clip} (optional): basic estimate clip
## must be of the same format and dimension as the input clip
## replace the basic estimate of BM3D and serve as the reference clip for final estimate
## psample {int}: internal processed precision
## - 0: 16-bit integer, less accuracy, less memory consumption
## - 1: 32-bit float, more accuracy, more memory consumption
## default: 0
################################################################################################################################
## Parameters of input properties
## matrix {int|str}: color matrix of input clip, only makes sense for YUV/YCoCg input
## check GetMatrix() for available values
## default: guessed according to the color family and size of input clip
## full {bool}: define if input clip is of full range
## default: guessed according to the color family of input clip and "matrix"
################################################################################################################################
## Parameters of output properties
## output {int}: type of output clip, doesn't make sense for Gray input
## - 0: same format as input clip
## - 1: full range RGB (converted from input clip)
## - 2: full range OPP (converted from full range RGB, the color space where the filtering takes place)
## default: 0
## css {str}: chroma subsampling of output clip, only valid when output=0 and input clip is YUV/YCoCg
## check ToYUV() for available values
## default is the same as that of the input clip
## depth {int}: bit depth of output clip, can be 8-16 for integer or 16/32 for float
## default is the same as that of the input clip
## sample {int}: sample type of output clip, can be 0(vs.INTEGER) or 1(vs.FLOAT)
## default is the same as that of the input clip
################################################################################################################################
## Parameters of depth conversion
## dither, useZ, ampo, ampn, dyn, staticnoise:
## same as those in Depth()
################################################################################################################################
## Parameters of resampling
## cu_kernel, cu_taps, cu_a1, cu_a2, cu_cplace:
## used for chroma up-sampling, same as those in fmtc.resample
## default: kernel="bicubic", a1=0, a2=0.5, also known as "Catmull-Rom"
## cd_kernel, cd_taps, cd_a1, cd_a2, cd_cplace:
## used for chroma down-sampling, same as those in fmtc.resample
## default: kernel="bicubic", a1=0, a2=0.5, also known as "Catmull-Rom"
################################################################################################################################
## Parameters of BM3D basic estimate
## block_size1, block_step1, group_size1, bm_range1, bm_step1, ps_num1, ps_range1, ps_step1, th_mse1, hard_thr:
## same as those in bm3d.Basic/bm3d.VBasic
################################################################################################################################
## Parameters of BM3D final estimate
## block_size2, block_step2, group_size2, bm_range2, bm_step2, ps_num2, ps_range2, ps_step2, th_mse2:
## same as those in bm3d.Final/bm3d.VFinal
################################################################################################################################