This document presents a novel method for extracting inflammatory cells from pap smear images to improve the accuracy of cervical cancer diagnosis by enhancing cell nuclei detection. The developed algorithm employs a two-stage approach involving distance criteria and image transformation, resulting in high sensitivity (97%) and specificity (84.38%) during tests on a dataset of 1358 cells. The method aims to assist pathologists in reducing misidentification caused by the presence of inflammatory cells, which share similar characteristics with cell nuclei.