How I use the creatmask function for rgb image?

조회 수: 3 (최근 30일)
Imran Riaz
Imran Riaz 2022년 6월 28일
댓글: Image Analyst 2022년 6월 28일
[mask, maskedRGBImage] = createMask(rgbImage);
I need guidance to run the above function in MATLAB.

채택된 답변

Image Analyst
Image Analyst 2022년 6월 28일
Attached is an example I did for another question. Adapt it.
  댓글 수: 4
Walter Roberson
Walter Roberson 2022년 6월 28일
createMask does not exist as a function that accepts an rgb array, only accepts roi objects
https://www.mathworks.com/help/images/ref/imroi.createmask.html
Image Analyst
Image Analyst 2022년 6월 28일
@Walter Roberson that's a different create mask - a method of an object of class "roi". The syntax @Imran Riaz gave is exactly what you get when you use the Color Thresholder app and export the function. That is not an roi method. It is a function that does take an RGB image array.

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

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by