How I use the creatmask function for rgb image?

[mask, maskedRGBImage] = createMask(rgbImage);
I need guidance to run the above function in MATLAB.

 Akzeptierte Antwort

Image Analyst
Image Analyst am 28 Jun. 2022

0 Stimmen

Attached is an example I did for another question. Adapt it.

4 Kommentare

Imran Riaz
Imran Riaz am 28 Jun. 2022
Ur MATLAB version? creatmask function is applicable in 2022a MATLAB or not?
I'm using 2022a but the Color Thresholder, which made createMask, has been there since r2014a. Why? Is it not working for you?
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
@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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by