This research aimed at presenting a two-step method for prostate segmentation in TRUS images. The research used a prostate boundary localization and prostate edge denoising approach. The proposed method contribution is the use of the optimized Hodge’s method as the boundary operator and the use of the Bidirectional Exponential moving average to perform edge denoising. The results showed that the proposed method is effective in completing the prostate segmentation task. (1) The prostate region is effectively initialized and localized. (2) The recovery of noise points is accomplished and the segmentation result being consistent with the general shape of the prostate. The experimental results showed that this method can improve the overall segmentation accuracy. The process uses a combination of traditional and unsupervised methods, eliminating the need to rely on large data sets compared to current deep learning methods. The proposed method achieved excellent segmentation accuracy, with the Dice similarity coefficient (DICE) value of 0.9679, an average Intersection over Union (IoU) value of 0.9377, and an average False Positive Rate (FPR) of 0.0399. The results obtained from this study have significant implications for clinical practice. Accurate prostate segmentation is crucial for various applications, including radiation therapy planning, image-guided interventions, and computer-aided diagnosis. The proposed method has the potential to improve these applications by providing more precise and reliable prostate segmentations. However, it is important to acknowledge some limitations of this study. First, the proposed method was evaluated on a limited dataset, which may not fully represent the diversity of prostate images encountered in clinical practice. Further validation on larger datasets is necessary to assess its generalizability. Additionally, the proposed method relied on manual annotations for training, which can introduce inter-observer variability. Incorporating automated or semi-automated annotation techniques could enhance the robustness of the method