# Digital Image Processing
:::info
:bulb:
:::
## 20231108 W91108 W9
## 20231106 W9
## 20231101 W8
:::info
quiz
:::
## 20231030 W8
## 20231025 W7
## 20231018 W6
## 20231016 W6
## 20231011 W5
### Smoothing filter
* smothing filters are used for
* blurring
* noise reduction
:::info
how to quantize the performance of a filter?
* SNR: Signal Noise Ratio
* $SNR = \log10 \frac {P.signal}{P.noise}$
:::
#### box kernal smoothing filter
* with $kernal = 3$
* $\frac{1}{9} \cdot\begin{bmatrix} 1&1&1\\ 1&1&1\\ 1&1&1 \end{bmatrix}$
* which will result one pixel be the mean of itself and its 8 neighborhood
* thus the difference between two neighboring pixels will become less
* image will be visually smoother and blur, and noiseless
:::info
how to define a kernal size
* the closest number *larger* than $6 * \sigma$
* since $6 * \sigma$ covering $99 \%$ of data in the Normal Distribution Model/ Gaussian Distribution Model
:::
:::warning
unfinished
:::
#### padding techniques
* zero padding
* mirror padding: mirrow the inside pixel
* replicate padding: copy the border
:::warning
unfinished
:::
#### usage of major filters
* LPF: blur the border
* HPF: enhance the border
:::warning
unfinished
:::
[havn't finish from](https://youtu.be/wkk9wH2F4bc?feature=shared&t=2362)
## 20231004 W4
### [Introduce Correlation& Convolution](https://zhuanlan.zhihu.com/p/33194385)
#### convolution
* general mask
* processing with dot prodoct

#### correlation
* an upside down& left right flipped convolution mask
* processing with star π prodoct as well

#### comparison of two
| Convolution | Method | Correlation |
| ----------- | ------ | ----------- |
| Y | Conmmutative δΊ€ζεΎ | N |
| Y | Associative η΅εεΎ | N |
| Y | Distributive ει εΎ | Y |
:::info
* Conmmutative:
* $a* b = b* a$
* Associative:
* $a* (b* c) = (a* b)* c$
* Distributive:
* $a* (b+ c) = a* b+ a* c$
:::
## 20231002 W4
### histogram equalization
[a more easy way to explaine](https://jason-chen-1992.weebly.com/home/-histogram-equalization)
:::danger
* sleeping
:::
## 20230925 W3
### Chapter 2
####
:::info
* .* : a MATLAB operator to do multiply element-wise.
* unlike mathmetic operator $*$, the elements of answer matrix should be the combinaion of multiple elements from original two matrix, $.*$ only multiply the elements from original two matrix of the same position.
* ROI: region of interest, frequently used in masking
:::
#### complimentary of not binary image
* let A(x, y, z)
## 20230920 W2
### Chapter 2
#### Connect Component
## 20230913 W1
### Chapter 1
#### typcal image processing system

#### REQUIREMENTS for Image Acquisition
1. band-limited
* since we can not save infinity digital data
2. sampling rate shout be equal or larger than the full range of data
:::info
**Sampling Theory**
:::
#### ?
Level 0
Level 1
* image to image
Level 2
* to recognize some feature from images
Level 3
* to label a image