Color_watermark
Introduction
This is a rust implementation of the 2018 paper A Robust Watermarking Scheme to JPEG Compression for Embedding a Color Watermark into Digital Images by David-Octavio Muñoz-Ramirez, Volodymyr Ponomaryov, Rogelio Reyes-Reyes, Volodymyr Kyrychenko, Oleksandr Pechenin and Alexander Totsky. Many thanks to the authors for such a wonderful idea!
Quickstart
Prepare a 512 * 512 host image and 128 * 128 watermark image in RGB encoding.
let key = 123456;
let step_size = 50.0;
let watermarked_img = embed_watermark;
watermarked_img.save;
// Return value: (BitVec, DynamicImage)
let = extract_watermark;
extracted_wm.save;