Demo 1-1
- Drawing one-dimensional grating
- Brightness of grating changed from 0-255 along with X-axis
Demo 1-2
- Drawing two-dimensional grating
- Brightness of grating changed from 0-255 along with X-axis and Y-axis (with Cosine wave)
Demo 2-1
- Detect the noise pixel by pixel, using the average brightness of surrounding pixel(top, down, left, right) to determine the noise
- Using the average brightness to replace the original(target) brightness if the target considerate as noise [/Before processing/] [/After processing]
Demo 2-2
- Detect the noise pixel by pixel, using the average brightness of surrounding pixel(top, down, left, right, topOfLeft, topOfRight, downOfLeft, downOfRight, itself) to determine the noise
- Using the average brightness(exclude the most two higher and lower pixel) to replace the original(target) brightness if the target considerate as noise
Pros and Corns for Demo 2-1 & Demo 2-2
- Demo 2-2 method would cost more CPU computing and memory usage resources than Demo 2-1
- Demo 2-2 eliminate the most two higher and lower pixel may reduce the extreme value to affect the noise replacement
Reference link Cosine wave Moiré pattern Brightness of color RGB