Select the in focus frame from each slice of a hyperstack and create a new stack of just the in focus frames. Based on algorithm F-11 "Normalized Variance".
An ImageJ plugin for selecting a plane in focus among multiple slices image stack. The algorithm uses normalized variance. A short tutorial is available in the plugin web page (above).
This ImageJ plugin creates high resolution PSF images by averaging many bead im- ages as well as exploiting the assumption that the point spread function is rotationally symmetric with respect to the axial axis (z-direction).