What is the use of max in the following code?

1 visualización (últimos 30 días)
D Joseph
D Joseph el 15 de Ag. de 2015
Comentada: D Joseph el 17 de Ag. de 2015
fname = 'texture1.bmp';
e = imread(fname);
e = double(e);
im = e;
im = double(im);
im = im/max(im(:));
What is the use of last line of code in matlab?

Respuestas (1)

Walter Roberson
Walter Roberson el 15 de Ag. de 2015
Is is used to scale the data so that it has a maximum value of 1, so the parts of the image are considered in relative proportions rather than by absolute value. This would be common when the key information is the relationship between parts rather than how bright the example happened to be.
  4 comentarios
Walter Roberson
Walter Roberson el 15 de Ag. de 2015
"f u cn rd ths, u cn gt a gd jb n cmptr prgmmng"
D Joseph
D Joseph el 17 de Ag. de 2015
"if you can read this,you can get a good job in computer programming ". What you mean by it

Iniciar sesión para comentar.

Categorías

Más información sobre Biological and Health Sciences en Help Center y File Exchange.

Etiquetas

Aún no se han introducido etiquetas.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by