Main

Focus stacking and image stitching

| Wed, Dec 02, 2015, 10:54 AM



Main

Inspired by Manu’s previous post regarding focus stacking (https://microcosmos.foldscope.com/?p=7830), I decided to try out the technique myself. Since I was testing a focus locking prototype of the Foldscope, it was very easy for me to progress through a series of focal lengths. For my first attempt, I imaged the remnants of a bryozoan colony that had grown on a blade of marine algae that I found on the beach. Apologies in advance, I forgot to take a macroscopic picture of the algae and bryozoans. Bryozoans are tiny colonial invertebrates, and these particular ones happen to be epiphytes that settle and grow on top of algal blades.

20151121_211414

Above is an image of the bryozoan colony. Each animal in the colony lives in its own individual chamber, and it feeds by extending its tentacles into flow. Although the animals are long-gone, the chambers within the rigid exoskeleton remain. Since the exoskeleton was 3-dimensional in nature, I thought it would be the perfect candidate for focus stacking.

bryozoanFocusStack

Here is the result of stacking 8 images together in Photoshop (see http://petapixel.com/2014/09/07/tutorial-easily-focus-stack-using-photoshop-feature-probably-didnt-know/). I must admit, the results are amazing. You can see a high level of detail across virtually the entire field of view. I am guessing that the tentacles would have emerged from the circular openings on the right side of each chamber.

Seeinng these promising results,  I decided to take things a step further: imaging an entire organism that was larger than the Foldscope’s field of view by stitching multiple images together. Previous attempts at stitching multiple images together proved unfruitful, largely because only part of each image was in focus. I had hoped that focus stacking would alleviate this issue. For this experiment, I decided to use another marine animal: a barnacle that I had removed from its home (see https://microcosmos.foldscope.com/?p=6788). Below are a couple of images of the critter (no focus stacking yet).

20151122_111221 20151122_111342

As you can see, it is nowhere near fitting within the field of view. In fact, this particular barnacle ended up spanning about 8 fields of view. In total, I took about 30 pictures of the barnacle at various places of its body and at different focal lengths. I created a single focus stacked image for each particular field of view, then combined these new images by aligning them in photoshop (using the auto-align function). The result turned out even better than I expected!

barnacle_stitched

Though there are blurry regions, the overall image is very sharply in focus. This is my first time using the Foldscope to capture the entirety of an organism that is several millimeters long. Hopefully in the future I can find a freeware solution to create images such as these, perhaps through a program such as GIMP or ImageJ. I am very much open to ideas and suggestions!

Here are a couple of bonus images using the same technique. First is a bee leg:

IMG_20151127_144300

Second, here is the compound lens of the same bee’s eye:

https://www.instagram.com/p/-mwe8cJsSz/



Locations



Categories

Type of Sample
unknown
Foldscope Lens Magnification
140x

Comments