Spaces:
Sleeping
Sleeping
Update pages/7_Unstructured_data.py
Browse files- pages/7_Unstructured_data.py +16 -0
pages/7_Unstructured_data.py
CHANGED
|
@@ -476,6 +476,22 @@ if file_type == "IMAGE":
|
|
| 476 |
cv2.waitKey()
|
| 477 |
cv2.destroyAllWindows()
|
| 478 |
''')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 479 |
|
| 480 |
|
| 481 |
|
|
|
|
| 476 |
cv2.waitKey()
|
| 477 |
cv2.destroyAllWindows()
|
| 478 |
''')
|
| 479 |
+
|
| 480 |
+
st.subheader('**Rotation**')
|
| 481 |
+
st.markdown('''
|
| 482 |
+
- Rotation is a affine transformation matrix which rotates the image at one angle
|
| 483 |
+
- Formula:
|
| 484 |
+
$$
|
| 485 |
+
I(x,y) \cdot Rotation matrix = I'(x',y') \\
|
| 486 |
+
x' = x \cdot \cos(θ) - y \cdot \sin(θ) \\
|
| 487 |
+
y' = x \cdot \sin(θ) + y \cdot \cos(θ)
|
| 488 |
+
$$
|
| 489 |
+
- θ is angle between image pixel and x-axis
|
| 490 |
+
- always rotation is in anti-clockwise direction when angle is +ve
|
| 491 |
+
- always rotation is in clockwise direction when angle is -ve
|
| 492 |
+
- cos(θ) is anti-clockwise
|
| 493 |
+
- Angle is between choosen pixel values
|
| 494 |
+
''')
|
| 495 |
|
| 496 |
|
| 497 |
|