%0 Journal Article %A Sánchez Lara, Víctor %A García Pinto, Diego %T XPCIpy: A Python toolkit for X-ray phase-contrast imaging %D 2025 %U https://hdl.handle.net/20.500.14352/130012 %X X-ray absorption-based imaging often yields insufficient contrast for materials withlow atomic numbers. X-ray phase-contrast imaging (PCI) offers a solution by leveraging the phaseshift induced by different materials, enabling enhanced visualization of structures with minimalabsorption differences. However, extracting phase information from intensity measurements is anon-trivial task, requiring specialized techniques. We present XPCIpy, an open-source softwaredeveloped in Python, designed for both the simulation of X-ray PCI, including propagation-basedimaging (PBI) and Talbot-Lau phase-contrast Imaging (TLPCI), and the reconstruction of TLPCIimages. XPCIpy implements the phase stepping method for image retrieval, offering both leastsquares and fast Fourier transform (FFT)-based reconstruction algorithms. It notably includes analgorithm for correcting phase step and dose fluctuations, which helps mitigate reconstructionartifacts like Moiré patterns. The software’s modular architecture enhances extensibility, and auser-friendly graphical user interface (GUI) improves accessibility for researchers. Validatedthrough both simulations and experimental data, XPCIpy provides a versatile framework tooptimize experimental setups, test new reconstruction algorithms, and serve as an accessible toolfor the scientific community in X-ray phase-contrast imaging. The code is publicly available athttps://github.com/PREDICO-Project/XPCIpy. %~