improfile_D & getline_D (changed original functions)

バージョン 1.0.1 (8.72 KB) 作成者: Dimani4
improfile works with figure handle only+getline function which enables to remain the draw lines on the figure.
ダウンロード: 20
更新 2020/4/4

ライセンスの表示

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

引用

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. 取得済み .

MATLAB リリースの互換性
作成: R2016b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
タグ タグを追加

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.1

2 files in zip file

1.0.0