The document presents the HMRF-PSO method for image segmentation, combining Hidden Markov Random Fields with Particle Swarm Optimization for improved results. The method is evaluated on non-destructive testing datasets, showing it outperforms traditional thresholding methods in terms of misclassification error. While demonstrating robustness and noise resistance, the challenges of parameter selection remain noted.