how to execute varargin as a function?

1 回表示 (過去 30 日間)
sara
sara 2014 年 9 月 24 日
コメント済み: sara 2014 年 9 月 24 日
how can I run this mfile on my image?
the image is in jpg format, when I use the first mfile which is extrema.m and is for time series, it gives me the error that (the entry must be a vector), and when I use the second mfile,extrema 2, I use these commands:
i=imread('..');
m=rgb2gray(i);
extrema2(m,varargin);
and it gives me this error :(
attempt to execute SCRIPT varargin as a function:
C:\Program Files\MATLAB\R2013b\toolbox\matlab\lang\varargin.m)
now how can I execute it as a function,or how can I run this mfile,is it true to use m instead of xy? It is extrema2(xy,varargin). thanx

採用された回答

Image Analyst
Image Analyst 2014 年 9 月 24 日
編集済み: Image Analyst 2014 年 9 月 24 日
Don't pass in varargin. Pass in whatever it wants - images or whatever the instructions say to pass in.
  3 件のコメント
Image Analyst
Image Analyst 2014 年 9 月 24 日
I don't know what that algorithm does. It might have been tweaked and perfected for the types of images that it used as demo images. It's quite possible your images are different enough that the algorithm does not work for them. You might have to adapt the algorithm or use a different one.
sara
sara 2014 年 9 月 24 日
thank you,i also find 3 more mfile for extrema detection here,they work,but they only give me hundreds of numbers.i want something to show corners in the image,now i used harris corner detection and changed the selectstrongest until i find extrema corners,can i find the minimum or maximum corner among corners detected by harris?in each labeled image it detects some corners and i want to detect the one which is horizontaly min or max?thank you

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGeometric Transformation and Image Registration についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by