Overlap a webcam image and a heatmap.
6 ビュー (過去 30 日間)
古いコメントを表示
I have a webcam image "ref2" and I want to overlap the heatmap "pp" over it. In the program I have a video preview coming from a webcam and I have to put a heatmap over it. Can anyone please help me with this?
0 件のコメント
回答 (1 件)
Matlab Pro
2024 年 5 月 27 日
Hi. There is a similar question.
4 件のコメント
DGM
2024 年 5 月 30 日
I'm not sure what your axes setup is. It looks like you're using two overlaid axes, though I'm not sure if those are axes objects or uiaxes objects. I'm guessing uiaxes, since it's an appdesigner thing?
I'm not sure how the preview() tool occupies the parent axes, and whether it's truly necessary to use overlaid axes. I don't have imaq toolbox.
Either way, assuming that it's necessary to overlay axes, it would be necessary to look at the xlim, ylim of the two axes and figure out how to get them to correspond. If your two axes have the same position, and the xlim,ylim of the pcolor() axes are such that they contain the extents of the given xx,yy, then the pcolor() plot should lie atop the preview() image.
I didn't expect you to be using pcolor(). If that's working for you, that's fine. The way pcolor() is used, you're already giving it xdata and ydata in the function call, so it's all explicit. I thought you were doing this in one axes with overlaid objects.
参考
カテゴリ
Help Center および File Exchange で Data Distribution Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!