Add Visible Line over Images (Modifed Version of the one in Doug's MATLAB Video Tutorials)
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
Platform Compatibility
Windows macOS LinuxCategories
- Image Processing and Computer Vision > Image Processing Toolbox > Image Filtering and Enhancement > Image Arithmetic >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |