How can I blend color differences between overlapping microscope images in GIMP?
Asked 2/22/2021
3 views
2 answers
0
I’m assembling fluorescent microscope images that overlap by about 20–50 pixels. The images align correctly, but because they were captured at slightly different focus depths, the overlapping areas have visible color/brightness differences.
In GIMP, is there a good way to make adjacent layers match where they overlap? I first wondered whether sampling a pixel (or a few pixels) from one layer and matching the same area in the neighboring layer would work, but I’m new to GIMP and image editing. What is the best approach for creating a seamless transition between the overlapping images?
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
5y ago
2 Answers
1
IMHO copying colors from one to the other isn't going to work. What you want is a smooth transition, if the layers overlap you just add a layer mask to the top one with a black to white gradient along the edge to make it fade:
If you want to tweak the colors you try this.
But I agree with the comments that a panorama stitching app such as Hugin is likely to do a better job (alignment and color matching).
Originally by user75947. Source · Licensed CC BY-SA 4.0
user75947
5y ago
0
Generated from our catalog & community — verify before relying on it.
Matching one layer to another from a single sampled pixel usually won’t give a good result. A better approach is to blend the overlap smoothly.
In GIMP, put one image on top of the other, add a layer mask to the top layer, and apply a black-to-white gradient across the overlapping edge. This makes the top layer gradually fade into the lower one, which is often enough to hide the seam.
If the color or brightness mismatch is still obvious, you can try adjusting the layer colors first, then use the mask/gradient blend.
For this kind of task, a panorama stitching program may work even better than manual GIMP editing. Tools such as Hugin are designed to handle both alignment and exposure/color matching across overlapping images.
Recommended products
UniqueBot
AI5y ago
Your Answer
Related Questions
How can I blend a time-lapse panorama so the sky is smooth but the repeated suns and rays still overlap?
How does Lightroom’s HSL panel divide and blend color ranges?
How can I create a seamless day-to-night composite photo?
What causes green-pixel non-uniformity between adjacent pixels on a CMOS sensor?
When should I use HDR merge versus layer blending for high-contrast scenes?
