Problem stitching images

Here you can discuss topics such as focus stacking, stitching and other techniques that relate to the processing of micrographs.
Post Reply
Message
Author
nucleoPhil
Posts: 5
Joined: Thu Dec 13, 2018 7:30 am

Problem stitching images

#1 Post by nucleoPhil » Sat Dec 22, 2018 1:54 pm

I am new to this so there is probably a simple solution to this.

I am trying to stitch together two focus stacked images but at the area where the two images are blended together the two images are offset from each other and creates a double vision effect.
I'm guessing it has to do with the lens distortion or maybe from the focus stacking? Is there a way to correct for this somehow?


Original (focus stacked)Images:
ImageImage

Stitched:
Image


I am using ZereneStacker with PMax for focus stacking and ImageJ with Dr. Stephan Preibisch's image stitching plugin for the stitching (Linear blending).
I would use ICE but I am on Mac OS X.

I have tried different stitching algorithms but the linear blending gives the best results.

MichaelG.
Posts: 1495
Joined: Mon Apr 10, 2017 8:24 am
Location: NorthWest England

Re: Problem stitching images

#2 Post by MichaelG. » Sat Dec 22, 2018 2:29 pm

Very interesting, Phil ... and frustrating, I'm sure !!

It appears that the top 'head' has registered correctly, but the little one has not.
... That suggests there must be a difference in scale between the two source images.

Mmm :?:

MichaelG.
Too many 'projects'

User avatar
75RR
Posts: 6261
Joined: Sun Oct 12, 2014 2:34 am
Location: Estepona

Re: Problem stitching images

#3 Post by 75RR » Sat Dec 22, 2018 3:32 pm

Perhaps the background is throwing the software off. You could try giving both a non distinctive background.
Zeiss Standard WL (somewhat fashion challenged) & Wild M8
Olympus E-P2 (Micro Four Thirds Camera)

nucleoPhil
Posts: 5
Joined: Thu Dec 13, 2018 7:30 am

Re: Problem stitching images

#4 Post by nucleoPhil » Sat Dec 22, 2018 4:13 pm

Thanks for the replies.
I tried your idea 75RR by quickly editing out the background of both images and stitching. This is the result:

Image


Still does not seem to want to align the images properly.
I am think Michael may be right about the scaling issue. Not sure what could be causing that though :|

User avatar
75RR
Posts: 6261
Joined: Sun Oct 12, 2014 2:34 am
Location: Estepona

Re: Problem stitching images

#5 Post by 75RR » Sat Dec 22, 2018 4:31 pm

Was worth a try.

Had another look at both photos. Did a manual overlap.

Think the problem is that you changed the angle of the shot i.e. moved the camera on another plane.

In other words, if you had lowered the camera on the same plane to capture the rest of the subject rather than angling it, you probably would have been ok.

Note also that in order to stitch you need at least a 40% image overlap.
Zeiss Standard WL (somewhat fashion challenged) & Wild M8
Olympus E-P2 (Micro Four Thirds Camera)

nucleoPhil
Posts: 5
Joined: Thu Dec 13, 2018 7:30 am

Re: Problem stitching images

#6 Post by nucleoPhil » Sat Dec 22, 2018 4:52 pm

I also thought that might have been what happened but when repeating the process for another pair of images I get similar results.

Image

I guess it's possible that I had bumped the camera each time I translated the view but it seems unlikely. The camera is pretty secure.
Maybe there is another free to use image stitching program that I could try and compare results?

nucleoPhil
Posts: 5
Joined: Thu Dec 13, 2018 7:30 am

Re: Problem stitching images

#7 Post by nucleoPhil » Sat Dec 22, 2018 4:54 pm

Wait, I just read that last statement of yours.
I did not realize 40% overlap was required. That may be my problem!

MichaelG.
Posts: 1495
Joined: Mon Apr 10, 2017 8:24 am
Location: NorthWest England

Re: Problem stitching images

#8 Post by MichaelG. » Sat Dec 22, 2018 6:50 pm

I have just tried a rough comparative measurement, using a 600x600 pixel crop of your two source images, in the opening post.
IMG_2515.jpg
IMG_2515.jpg (52.14 KiB) Viewed 2650 times
IMG_2516.jpg
IMG_2516.jpg (54.3 KiB) Viewed 2650 times
The lower image is [linear measure] about 5% larger than the upper image.

MichaelG.
Too many 'projects'

Post Reply