Skip to content

Yt-trium/ISVaC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ISVaC

Image Sensor Vacuum Cleaner
A one night (+ one afternoon) project aiming to software remove dirt on my microscope image sensor.

The idea

The idea was that, since the smudges always appear in the same places, it is possible to detect their position automatically (unsupervised learning) from a pool of images and a calculation of variance on pixels of the image. Once the mask is calculated, it should be possible to reconstruct the pixels by interpolation of valid neighbors pixels. To treat the local areas independently of each other, we need to work by connected components.

Results

The computation depend of two parameters :

  • threshold : the threshold of variance to considere the pixel as a dirty pixel.
  • dilatation : the number of time we "dilate" the mask to expand the area we will considere as dirty area.

Masks (threshold / dilatation)

750 / 8 1000 / 4 1000 / 8 1100 / 4
750_8_mask 1000_4_mask 1000_8_mask 1100_4_mask

Example of results with the 4 examples configurations

Before After Mask red highlight
PICT0037 PICT0037_750_8 PICT0051_750_8
PICT0042 PICT0042_1000_4 PICT0042_1000_4
PICT0052 PICT0052_1000_8 PICT0052_1000_8
PICT0051 PICT0051_1100_4 PICT0051_1100_4

About

Image Sensor Vacuum Cleaner

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages