Filter löschen
Filter löschen

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

4 Ansichten (letzte 30 Tage)
敬
am 7 Jul. 2023
Kommentiert: am 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>>

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!