improfile_D & getline_D (changed original functions)

Version 1.0.1 (8.72 KB) by Dimani4
improfile works with figure handle only+getline function which enables to remain the draw lines on the figure.
20 Downloads
Updated 4 Apr 2020

View License

This is the changed original improfile function which enables to work only with the figure handle. This program very good especially when you work with GUIs when you need improfile to work with certain intensity picture. In addition I changed also getline function which now enables to remain the profile lines you draw on the picture. Now you can draw whatever lines you want on figure and it will give you the corresponding profile pictures. The method of interpolation now is bicubic. If you want to change it to "nearest" or "bilinear" just go to the line 506 or 504 of the improfile_D file and enable the desired line while the line 505 (Method='bicubic') should be disabled.
When you draw your picture just do: image=imagesc(your matrix);
then you just call improfile_D function like this: [xcoordinates,ycoordinates,zcoordinates,PCoordinates]=improfile_D({image});
It returns all the coordinates plus the initial and final coordinates of your profile lines. If you have more than 2 coordinates the profile function draws 3D pictures.
Enjoy!! I just wanted to share this function to you because someone will need this kind of function for sure.
All credits go to the original improfile and getline Matlab functions!!!!

Cite As

Dimani4 (2024). improfile_D & getline_D (changed original functions) (https://www.mathworks.com/matlabcentral/fileexchange/74868-improfile_d-getline_d-changed-original-functions), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2016b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

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.1

2 files in zip file

1.0.0