필터 지우기
필터 지우기

What is the use of max in the following code?

조회 수: 2 (최근 30일)
D Joseph
D Joseph 2015년 8월 15일
댓글: D Joseph 2015년 8월 17일
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?

답변 (1개)

Walter Roberson
Walter Roberson 2015년 8월 15일
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
Walter Roberson
Walter Roberson 2015년 8월 15일
"f u cn rd ths, u cn gt a gd jb n cmptr prgmmng"
D Joseph
D Joseph 2015년 8월 17일
"if you can read this,you can get a good job in computer programming ". What you mean by it

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by