{'fraction_non_alphanumeric': 0.020887728459530026, 'fraction_numerical': 0.0, 'mean_word_length': 5.235772357723577, '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}}
Shape From Shading: A B-Splines Based Algorithm

In this paper, we propose a B-spline based approach to the "Shape from Shading " problem. Its basis lies in approximating a smooth surface by uniform bicubic B-spline basis functions. Since the surface normal in a patch is uniquely determined by heights of its sixteen neighbour vertices, the image brightness is directly related to the control vertices. The control vertices are then determined by minimising a cost functional corresponding to the squared brightness error, optimised by conjugate gradient method. The proposed algorithm does not require any integrability constraint or knowledge of boundary condition. Using several experiments with synthetic images, we demonstrate the performance of the algorithm.