How can I rotate a parabola.

  • Thread starter Thread starter RusselMorty
  • Start date Start date
  • Tags Tags
    Parabola Rotate
Click For Summary
SUMMARY

This discussion focuses on the mathematical technique for rotating a parabola to create a wavy distortion effect in images, similar to CAPTCHA text. The original parabola is defined by the function y = t² and x = t in parametric form. To achieve rotation, the new coordinates are calculated using the equations x'(t) = x(t) cos(θ) - y(t) sin(θ) and y'(t) = y(t) cos(θ) + x(t) sin(θ), where θ represents the angle of rotation. This method provides a straightforward approach to manipulating parabolic shapes for image processing.

PREREQUISITES
  • Understanding of parametric equations
  • Basic knowledge of trigonometric functions
  • Familiarity with image distortion techniques
  • Mathematical concepts of rotation in a Cartesian plane
NEXT STEPS
  • Research "Parametric equations in image processing"
  • Learn about "Trigonometric transformations in graphics"
  • Explore "Image distortion techniques for CAPTCHA generation"
  • Study "Mathematical rotation of shapes in 2D space"
USEFUL FOR

This discussion is beneficial for graphic designers, software developers working on image processing, and mathematicians interested in geometric transformations.

RusselMorty
Messages
4
Reaction score
0
How can I "rotate" a parabola.

I want to take an image and make it kind of wavy to distort it (like in a capcha form the letters are distorted sometimes with a wave) . So i figure that I could translate the pixels along a parabola. So the function where y=X^{2} would make the image curve downwards. If i want to curve it in other directions I would need to somehow rotate that parabola. I am not an expert at math so I have no idea how to do this. I am sure it is a simple thing but It would really help me a lot. Thanks for any advice.
 
Mathematics news on Phys.org


Write the parabola in parametric form:

y = t^2, \quad x = t

Pick an angle \theta to rotate by. The general equations governing the new coordinates are

x&#039;(t) = x(t) \cos \theta - y(t) \sin \theta \\<br /> y&#039;(t) = y(t) \cos \theta + x(t) \sin \theta

(It's not strictly necessary to write in parametric, but it's usually easy to plot that way rather than go back and resolve for y(x)).
 


Thank you very much for your answer. It also gives me some more insight on how to rotate other things too. It will be very helpful.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 22 ·
Replies
22
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 14 ·
Replies
14
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 16 ·
Replies
16
Views
4K
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K