Skip to content

Demo for using C# to simulate the brightness of grating and perform the noise processing

Notifications You must be signed in to change notification settings

tocalai/Demo-Image-Processing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demo image processing

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 sample2[/Before processing/] smaple2-process[/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

About

Demo for using C# to simulate the brightness of grating and perform the noise processing

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages