-
Notifications
You must be signed in to change notification settings - Fork 10
/
DenoiseHqdn3dFilter.ts
58 lines (50 loc) · 1.51 KB
/
DenoiseHqdn3dFilter.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import {map, mapArray} from '../common/Mapper';
import Filter from './Filter';
import FilterType from './FilterType';
/**
* @export
* @class DenoiseHqdn3dFilter
*/
export class DenoiseHqdn3dFilter extends Filter {
/**
* Discriminator property for Filter
* @type {string}
* @memberof DenoiseHqdn3dFilter
*/
public readonly type: FilterType = FilterType.DENOISE_HQDN3D;
/**
* A non-negative floating point number which specifies spatial luma strength. It defaults to 4.0.
* @type {number}
* @memberof DenoiseHqdn3dFilter
*/
public lumaSpatial?: number;
/**
* A non-negative floating point number which specifies spatial chroma strength. It defaults to 3.0*luma_spatial/4.0.
* @type {number}
* @memberof DenoiseHqdn3dFilter
*/
public chromaSpatial?: number;
/**
* A floating point number which specifies luma temporal strength. It defaults to 6.0*luma_spatial/4.0.
* @type {number}
* @memberof DenoiseHqdn3dFilter
*/
public lumaTmp?: number;
/**
* A floating point number which specifies chroma temporal strength. It defaults to luma_tmp*chroma_spatial/luma_spatial.
* @type {number}
* @memberof DenoiseHqdn3dFilter
*/
public chromaTmp?: number;
constructor(obj?: Partial<DenoiseHqdn3dFilter>) {
super(obj);
if(!obj) {
return;
}
this.lumaSpatial = map(obj.lumaSpatial);
this.chromaSpatial = map(obj.chromaSpatial);
this.lumaTmp = map(obj.lumaTmp);
this.chromaTmp = map(obj.chromaTmp);
}
}
export default DenoiseHqdn3dFilter;