Extract part of the plane by simulating a camera view

3 ビュー (過去 30 日間)
Lorenzo Aldrighetti
Lorenzo Aldrighetti 2017 年 4 月 27 日
回答済み: Will Nitsch 2017 年 5 月 1 日
Hi to everyone, I'm try to extract a portion of a 3D plane in order to simulate a video camera view.
For example, I have generate a random x,y and z plane (like a ground). I suppose to have a moving camera that face down respect to the plane at a certain height. How i can project the camera view in order to extract only a portion of plane that the camera see, supposing to have a certain focal length? My plane is define with 3 2x2 matrices, I attach an example

回答 (1 件)

Will Nitsch
Will Nitsch 2017 年 5 月 1 日
Since in MATLAB you can know/define a camera object's position, viewing angle and camera target position (for more information on these, see the 'View' section of 'Axes Properties' documentation), you could do a bit of math to determine what data points fall within the 3D-2D projection and then extract them from the data set.
Axes 'View' Properties:
https://www.mathworks.com/help/matlab/ref/axes-properties.html#zmw57dd0e57677
Some more information on imaging geometry that could be useful:

カテゴリ

Help Center および File ExchangeMATLAB Support Package for USB Webcams についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by