Editing
Projective Geometry
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== <span style="color: #FFFFFF;">Applying</span> == '''Modeling 'The Projective Matrix' (How a 3D point becomes a 2D Pixel):''' <syntaxhighlight lang="python"> import numpy as np def project_point(point_3d, focal_length): """ Simplified Pin-hole camera projection. [x, y, z] -> [f*x/z, f*y/z] """ x, y, z = point_3d # Avoid division by zero if z == 0: return (0, 0) # Projection math screen_x = (focal_length * x) / z screen_y = (focal_length * y) / z return (round(screen_x, 2), round(screen_y, 2)) # A point 10 units away print(f"Point at distance 10: {project_point([2, 2, 10], 5)}") # A point 20 units away (appears smaller/closer to center) print(f"Point at distance 20: {project_point([2, 2, 20], 5)}") </syntaxhighlight> ; Projective Landmarks : '''The Renaissance''' β Brunelleschi and Alberti's discovery of linear perspective, which changed art from "flat" to "deep." : '''Desargues's Theorem''' β A fundamental proof about triangles that is only "visible" if you look at them from a 3D perspective. : '''Photogrammetry''' β The science of using 2D photos to reconstruct a 3D model of a building or a person. : '''Computer Vision''' β How a self-driving car "knows" how far away a stop sign is just by looking at a 2D image. </div> <div style="background-color: #8B4500; color: #FFFFFF; padding: 20px; border-radius: 8px; margin-bottom: 15px;">
Summary:
Please note that all contributions to BloomWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
BloomWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information