The invention discloses a compressive-sensing-based
digital image watermark embedding and extraction method, and belongs to the technical fields of
information hiding and
image processing. The method comprises the following steps of performing sparsification
processing on binary
digital image watermark information to obtain sparse one-dimensional
watermark information, and constructing a measurement matrix which is used as a key; measuring the one-dimensional watermark information to realize the compression and the
encryption of the one-dimensional watermark information by using the key; performing
discrete cosine transform on original carrier image information, blocking the transformed
discrete cosine transform-domain information, and embedding the processed watermark information into a carrier image to obtain a watermark-containing image. According to the method, a compressive sensing method is used for
processing watermarks, so that dual functions of watermark compression and
encryption are realized, the number of the embedded watermarks is increased, the
invisibility and the security are enhanced, and the overall performance of the watermarks is remarkably improved; an SBHE (scrambled block hadamard ensemble) matrix is applied, so that the method is small in memory space, high in calculation speed and simple in hardware; sparsity is introduced into a compressive sensing reconstruction process, so that the reconstruction accuracy and effects are greatly improved.