This paper presents a method for the automatic extraction of lung nodules from CT chest images using weighted Euclidean distance for classification and connected component labeling for segmentation. The study demonstrates high performance and accuracy in distinguishing between nodules and non-nodules, leveraging morphological operations for effective lung area extraction. Testing on images of both healthy individuals and cancer patients supports the method's reliability for computer-aided diagnosis in lung cancer detection.