関数または変数 'uipane1' が認識されません。

4 ビュー (過去 30 日間)
蓮 出越
蓮 出越 2022 年 7 月 20 日
回答済み: Hernia Baby 2022 年 7 月 20 日
% Horn-Schunck法を使用したオプティカルフロー推定
% ビデオの読み込み
vidReader = VideoReader('visiontraffic.avi','CurrentTime',11);
% オプティカルフロー推定法の定義
opticFlow = opticalFlowHS;
% オプティカルフローの可視化
h = figure;
movegui(h);
hViewPane1 = uipane1(h,'Position',[0 0 1 1],'Title','Plot of Optical Flow Vectors');
hPlot = axes(hviewPane1);
% グレースケールイメージに変換
while hasFrame(vidReader)
frameRGB = readFrame(vidReader);
frameGray = im2gray(frameRGB);
flow = estimateFlow(opticFlow,frameGray);
imshow(frameRGB)
hold on
plot(flow,'DecimationFactor',[5 5],'ScaleFactor',60,'Parent',hPlot);
hold off
pause(10^-3)
end
オプティカルフローを求めるコードになりますが、
関数または変数 'uipane1' が認識されません。
エラー: HornSchunckmethod (行 11)
hViewPane1 = uipane1(h,'Position',[0 0 1 1],'Title','Plot of Optical Flow Vectors');
というエラーが表示されます。改善方法を教えてください。よろしくお願いします。

採用された回答

Hernia Baby
Hernia Baby 2022 年 7 月 20 日
おそらくタイポかと思います。uipanelではないでしょうか?
自作の関数の場合はPathが通っていません。

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!