MCPcopy
hub / github.com/google/earthengine-api / visualize

Method visualize

python/ee/image.py:4531–4578  ·  view source on GitHub ↗

Produces an RGB or grayscale visualization of an image. Each of the gain, bias, min, max, and gamma arguments can take either a single value, which will be applied to all bands, or a list of values the same length as bands. Args: bands: A list of the bands to visualize. If em

(
      self,
      bands: _arg_types.Any | None = None,
      gain: _arg_types.Any | None = None,
      bias: _arg_types.Any | None = None,
      min: _arg_types.Any | None = None,  # pylint: disable=redefined-builtin
      max: _arg_types.Any | None = None,  # pylint: disable=redefined-builtin
      gamma: _arg_types.Any | None = None,
      opacity: _arg_types.Number | None = None,
      palette: _arg_types.Any | None = None,
      # pylint: disable-next=invalid-name
      forceRgbOutput: _arg_types.Bool | None = None,
  )

Source from the content-addressed store, hash-verified

4529 )
4530
4531 def visualize(
4532 self,
4533 bands: _arg_types.Any | None = None,
4534 gain: _arg_types.Any | None = None,
4535 bias: _arg_types.Any | None = None,
4536 min: _arg_types.Any | None = None, # pylint: disable=redefined-builtin
4537 max: _arg_types.Any | None = None, # pylint: disable=redefined-builtin
4538 gamma: _arg_types.Any | None = None,
4539 opacity: _arg_types.Number | None = None,
4540 palette: _arg_types.Any | None = None,
4541 # pylint: disable-next=invalid-name
4542 forceRgbOutput: _arg_types.Bool | None = None,
4543 ) -> Image:
4544 """Produces an RGB or grayscale visualization of an image.
4545
4546 Each of the gain, bias, min, max, and gamma arguments can take either a
4547 single value, which will be applied to all bands, or a list of values the
4548 same length as bands.
4549
4550 Args:
4551 bands: A list of the bands to visualize. If empty, the first 3 are used.
4552 gain: The visualization gain(s) to use.
4553 bias: The visualization bias(es) to use.
4554 min: The value(s) to map to RGB8 value 0.
4555 max: The value(s) to map to RGB8 value 255.
4556 gamma: The gamma correction factor(s) to use.
4557 opacity: The opacity scaling factor to use.
4558 palette: The color palette to use. List of CSS color identifiers or
4559 hexadecimal color strings (e.g., ['red', '00FF00', 'blueviolet']).
4560 forceRgbOutput: Whether to produce RGB output even for single-band inputs.
4561
4562 Returns:
4563 An ee.Image.
4564 """
4565
4566 return apifunction.ApiFunction.call_(
4567 self.name() + '.visualize',
4568 self,
4569 bands,
4570 gain,
4571 bias,
4572 min,
4573 max,
4574 gamma,
4575 opacity,
4576 palette,
4577 forceRgbOutput,
4578 )
4579
4580 def where(self, test: _arg_types.Image, value: _arg_types.Image) -> Image:
4581 """Performs conditional replacement of values.

Callers 13

test_visualizeMethod · 0.80
LayerFilters.jsFile · 0.80
ForestChange.jsFile · 0.80
addZeroAndWaterMaskFunction · 0.80
makeThumbnailFunction · 0.80
updateMosaicFunction · 0.80

Calls 2

nameMethod · 0.95
call_Method · 0.80

Tested by 3

test_visualizeMethod · 0.64