mehta-lab / waveorder

Wave optical models and inverse algorithms for label-agnostic imaging of density & orientation.
BSD 3-Clause "New" or "Revised" License
12 stars 3 forks source link

Add option for axial flip of `phase_thick_3d` transfer function #124

Closed talonchandler closed 1 year ago

talonchandler commented 1 year ago

This PR solves a common problem in "3D phase" reconstructions: you perform a reconstruction and see that the contrast is inverted. Should you flip the image? Flip the transfer function? Do these options add any computational expense?

This option lets you flip the transfer function without any additional computational expense or copying.

Note: I have not added a similar option to isotropic_thin_3d because it takes a z_position_list directly, so the user can flip that list directly.

talonchandler commented 1 year ago

Sorry for the accidental inclusion of #123.

talonchandler commented 1 year ago

Thanks @ziw-liu!