How could get the texture of a flower in a plant with stdfilt() function in MATLAB?

3 ビュー (過去 30 日間)
Penny13
Penny13 2018 年 10 月 28 日
コメント済み: Penny13 2018 年 10 月 28 日
Hello,
How stdfilt() should be used to get the texture of a part of an image?
For example the attached images.
  10 件のコメント
Walter Roberson
Walter Roberson 2018 年 10 月 28 日
Remove the background. Do a detection for bright yellow: if you find it then it must be Yufeng. Otherwise detect green, and find the mean brightness: the Yufeng is notably darker.
Penny13
Penny13 2018 年 10 月 28 日
Thank you so much.

サインインしてコメントする。

採用された回答

Image Analyst
Image Analyst 2018 年 10 月 28 日
I'd use imsplit() to get the individual color channels and then call stdfilt() on each color channel individually.
  3 件のコメント
Image Analyst
Image Analyst 2018 年 10 月 28 日
Regions that vary a lot in gray level (complicated parts with lots of leaf edges) will have high values. Regions that are smooth will have low stddev values. Just try it and see:
% Extract the individual red, green, and blue color channels.
redChannel = rgbImage(:, :, 1);
greenChannel = rgbImage(:, :, 2);
blueChannel = rgbImage(:, :, 3);
windowWidth = 15; % Whatever...
sdRed = stdfilt(recChannel, ones(windowWidth));
imshow(sdRed, []);
% Same for green and blue.
Penny13
Penny13 2018 年 10 月 28 日
Thank you so much for your guidance.

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by