Automatic lung nodules detection and segmentation can assist doctors in better diagnosis and treatment for lung cancer. However, precise detection and segmentation are still challenging, because lung nodules can have different contours or locations and may be attached to other tissues, such as neighboring blood vessel and pleural surface. In this study, an automatic detection and segmentation method for lung nodules in different locations has been developed. First, we apply Otsu thresholding to segment lung parenchyma. Next, a morphological opening operation is carried out to remove blood vessels. Then α-hull operation is proposed to correct lung contours and optimal α values can be acquired adaptively. Finally, DenseNet convolutional network is applied to classify true lung nodules from all nodule candidates. We select the intersection area of at least three radiologists' annotations as ground truth and validate our method on 466 nodules including well-circumscribed, juxta-vascular, juxta-pleural, and pleural tail. Our study not only concentrates on false positive reduction but also evaluates segmentation performance. To give a more comprehensive quantitative evaluation of nodule segmentation, we use evaluation metrics including Jaccard index (JI), dice similar coefficient (DSC), Hausdorff distance, under-segmentation rate, over-segmentation rate, sensitivity, specificity, accuracy, and false positive rate. Overall results are 0.6385 ± 0.