Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

normalize

Normalization for a matrix


Description

This function normalizes an image matrix so that the minimum value is 0 and the maximum value is 1.

Usage

normalize(img)

Arguments

img

target image

Value

Image matrix in which minimum value is 0 and maximum value is 1.

Examples

data(twelve)
  x <- RGB2gray(twelve, method = "RMY")
  x <- normalize(x)
  plot(as.raster(x))

SpatialPack

Tools for Assessment the Association Between Two Spatial Processes

v0.3-8196
GPL-3
Authors
Felipe Osorio [aut, cre] (<https://orcid.org/0000-0002-4675-5201>), Ronny Vallejos [aut] (<https://orcid.org/0000-0001-5519-0946>), Francisco Cuevas [ctb], Diego Mancilla [ctb]
Initial release
2020-09-21

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.