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

norm_matrix_range

Normalize a matrix to specific range of values


Description

Normalize a matrix to specific range of values

Usage

norm_matrix_range(data, min_value = -1, max_value = 1)

Arguments

data

a matrix

min_value

the new minimum value for the input data

max_value

the new maximum value for the input data

Value

a matrix

Examples

set.seed(1)
mt = matrix(1:48, 8, 6)

res = norm_matrix_range(mt, min_value = -1, max_value = 1)

OpenImageR

An Image Processing Toolkit

v1.1.8
GPL-3
Authors
Lampros Mouselimis [aut, cre] (<https://orcid.org/0000-0002-8024-1546>), Sight Machine [cph] (findHOGFeatures function of the SimpleCV computer vision platform), Johannes Buchner [cph] (average_hash, dhash and phash functions of the ImageHash python library), Mohammad Haghighat [cph] (Gabor Feature Extraction), Radhakrishna Achanta [cph] (Author of the C++ code of the SLIC and SLICO algorithms (for commercial use please contact the author))
Initial release
2021-05-04

We don't support your browser anymore

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