I am building a test measurement (optics) to look a rectangular slit opening (1mm x 15 microns). The slit opening is illuminated by a white LED and using a microscope objective to magnify it to 10X on an image sensor.
What would be the possible method to estimate if the image is in it's best focus?
Current method, using a line profile and look for peaking position.
Any other ideas ?