Image Formation and Filtering
Date: September 12, 2024
Lecture Duration: 1.5 hours
Topic Overview:
This lecture introduced the fundamental concepts of image formation and filtering, with hands-on coding demonstrations in Python.
1. Introduction to Image Formation
We began with an overview of image formation concepts, including the pinhole camera model. The pinhole camera projection was visualized using Python:
Code Snippet: Pinhole Camera Model
```python import numpy as np import matplotlib.pyplot as plt from ipywidgets import interact, IntSlider
Define pinhole projection function
def pinhole_camera_projection(X, Y, Z, focal_length): x_projected = (focal_length * X) / Z y_projected = (focal_length * Y) / Z return x_projected, y_projected
Visualize projections
interact(visualize_pinhole_projection, focal_length=IntSlider(min=5, max=30, step=1, value=5))