improfile_D & getline_D (changed original functions)

Versión 1.0.1 (8,72 KB) por Dimani4
improfile works with figure handle only+getline function which enables to remain the draw lines on the figure.
20 Descargas
Actualizado 4 abr 2020

Ver licencia

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

Citar como

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

Compatibilidad con la versión de MATLAB
Se creó con R2016b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Etiquetas Añadir etiquetas

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
1.0.1

2 files in zip file

1.0.0