UCSB-Exoplanet-Polarimetry-Lab / derp_control

Motion control for the Dual-Rotating Retarder Mueller Polarimeter
MIT License
0 stars 0 forks source link

Write an auto-focusing algorithm for the translation stage to get near a pupil plane #6

Open Jashcraf opened 3 days ago

Jashcraf commented 3 days ago

Not sure how to do this immediately, but doing an edge-detection thing where you draw a line across the pupil and maximize the first derivative of the line at a point could work as a first pass

Jashcraf commented 10 hours ago

Implementation idea - Median along the vertical dimension to denoise the data and compute the absolute value of the gradient of that, and then maximize it.

There are degenerate solutions but it could be fun to try

Jashcraf commented 9 hours ago

Solution degeneracy arises from Gibbs phenomena, (i.e. onion-ring diffraction haha). But doing a down-sampling could alias a lot of this away.

maxwellmb commented 8 hours ago

Is there (going to be?) a pupil lens, or does the stage take us to a pupil?

On Sun, Sep 29, 2024, 9:25 AM Jaren Ashcraft @.***> wrote:

Implementation idea - Median along the vertical dimension to denoise the data and compute the absolute value of the gradient of that, and then maximize it.

There are degenerate solutions but it could be fun to try

— Reply to this email directly, view it on GitHub https://github.com/UCSB-Exoplanet-Polarimetry-Lab/derp_control/issues/6#issuecomment-2381416677, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEK2SJD67HDJEA3T6XSHRFDZZASXRAVCNFSM6AAAAABO4CKH7WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBRGQYTMNRXG4 . You are receiving this because you are subscribed to this thread.Message ID: <UCSB-Exoplanet-Polarimetry-Lab/derp_control/issues/6/2381416677@ github.com>