Class: Google::Apis::TranscoderV1beta1::Denoise
- Inherits:
-
Object
- Object
- Google::Apis::TranscoderV1beta1::Denoise
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/transcoder_v1beta1/classes.rb,
lib/google/apis/transcoder_v1beta1/representations.rb,
lib/google/apis/transcoder_v1beta1/representations.rb
Overview
Denoise preprocessing configuration.
Instance Attribute Summary collapse
-
#strength ⇒ Float
Set strength of the denoise.
-
#tune ⇒ String
Set the denoiser mode.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Denoise
constructor
A new instance of Denoise.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Denoise
Returns a new instance of Denoise.
477 478 479 |
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 477 def initialize(**args) update!(**args) end |
Instance Attribute Details
#strength ⇒ Float
Set strength of the denoise. Enter a value between 0 and 1. The higher the
value, the smoother the image. 0 is no denoising. The default is 0.
Corresponds to the JSON property strength
469 470 471 |
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 469 def strength @strength end |
#tune ⇒ String
Set the denoiser mode. The default is "standard"
. Supported denoiser modes: -
'standard' - 'grain'
Corresponds to the JSON property tune
475 476 477 |
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 475 def tune @tune end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
482 483 484 485 |
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 482 def update!(**args) @strength = args[:strength] if args.key?(:strength) @tune = args[:tune] if args.key?(:tune) end |