Basic image transformation of image tilt correction equation

Source: Internet
Author: User
Tags asin

Basic image transformation of image tilt correction equation

three basic image transformation matrices are

1Translation Transformation Matrix

2Scaling Matrix

           

3Rotation transformation Matrix

the advantage of using matrix to express matrix rotation is that the expression is more concise,more convenient for further transformations.For example, a transform that has a translation transformation,and a zoom transform .,and a rotating transformation .,then the matrix is used to represent these transformation combinations,the equivalent of a combination of matrix multiplication action,Finally, it can be formed into a matrix.

How did the rotation transformation matrix come about??proof as follows

(x, y) a point in the original image

(x ', y ') a point in the post-rotation diagram

a angle of rotation

change x, y to the sine cosine representation

x = RCOSB

y = rsinb

Remember R =Bto beASIN (X/R)  (ASINrepresents the inverse cosine)

the x ' = RCOs (b + a), y ' = Rsin (b+a)

the triangle and the difference formula are used here .

X ' = RCOs (b+a) = RCOSACOSB–RSINASINB = Xcosa–ysina

Y ' = Rsin (b+a) = RSINACOSB + Rsinbcosa = Xsina + ycosa

the way to the rectangle is the conclusion .

the conclusion is not very beautiful..put(x, Y)converted to (RCOSB, RSINB)and the difference formula is the key.

Basic image transformation of image tilt correction equation

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.