필터 지우기
필터 지우기

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

조회 수: 4 (최근 30일)
敬
2023년 7월 7일
댓글: 2023년 7월 7일
%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>>

채택된 답변

Shunichi Kusano
Shunichi Kusano 2023년 7월 7일
大文字でFASTにするとどうなりますでしょうか。
  댓글 수: 1
敬
2023년 7월 7일
ありがとうございます。単純ミスでした。

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 特徴の検出と抽出에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!