Skip to main content
. 2019 Nov 19;10(12):6351–6369. doi: 10.1364/BOE.10.006351

Algorithm 1. Learned sensing based network for optimized microscope illumination.

1: Input: {Ij,n} with n ∈ {1, …, N} uniquely illuminated images of the jth object, object labels {yj}. Number of iterations T. An image classification model F parametrized by θ.
2: Randomly initialize the LED weights w={wn}n=1N.
3: for iteration t = 1 … , T do
4:   Sample a minibatch of ({Ij,n}n=1N,yj),
5:   Generate each pattern-illuminated image Ij via the weighted sum Ij=n=1NwnIj,n
6:   Take a gradient descent step on CrossEntropy(F(Ij),yj ) with respect to w and θ.
7: end for
8: Output: the optimized LED weights w and the model parameters θ.