As part of our work investigating the purcell effect, my collaborator fabricated some samples of Si with varied SiO2 height. Since the oxide thickness was small, there was a clear thin-film reflection pattern as a function of height, so I thought it could be interesting to back-calculate the height of the sample using the thin film color, and use that to approximate the expected purcell factor.
This program was useful for rough estimates, but after we kept having to take afm scans to get the exact profile, I wanted to make it more exact so we could use this software in place of AFM measurements. So, first, instead of calculating the color based on what the human eye would see under a black-body WL source, I took into account the spectrum of the CCD and WL source at our microscope to more precisely determine the color profile.
First Iteration of the SiO2 Structure
Next, I made a program to read in an image, select an area, and then use the calculated color-height profile to create a height profile of the image.