8

In the docs for GrowCutComponents[] there are many examples of masks, but I don't know how to make one for myself. I suppose they are using the drawing tools in some way (which I have never used), but a straightforward application of it gave this error:

enter image description here

Are there any examples of how to make a marker mask? Perhaps in a tutorial or in the refs for another symbol?

user5601
  • 3,573
  • 2
  • 24
  • 56

1 Answers1

6

A toy example :

  • Take an image
  • draw some line on it with the Drawing Tools
  • select the whole image. There should be a orange contour line with orange handlers, like in the image below. You can do that by clicking out of the cell, then inside the cell.
  • right-click to have the contextual menu, then "Graphics Editing", then "create Mask"

I have experienced some bugs with the Drawing Tool, specially with Mathematica Version 11.2 (Windows 7 in my case). Hope you will not have to deal with them.

enter image description here

Result :

enter image description here

andre314
  • 18,474
  • 1
  • 36
  • 69