It can be difficult to see a line that is drawn over an image. The line is often lost in the background colors. That is why cursors are colored as they are, so that they are visible on any background. I demonstrate some code that makes a line more visible with the same technique.
You can get the original version @ http://blogs.mathworks.com/videos/2013/06/10/making-a-line-visible-over-an-image-in-matlab
I have made some tweaks - removed the returning values, adjust some errors and conditions and also added comments for the first time users..
A quick help for you guys too
% Making a line visible over an image in MATLAB
% x : X axis co-ordinates of the points on the line
% y : Y axis co-ordinates of the points on the line
% innerThickness : Thickness of the black line (inner line)
% outerThickness : Thickness of the white line (outer line)
Set innerThickness value to a value equal to or lower than zero and no inner line would be present in the output figure.
Set outerThickness value to less than the innerThickness value and no outer line would be present in the output figure.
Do share your feedbacks.. :)
Anand P (2020). Add Visible Line over Images (Modifed Version of the one in Doug's MATLAB Video Tutorials) (https://www.mathworks.com/matlabcentral/fileexchange/42270-add-visible-line-over-images-modifed-version-of-the-one-in-doug-s-matlab-video-tutorials), MATLAB Central File Exchange. Retrieved .