We propose a robust digital watermarking algorithm for copyright protection. A stable feature is obtained by utilizing QR factorization and discrete cosine transform (DCT) techniques, and a meaningful watermark image is embedded into an image by modifying the stable feature with a quantization index modulation (QIM) method. The combination of QR factorization, DCT, and QIM techniques guarantees the robustness of the algorithm. Furthermore, an embedding location selection method is exploited to select blocks with small modifications as the embedding locations. This can minimize the embedding distortion and greatly improve the imperceptibility of our scheme. Several standard images were tested and the experimental results were compared with t...