The secure digital watermarking method for digital images is proposed. This method is based on error correcting codes (ECC) that are perfect in weighted Hamming metric. The usage of perfect ECC guarantees the limited number of errors (distortions of initial image) that occur in watermarking process. The use of ECC that are perfect in weighted Hamming metric increases the efficiency of the watermarking, such as increasing container volume, taking into account specific of human vision system by applying the concept of weighted container. The method of security increasing for weighted watermarking is represented in this paper.