関数detectFa​stfeatures​を使って画像の特徴量​抽出をやってますが、​下記のようにエラーが​できます。対処法教え​ていただきたく

2 views (last 30 days)
敬
on 7 Jul 2023
Commented: on 7 Jul 2023
%FEP動画のフレームを読み込み、グレースケール変換
vfep = VideoReader("C:\Users\user\MATLAB Drive\Examples\Ultrasonic_analysis\4852fep_20230512.avi");
%フィルターの生成
%h= fspecial("average",5);
%h1=fspecial("laplacian");
%h2= fspecial('sobel');
%h3=fspecial("gaussian");
%h4=fspecial("prewitt");
%各フレームをグレースケールに変換し、トリミングしながらフィルター処理していく
k=1;
%k=12;
%k=24;
while hasFrame(vfep)
mvfep(:,:,:,k) = readFrame(vfep);% データ読み込み
gray_mvfep(:,:,1,k) = im2gray(mvfep(:,:,:,k));% グレースケールに変換
%rectを定義して画像のトリミング
rect=images.spatialref.Rectangle([40 890.0],[210.0 450.0]) % xの下限と上限 yの下限と上限
cuttedimage_fep(:,:,1,k)=imcrop(gray_mvfep(:,:,1,k),rect) % 画像トリミング
%特徴量抽出 Fastアルゴリズム
Im_fep=double(cuttedimage_fep(:,:,1,k)/255.0)
detectfeatured_fep=detectFastFeatures(Im_fep); % 特徴量抽出
Im2_fep = insertMaker(Im_fep,detectfeatured_fep,"circle")
%[featues,valid_corners]=extractFeatures(Im_fep,detectfeatured_fep);
figure
imshow(Im2_fep);
hold on
plot(valid_corners);
imtool("Im_fep2",'InitialMagnification','fit');
k=k+1;
end
%figure
%implay(gray_mvfep,vfep.FrameRate*vfep.Duration); % グレースケール変換済データを表示
%implay( sobelfilteredfep,vfep.FrameRate*vfep.Duration); % グレースケール変換・フィルター処理済データを表示
(下記エラー)
関数 'detectFastFeatures' (タイプ'double' の入力引数) が未定義です。
エラー: FastAlgolithum_20230625 (行 21)
detectfeatured_fep=detectFastFeatures(Im_fep); % 特徴量抽出
K>>

Accepted Answer

Shunichi Kusano
Shunichi Kusano on 7 Jul 2023
大文字でFASTにするとどうなりますでしょうか。
  1 Comment
敬
on 7 Jul 2023
ありがとうございます。単純ミスでした。

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!