Duanxx image processing learning: perspective transformation (III)

Source: Internet
Author: User

Our common coordinate system is the Cartesian coordinate system, that is, the world coordinate system mentioned in duanxx image processing learning: perspective transformation (I.


From the perspective of observation, it is the camera coordinate system mentioned in duanxx image processing learning: perspective transformation (I.


In the observer coordinate system (camera coordinate system), we generally use the observer (or viewpoint) as the origin of the observer coordinate system, and the orientation of the observation point to the object is the Z axis, the orientation toward the left and perpendicular to the Z axis is the X axis, and the vertical direction toward the X axis and Y axis is the Y axis to form the observer coordinate system.


All the operations in this article are based on the Conversion principle in duanxx image processing learning: 3D image transformation and homogeneous coordinate representation. Therefore, this article only introduces the relevant concepts, refer to the above for the main principles.



Conversion

In general, point P (x, y, z) in the world coordinate system is transformed into point Q (x *, y *, z *) in the observed coordinate system *) the process is called "visual transformation ".


The visual transformation is the first operation in camera projection. It mainly converts the world coordinate system, that is, the image information of our real world, to the camera coordinate system, then the projection can be completed in the camera coordinate system.



Forward Translation

If the origin of the camera coordinate system is not the same as that of the world coordinate system, the first step is to make a translation and put the origin of the two coordinate systems together.


For example, in the following coordinate system model, the origin of the camera coordinate system is (x0, y0, z0)




We can use duanxx's image processing and learning: image transformation 3D transformation and its homogeneous coordinate representation to move the camera coordinate system first to the world coordinate system.





Forward rotation

Here is an example of rotating an angle around the Y axis.




From duanxx's image processing and learning: 3D image transformation and homogeneous coordinate representation, we can easily know that the transformation matrix here is the following matrix, and others can be like this.




Duanxx image processing learning: perspective transformation (III)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.