{'fraction_non_alphanumeric': 0.01950078003120125, 'fraction_numerical': 0.0039001560062402497, 'mean_word_length': 4.831818181818182, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Polynomial phase mask for extending depth-of-field optimized by simulated annealing

The cubic phase mask is an approximate theoretical solution for extension of depth-of-field (DOF) in the computational opto-electronic imaging system. In the practice, it does not provide an infinite depth of field. Especially the cubic coefficient needs to be determined for a given optical system and a requested extension of the DOF. Many other approaches using a variety of masks have been proposed. In this paper we propose a polynomial phase mask, which is still separable in the Cartesian coordinate system, as the cubic mask. The phase contains 16 terms of odd powers and was optimized by the simulated annealing. The cost function was designed for invariance of the MTF curves with a full range of depth-of-field of ±200 μm in a biomedical microscope. This number of polynomial coefficients provides the optimization with a necessary number degree of freedom. We introduced a target MTF to assist the simulated annealing, which was defined iteratively from the ideal MTF to a more practical and achievable target MTF. Our result is compared with that of the recently published approaches. The experimental results with digital restoration of images using the invariant MTF are also shown.