In order to effectively restore color noisy images with the mixture of Gaussian noise and impulse noise,a new algorithm is proposed using the quaternion-based holistic processing idea for color images.First,a color image is represented by a pure quaternion matrix.Secondly,according to the different characteristics of the Gaussian noise and the impulse noise,an algorithm based on quaternion directional vector order statistics is used to detect the impulse noise. Finally,the quaternion optimal weights non-local means filter (QOWNLMF)for Gaussian noise removal is improved for the mixed noise removal.The detected impulse noise pixels are not considered in the calculation of weights.Experimental results on five standard images demonstrate that the proposed algorithm performs better than the commonly used robust outlyingness ratio-nonlocal means (ROR-NLM)algorithm and the optimal weights mixed filter (OWMF).