07-23-2024 01:01 PM
I need some help finding VI's that can adjust a telecentric optical sensor on Zaber hardware on an 3-axis gantry, particularly in the Z direction which utilize passive focusing, and possibly a feature to adjust the focusing window. I was hoping to find a laplacian method or fourier transform, or even a program which determines the entropy of the image.
Solved! Go to Solution.
07-23-2024 01:58 PM
This forum post discusses some methods to create a "sharpness score" so that as you move the focusing axis you can determine what the best focus is.
This app note from Zaber describes how to do this with the OpenCV Laplacian function:
https://www.zaber.com/articles/autofocus-example
It looks like you could use the IMAQ convolution function (if using the LV Vision Toolkit) or follow Bruce Ammons' method of subtracting a rotated 1D array from itself to look for sharpness.
07-23-2024 02:10 PM
Super helpful. Do any of these posts discuss ROI, I know the tool exists in IMAQ or IMAQdx but I'm especially new to this logic and creating a sophisticated program in the time I have does not seem realistic, so I'm wondering if there's available VI's or examples.
07-23-2024 03:01 PM