Mobile app version of vmapp.org
Login or Join
Welton168

: Extract similarities between bunch of image to remove stains on gimp or imagemagick I didn't find clear answer on that: I have some dots and stains on my lens. It's not so visible on some

@Welton168

Posted in: #BackgroundRemoval #Gimp #Imagemagick #ImageProcessing #Images

I didn't find clear answer on that:
I have some dots and stains on my lens. It's not so visible on some pictures but when I take shot at sky or something bright, the image is spoiled by stain and spots.
So the question "Extract similarities between bunch of image to remove stains on gimp or imagemagick"
You see, I want to extract similarities ie : the dots and stain from differents images.

After that when I get my image with only the dots and stains, I can make a substraction on the spoiled images

Thanks for help and advices

edit:
I maybe need to reformulate a bit.
All my pictures are spoiled with smudges.
My Idea was actually to takes (or a bunch of) all these picture to detect what it remains the same and create a picture of that.

This extracted picture will be the smudges only.

Then I can substract it from the spoiled image.
Spot the Idea?

It's like background substraction on video.
Imagine a car park. We want only the the background (said, the landmarks). We take many pictures with some car at random places.
And I beleive there is an algorithm that can extact only the background by creating and image of what remain the same (the soil of the car park)

Imagemagick can do something like that ?
Or another app ?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Welton168

1 Comments

Sorted by latest first Latest Oldest Best

 

@Tiffany317

To always remove stains or dust from the exact same areas of several images the following workflow using Gimp may lead to satisfactory (but not perfect) results.

Obtain despeckle mask


Take an image from an even grey background to reveal artifacts


Source: Wikimedia
Select artifacts (using Select by Color-tool or manually)


The more you select here the more is going to be repaired later.
Convert selection to a path
Save this path as .SVG


Despeckle from mask


Load image to enhance


Load path from above
Convert path to selection


Apply Heal Selection tool


Heal Selection: 10 px | All around | Random
To avoid artifacts from healing (see bottom right) deselect areas from step 3.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme