is_light_blue = imbinarize​(rescale(L​_blue));

in color based segmentation i have written above line but error occurred after execution is Undefined function 'rescale' for input arguments of type 'double'.

2 Kommentare

jayamala pakhare
jayamala pakhare am 28 Apr. 2018
which function can be used for rescale
Stephen23
Stephen23 am 28 Apr. 2018
Just do it yourself: scaling values to the range [0,1] is not very hard.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Walter Roberson
Walter Roberson am 28 Apr. 2018

0 Stimmen

mat2gray() can be used to rescale. The name would tend to suggest that it takes RGB and makes it into grayscale but really it does not do that: it maps input into the range [0 1].

Kategorien

Mehr zu MATLAB finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 28 Apr. 2018

Beantwortet:

am 28 Apr. 2018

Community Treasure Hunt

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

Start Hunting!

Translated by