Cyrano
Gold Member
- Joined
- Jun 13, 2015
- Messages
- 350
Photos taken using a microscope typically have an extremely shallow depth of focus. For example, this image of a blade apex, taken with the edge pointing up towards the microscope, shows only the very apex in focus:
If one adjusts the microscope so that the edge near the shoulder is in focus, then the apex is blurred:
One can overcome this limitation by taking a series of images at varying focus distances, then merging them in software to create a composite image with much greater depth of focus:
Assume one knows the difference in focus distance between images, and one also knows the horizontal scale in each image. If one measures the horizontal distance between in-focus regions in sequential images, and combines that with the known vertical change in focus between sequential images, then one has the dimensions for the adjacent and opposite sides of a right triangle. One can then easily compute the slope of the hypotenuse, which corresponds to the slope of the sample being examined.
Executing this procedure for all the images in the focus stack results in sufficient data to model the profile of the blade edge.
I did this using a series of images taken using my microscope.

If one adjusts the microscope so that the edge near the shoulder is in focus, then the apex is blurred:

One can overcome this limitation by taking a series of images at varying focus distances, then merging them in software to create a composite image with much greater depth of focus:

Assume one knows the difference in focus distance between images, and one also knows the horizontal scale in each image. If one measures the horizontal distance between in-focus regions in sequential images, and combines that with the known vertical change in focus between sequential images, then one has the dimensions for the adjacent and opposite sides of a right triangle. One can then easily compute the slope of the hypotenuse, which corresponds to the slope of the sample being examined.
Executing this procedure for all the images in the focus stack results in sufficient data to model the profile of the blade edge.
I did this using a series of images taken using my microscope.
- I used Photoshop to identify the in-focus regions in each image, and to measure the locations of those regions.
- I used Excel to plot the measurements, taking care to adjust the aspect ratio of the plot to reflect the known vertical change in focus between images. This plot had the correct shape to represent the blade edge profile, but at an arbitrary scale.
- I superimposed the plot on an image of a blade edge profile created using cross-sectional imaging. The scale in the cross-sectional image allowed me to scale the plot to match the magnification in the cross-sectional image without changing the shape of the plot.
