PolarizedLightFieldMicroscopy / BirTomo

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

Intensity images in pytorch #49

Closed gschlafly closed 11 months ago

gschlafly commented 1 year ago

Currently, the forward projection resulting in the intensity images can only be done with a numpy backend. It would be great if the images could also be generated using pytorch, because then they could be used in the reconstruction process. In fact, by using a loss function based solely on the intensity images (ground truth and current), we should be able to reconstruct the birefringence and optic axis.

Big picture todos

pvjosue commented 11 months ago

Ready on latest commit :) also added a test comparing numpy and pytorch back end

pvjosue commented 11 months ago

Ohh, forgot to check the gradients!

pvjosue commented 11 months ago

All right, differentiability seems to be working :)