MATLAB: How to burn a line into a image

drawline

As the create mask option is not present anymore and also imline has been replaced, how to burn a line into the image with Matlab 2020?

Best Answer

  • imline() is still present, complete with the old create mask behavior, but the new objects are recommended instead.
    The new polyline objects support createmask: