diff --git a/.jekyll-metadata b/.jekyll-metadata deleted file mode 100644 index 87aa8da7bf02535bee9c120ea15735dccd3771cf..0000000000000000000000000000000000000000 Binary files a/.jekyll-metadata and /dev/null differ diff --git a/_config.yml b/_config.yml index 8cf99c1eb469a359dbed3bdf5a751ae438a0dd14..c0c62afd8d97e7b2c82cb3437bd03219d68fe6d1 100644 --- a/_config.yml +++ b/_config.yml @@ -1,4 +1,4 @@ -title: MAS 865.24 - computer vision and scanning +title: MAS 865.24 - computer vision description: A starter template for a Jeykll site using the Just the Docs theme! theme: just-the-docs color_scheme: light diff --git a/topics/01_cameras/img/ccd.png b/topics/01_cameras/img/ccd.png new file mode 100644 index 0000000000000000000000000000000000000000..3444d9f10b879d167b48f99aef80a274a5cdf899 Binary files /dev/null and b/topics/01_cameras/img/ccd.png differ diff --git a/topics/01_cameras/img/cmos_pixels.png b/topics/01_cameras/img/cmos_pixels.png new file mode 100644 index 0000000000000000000000000000000000000000..59ea8fd8ed45bac8a924f38f3badea329f51f78f Binary files /dev/null and b/topics/01_cameras/img/cmos_pixels.png differ diff --git a/topics/01_cameras/img/foveon.png b/topics/01_cameras/img/foveon.png new file mode 100644 index 0000000000000000000000000000000000000000..d145f10de4709aa08cf8cf59ba0bf000aca28487 Binary files /dev/null and b/topics/01_cameras/img/foveon.png differ diff --git a/topics/01_cameras/img/leaf_shutter.png b/topics/01_cameras/img/leaf_shutter.png new file mode 100644 index 0000000000000000000000000000000000000000..da761b5dad4351bcc5dd15b6082fa53fae3713be Binary files /dev/null and b/topics/01_cameras/img/leaf_shutter.png differ diff --git a/topics/01_cameras/img/lens_distortion.png b/topics/01_cameras/img/lens_distortion.png index d5978ae3911cb216fba82aed8eb365b8a638b934..fd3786d5454e33325a43cbd94f75aad478e3ef3f 100644 Binary files a/topics/01_cameras/img/lens_distortion.png and b/topics/01_cameras/img/lens_distortion.png differ diff --git a/topics/01_cameras/img/pinhole.png b/topics/01_cameras/img/pinhole.png index 337cc961f42cf85003ea8a5438c49bef62830a2c..569d5017a8801d952c741fb1c6745d7cd46b9e87 100644 Binary files a/topics/01_cameras/img/pinhole.png and b/topics/01_cameras/img/pinhole.png differ diff --git a/topics/01_cameras/img/pinhole_lens.png b/topics/01_cameras/img/pinhole_lens.png index b650aeb11583ec08f9955b238f2ae98c1c876d29..a5220d425235dde0045696711a64e54a693531d6 100644 Binary files a/topics/01_cameras/img/pinhole_lens.png and b/topics/01_cameras/img/pinhole_lens.png differ diff --git a/topics/01_cameras/img/sensor.jpg b/topics/01_cameras/img/sensor.jpg new file mode 100644 index 0000000000000000000000000000000000000000..18e49bbc9b768a577fb97cef417c9b9bff5adf80 Binary files /dev/null and b/topics/01_cameras/img/sensor.jpg differ diff --git a/topics/01_cameras/index.md b/topics/01_cameras/index.md index 390ddbaeb6a450fa493b1c8fe50e6978615f205c..9c25b644235f018ce174cacf0b5f91b8eddcbbfb 100644 --- a/topics/01_cameras/index.md +++ b/topics/01_cameras/index.md @@ -129,12 +129,17 @@ It is common to choose the $z$ axis to point **toward** the scene, and the $y$ a ## Technologies + +*source: https://www.automate.org/vision/blogs/ccd-vs-cmos-image-sensors-which-are-better* + We'll focus on the two main families of digital sensors: CCD and CMOS. In both families, the actual light sensing is based on the electron-hole pair generation in MOS devices. ### CCD + + In CCD sensors, the generated charges in the photodiodes are accumulated under a potential well, controlled by a voltage on the gate. Charges can be moved to a neighboring pixel by performing a specific sequence on the gates. By shifting the charges all the way to the edge of the sensor, individual pixel values can be readout sequentially. @@ -143,11 +148,40 @@ Advantage of CCD sensors include the simplicity of their design, and the large s ### CMOS -## Bayer filter + +*source: Coath, Rebecca, et al. "Advanced pixel architectures for scientific image sensors." (2009).* + +## color + +The most common way of capturing color images with a digital sensor is a Bayer filter, interleaving color filters in front of pixels in this pattern:  +*source: https://en.wikipedia.org/wiki/Bayer_filter* + +For every red or blue pixel, there are two green ones. This is to mimic the human eye's increased sensitivity to green light. + +Without getting into the hellscape of color spaces, here is a standard formula to convert between RGB (red, green, blue) and YUV (luminance, chrominance) values: + +$$ +\begin{bmatrix} +Y\\ +U\\ +V +\end{bmatrix} += +\begin{bmatrix} +0.299 & 0.587 & 0.114\\ +-0.14713 & -0.28886 & 0.436\\ +0.615 & -0.51499 & -0.10001 +\end{bmatrix} +\begin{bmatrix} +R\\ +G\\ +B +\end{bmatrix} +$$ -<!-- source:https://en.wikipedia.org/wiki/Bayer_filter --> +The luminance $Y$ can be thought of as a grayscale value. The coefficients in the matrix show that green values have twice the impact of red ones, and that blue values are the weakest. # Lens @@ -159,23 +193,34 @@ Advantage of CCD sensors include the simplicity of their design, and the large s # Aperture +An aperture gives control over the amount of light entering the lens. It's effectively equivalent to having a smaller lens diameter. +  +*source: https://www.adorama.com/alc/camera-basics-aperture/* + +Aperture values are often expressed as f-numbers, defined as a ratio between the aperture diameter and the focal length of the lens: -<!-- source:https://www.adorama.com/alc/camera-basics-aperture/ --> +$$f_{\rm number} = \frac{d_{\rm aperture}}{f}$$ + +This quantity is directly related to the light density reaching the sensor. # Shutter ## Mechanical shutter  +*source: https://www.youtube.com/watch?v=CmjeCchGRQo* -<!-- source:https://www.youtube.com/watch?v=CmjeCchGRQo --> + +*source: Hasselblad* ## Electronic shutter # Photography basics -## The 3 parameters +## The three parameters + +Photography mainly comes down to setting three parameters on the camera: - Aperture - Shutter speed