Accurate segmentation of the prostate and surrounding organs at risk (OARs) from CT scans is critical for radiotherapy treatment planning in prostate cancer. However, manual segmentation is time-consuming and prone to variability. This paper proposes a deep learning-based approach using a pre-trained ResNet-18 combined with an encoder-decoder structure based on DeepLabv3+. The method automates the segmentation of the prostate, bladder, and rectum in male pelvic CT scans, achieving precise and efficient results without requiring preprocessing or extensive manual refinement. Evaluated on 100 CT scans using 10-fold cross- validation, the model demonstrates strong performance (Dice Similarity Coefficient (DSC) and Hausdorff Distance (HD)) on prostate (DSC: 84.32 +/- 4.88%, HD: 3.95 +/- 0.60 mm ), bladder (DSC: 86.53 +/- 3.66%, HD: 4.58 +/- 0.72 mm ), and rectum (DSC: 83.92 +/- 4.18%, HD: 2.99 +/- 0.40 mm) segmentation. Additionally, a user-friendly MATLAB application is developed to automate the segmentation process. This approach has the potential to improve treatment planning efficiency, accuracy, and consistency for better patient outcomes.