|
@ -46,25 +46,25 @@ class Film extends BaseCfg |
|
|
*/ |
|
|
*/ |
|
|
public $outputs; |
|
|
public $outputs; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 实例 PathDepth类、HybridBackforWard类的两个对象,初始化数组“$imagepipelines”; |
|
|
|
|
|
|
|
|
* 实例 NoiseEstimation类、filter类的两个对象,配置渲染器默认的输出参数”; |
|
|
*/ |
|
|
*/ |
|
|
public function __construct($config = []) |
|
|
public function __construct($config = []) |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
$this->noiseEstimation = new NoiseEstimation($config); |
|
|
$this->noiseEstimation = new NoiseEstimation($config); |
|
|
$this->filter = new Filter($config); |
|
|
$this->filter = new Filter($config); |
|
|
|
|
|
|
|
|
$this->imagepipelines[] = new NoiseReducerOIDN(); |
|
|
|
|
|
$this->imagepipelines[] = new NoiseReducerBCD(); |
|
|
|
|
|
|
|
|
$this->outputs[] = new ImageSaverNumber(['index' => 0]); |
|
|
|
|
|
$this->imagepipelines['000'] = [new Pretreatment(),new ToneMapLinear(),new CammaCorrection()]; |
|
|
|
|
|
|
|
|
$this->outputs[] = new ImageSaverBase(); |
|
|
|
|
|
$this->outputs[] = new ImageSaverNumber(); |
|
|
|
|
|
|
|
|
$this->outputs[] = new ImageSaverBase(['type' => 'ALBEDO']); |
|
|
|
|
|
$this->outputs[] = new ImageSaverBase(['type' => 'AVG_SHADING_NORMAL']); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//var_dump($this->outputs);
|
|
|
|
|
|
|
|
|
$this->outputs[] = new ImageSaverNumber(['index' => 1]); |
|
|
|
|
|
$this->imagepipelines['001'] = [new NoiseReducerOIDN(),new Pretreatment(),new ToneMapLinear(),new CammaCorrection()]; |
|
|
Base::__construct($config); |
|
|
Base::__construct($config); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|