Skip to content

Commit

Permalink
invert phase contrast
Browse files Browse the repository at this point in the history
  • Loading branch information
talonchandler committed Oct 16, 2024
1 parent ef8ac77 commit 4fccfcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion waveorder/models/inplane_oriented_thick_pol3d_vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def _calculate_wrap_unsafe_transfer_function(
z_position_list = torch.fft.ifftshift(
(torch.arange(z_total) - z_total // 2) * z_pixel_size
)
if invert_phase_contrast:
if not invert_phase_contrast: # opposite sign of direct phase reconstruction
z_position_list = torch.flip(z_position_list, dims=(0,))
z_frequencies = torch.fft.fftfreq(z_total, d=z_pixel_size)

Expand Down

0 comments on commit 4fccfcc

Please sign in to comment.