improfile_D & getline_D (changed original functions)

Version 1.0.1 (8,72 KB) von Dimani4
improfile works with figure handle only+getline function which enables to remain the draw lines on the figure.
20 Downloads
Aktualisiert 4 Apr 2020

Lizenz anzeigen

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!!!!

Zitieren als

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

Kompatibilität der MATLAB-Version
Erstellt mit R2016b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.1

2 files in zip file

1.0.0