フィルターのクリア

Data Cursor as an input for a function

3 ビュー (過去 30 日間)
Andreas Passos
Andreas Passos 2016 年 3 月 28 日
コメント済み: Andreas Passos 2016 年 3 月 29 日
Hi,
I am writing a function that process a certain region (rectangular) of an image and I am trying to make the function show me the image in order to define the processing area by clicking on it the two points (X1,y1 , x2,y2) with data cursor.
an example of the function is:
function [ NormIntensityTime ] = NormIntensityTime( ImName_dir, yPx, xPx )
ImName_dir = 'C:\Users\Lab\...\Preprocessed\Str\020\test020_7\*.tif';
yPx = 40:134
xPx = 600:1100
etc...
Thanks a lot,
Andreas

採用された回答

Walter Roberson
Walter Roberson 2016 年 3 月 28 日
or perhaps uigetfile() is what you want to select the file.
Once you have imread() the file, then image() or imshow() to get it to display.
However, you should not be using data cursor mode to define regions. You should look at imrect() or ginput()
  1 件のコメント
Andreas Passos
Andreas Passos 2016 年 3 月 29 日
Thank you very much for the answer! I think the ginput() function is the one I need.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by