How I use the creatmask function for rgb image?

6 visualizaciones (últimos 30 días)
Imran Riaz
Imran Riaz el 28 de Jun. de 2022
Comentada: Image Analyst el 28 de Jun. de 2022
[mask, maskedRGBImage] = createMask(rgbImage);
I need guidance to run the above function in MATLAB.

Respuesta aceptada

Image Analyst
Image Analyst el 28 de Jun. de 2022
Attached is an example I did for another question. Adapt it.
  4 comentarios
Walter Roberson
Walter Roberson el 28 de Jun. de 2022
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 el 28 de Jun. de 2022
@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.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Image Segmentation and Analysis en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by