Learn R Programming

ripa (version 2.0-2)

normalize: Normalization for vector and matrix

Description

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

Usage

normalize(img)

Arguments

img
target image

Value

Data of the same mode as 'img', in which minimum value is 0 and maximum value is 1.

Examples

Run this code
  data(logo)
  plot(normalize(logo))

Run the code above in your browser using DataLab