Interface PreprocessingConfig.DenoiseOrBuilder (1.36.0)

publicstaticinterface PreprocessingConfig.DenoiseOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getStrength()

publicabstractdoublegetStrength()

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.

double strength = 1;

Returns
Type Description
double

The strength.

getTune()

publicabstractStringgetTune()

Set the denoiser mode. The default is standard.

Supported denoiser modes:

  • standard
  • grain

string tune = 2;

Returns
Type Description
String

The tune.

getTuneBytes()

publicabstractByteStringgetTuneBytes()

Set the denoiser mode. The default is standard.

Supported denoiser modes:

  • standard
  • grain

string tune = 2;

Returns
Type Description
ByteString

The bytes for tune.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.