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

1 次查看(过去 30 天)
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 个评论
Stephen23
Stephen23 2018-4-28
Just do it yourself: scaling values to the range [0,1] is not very hard.

请先登录,再进行评论。

回答(1 个)

Walter Roberson
Walter Roberson 2018-4-28
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].

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by