I want code for image watermarking using RCM algo i have perticular algorith
1 回表示 (過去 30 日間)
古いコメントを表示
Algorithm 1. Watermark embedding algorithmInput: Distortion threshold (Th); host image; watermark (w)Output: Watermarked imagebeginPartition host image into (8 × 8) or (32 × 32) image block (B);Partition the watermark image into (8 × 4) or (32 × 16) image block (W),respectively;For a pixel pair (x, y) ∈ B, the value of Dc= (x − y) is calculated.Now, for each pixel pair:if ((x, y) ∈ Dcand (x, y) < Th) then{if ((x, y) are set of odd numbers) then{x= x2y= 2y2 + wi} // Note: (x, y) are the marked pixel pair values with thecorresponding watermark bit (wi)else{x= 22x−y2 + 1y= 22y−x2 + wi}else{x= 2x2y= y}}Repeat until all pixels belongs to Biare covered.The above steps are repeated as long as all pixels in the image are notcovered.end
1 件のコメント
回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!