How to create a mask to segment a color image by activecontour?

Hello,
I want to use the function activecontour in matlab to segment a color image buti don't know how to create the mask ("For color and multi-channel images, mask must be a 2-D logical array where the first two dimensions match the first two dimensions of the image A").

Answers (0)

Asked:

on 7 Aug 2018

Community Treasure Hunt

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

Start Hunting!