PolarizedLightFieldMicroscopy / GeoBirT

Geometrical Birefringence Tomography
BSD 3-Clause "New" or "Revised" License
4 stars 2 forks source link

Pass mla index arg to apply mask that is specific to the microlens index #76

Closed gschlafly closed 6 months ago

gschlafly commented 6 months ago

Description

The microlens index should be able to be successfully passed into the numpy and pytorch functions. Only the mask for the lenslet (0,0) is being used. However, when passing the mla_index argument, some of the tests fail. https://github.com/PolarizedLightFieldMicroscopy/GeoBirT/blob/f478893ad949a3b3f6e36fc86639c644dfbb0d62/VolumeRaytraceLFM/birefringence_implementations.py#L1389-L1397

Files

To Reproduce

Have the function ret_and_azim_images() return self.ret_and_azim_images_torch(volume_in, microlens_offset, mla_index=mla_index) for the pytorch backend. Then, run the pytest test_forward_projection_different_volumes for single_voxel.

Error message from the pytest: image

Tasks