Shade Normalisation

———————————————————————————————————————-
Date : September 2018
Copyright : © 2018 - 2020 by Ann Crabbé (KU Leuven)
Acknowledgements : Translated from VIPER Tools 2.0 (UC Santa Barbara, VIPER Lab).
Dar Roberts, Kerry Halligan, Philip Dennison, Kenneth Dudley, Ben Somers, Ann Crabbé

This file is part of the MESMA plugin and python package.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
License as published by the Free Software Foundation, either version 3 of the License, or any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License (COPYING.txt). If not see www.gnu.org/licenses.
———————————————————————————————————————-
class mesma.core.shade_normalisation.ShadeNormalisation[source]

Bases: object

Do a simple shade normalization on an existing MESMA fraction image: the shade fraction is removed and the other fractions are normalized to sum to one.

static execute(mesma_fraction_image: numpy.array, shade_band: int = -1) → numpy.array[source]

Execute shade normalisation. The return value is a normalized fraction image, with one band less as the input.

Parameters:
  • mesma_fraction_image – Fraction image of the output of the MESMA algorithm.
  • shade_band – Band number with the shade fraction (set to None in case no shade band given).
Returns:

Normalised fraction image.