Medical image segmentation is a crucial process for computer-aided diagnosis and surgery. Medical image segmentation refers to portioning the images into small, disjointed parts for simplifying the processes of analysis and examination. Rician and speckle noise are different types of noise in magnetic resonance imaging (MRI) that affect the accuracy of the segmentation process negatively. Therefore, image enhancement has a significant role in MRI segmentation. This paper proposes a novel framework that uses 3D MRI images from Kaggle and applies different diverse models to remove Rician and speckle noise using the best possible noise-free image. The proposed techniques consider the values of Peak Signal to Noise Ratio (PSNR) and the level of noise as inputs to the attention-U-Net model for segmentation of the tumor. The framework has been divided into three stages: removing speckle and Rician noise, the segmentation stage, and the feature extraction stage. The framework presents solutions for each problem at a different stage of the segmentation. In the first stage, the framework uses Vibrational Mode Decomposition (VMD) along with Block-matching and 3D filtering (Bm3D) algorithms to remove the Rician. Afterwards, the most significant Rician noise-free images are passed to the three different methods: Deep Residual Network (DeRNet), Dilated Convolution Auto-encoder Denoising Network (Di-Conv-AE-Net), and Denoising Generative Adversarial Network (DGAN-Net) for removing the speckle noise. VMD and Bm3D have achieved PSNR values for levels of noise (0, 0.25, 0.5, 0.75) for reducing the Rician