detecting features on a big image object

1 回表示 (過去 30 日間)
Miklós Förster
Miklós Förster 2020 年 11 月 15 日
コメント済み: Ameer Hamza 2020 年 11 月 16 日
Hi,
I would like to ask some help for detecting SURF features on a big image object.
I use MATLAB2020b.
Code:
% Creat a big image object
bigIm = bigimage('my_geotiff_image');
% Convert it to grayscale
bigIm = getFullLevel(bigIm,bigIm.CoarsestResolutionLevel);
bigIm = rgb2gray(bigIm);
% Trying feature detection
refImPoints = apply(bigIm,1,@(block)detectSURFFeatures(block));
Error:
Undefined function 'apply' for input arguments of type 'function_handle'.
I would be greatful if we solve the problem:)

回答 (1 件)

Ameer Hamza
Ameer Hamza 2020 年 11 月 15 日
編集済み: Ameer Hamza 2020 年 11 月 15 日
The input to apply() must also be a bigImage, and there are also some conditions on how to define the function handle as stated in the documentation: https://www.mathworks.com/help/images/ref/bigimage.apply.html#mw_4a662881-8964-426a-b268-1ad3b09e911d. Try following code
bigIm = bigimage('my_geotiff_image');
% Convert it to grayscale
bigIm = getFullLevel(bigIm,bigIm.CoarsestResolutionLevel);
bigIm = rgb2gray(bigIm);
bigIm = bigimage(bigIm);
% Trying feature detection
refImPoints = apply(bigIm,1,@(block){detectSURFFeatures(block)});
  2 件のコメント
Miklós Förster
Miklós Förster 2020 年 11 月 15 日
Thank you a lot for your quick answer, it works!
Ameer Hamza
Ameer Hamza 2020 年 11 月 16 日
I am glad to be of help!!!

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

カテゴリ

Help Center および File ExchangeImage Processing and Computer Vision についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by