필터 지우기
필터 지우기

How do you control both Horizontal and Vertical view angles in MATLAB's 3D viewer?

조회 수: 3 (최근 30일)
I'm working on a simulation in which I need to simulate what a camera will see given a specific position and attitude. I've been able to do this with all the built in features using things like campos() and what not. However now I need to adjust MATLAB's "camera" to see with the same field of view as the one I'm trying to simulate. camva() almost does the trick, however it can only adjust for one angle, thus producing a "square" field of view.
I need to adjust both the camera's vertical and horizontal view angles (as the camera I am trying to simulate has a horizontal field of view of 120 degrees, and a vertical field of view of 30 degrees). Is this possible and how might I go about doing this?
  댓글 수: 1
Gaurav Ahuja
Gaurav Ahuja 2017년 5월 18일
You need to figure out if you would want to move the target point around the camera or the camera around the target point. other than what you have already used, I think the following two functions should help you achieve your goal.
view - You specify the viewpoint in terms of azimuth and elevation (https://www.mathworks.com/help/releases/R2016b/matlab/ref/view.html)
campan - Rotate camera target around camera position (https://www.mathworks.com/help/releases/R2016b/matlab/ref/campan.html)

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Camera Views에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by