Add Visible Line over Images (Modifed Version of the one in Doug's MATLAB Video Tutorials)

Version 1.0.0.0 (1.56 KB) by Anand P
This is a modified version of the one shared in Doug's MATLAB Video Tutorials
222 Downloads
Updated 17 Jun 2013

View License

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.. :)

Cite As

Anand P (2024). 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 .

MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0