Nevertheless, the accuracy of a multilevel image thresholding technique using 1D or 2D Tsallis entropy is limited. To overcome this, we propose a maximum 3D Tsallis entropy-based multilevel thresholding method. The idea of 3D Tsallis entropy is introduced. Opposed to the 1D/2D Tsallis entropy, the 3D Tsallis entropy-based approach is more robust, it performs well even in the case of the low signal-to-noise-ratio and contrast. Manta Ray Foraging Optimization (MRFO) algorithm is a newly introduced algorithm to solve the optimization problem by imitating the foraging technique of Manta Ray fish in the ocean using a mathematical model. Due to insufficient energy levels of search agents in MRFO, they fail to avoid local minima and fall on it. To make the algorithm more effective for the segmentation application, we introduce a new algorithm coined as attacking Manta Ray foraging optimization (AMRFO). A set of classical benchmark functions together with composite functions (CEC 2014) is used to validate the proposed AMRFO algorithm. Statistical analysis is implicitly carried out using Wilcoxon’s signed-rank test and Friedman’s mean rank test. Interestingly, the results show that the proposed AMRFO is superior to the state-of-the-art optimization algorithms. Moreover, the proposed method is also compared with 1D/2D Tsallis entropy-based approaches. To experiment, 100 test images from the AANLIB MR Image dataset are considered. Our method outperforms 1D/2D Tsallis entropy-based approaches. The proposed scheme would be useful for the segmentation of multi-spectral color images.