Image contrast enhancement algorithm for X-ray observation of space materials in situ. (1st June 2022)