Simulate real camera capturing process

조회 수: 4 (최근 30일)
Humam Helfawi
Humam Helfawi 2019년 2월 9일
답변: George Abrahams 2024년 2월 10일
Hi,
I have an 3D object (stl, ply...). I want to simulate camera 2d capturing of the the object from spesefic perspective. I need to try this with variouse lenses (focal lengthes) and vaouise sensors (width, height, resolution). Is there any ready toolbox for this in MATALB?
Thansk!

답변 (2개)

Image Analyst
Image Analyst 2019년 2월 9일
Try view() to change your camera viewpoint, followed by getimage() or getframe() to extract the newly rendered image.
  댓글 수: 2
Humam Helfawi
Humam Helfawi 2019년 2월 27일
Thanks for your answer! I ended up using camva, campos, camtarget, and https://github.com/altmany/export_fig library
Sandeep
Sandeep 2020년 3월 9일
Can you please let us know the detailed procedure of using camva, campos and camtarget and that library for simulating real camera capturing process ?

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


George Abrahams
George Abrahams 2024년 2월 10일
For anyone else landing on this page with a similar question, the issue with getframe is that you can't control the sensor resolution. So, if that's important to you, the only approach using the MATLAB camera is to do something hacky, like varying the size of the figure and/or the DPI of the output with exportgraphics until you get the resolution that you need.
The alternative is to use a renderer from File Exchange. I suggest my 3D rendering toolbox, if you don't need lighting, or possibly Patch Software Render, although I have no personal experience with it.

카테고리

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