mchall/HiddenWatermark
소개
Embeds a hidden watermark in an image using a blind DWT-DCT approach
디자인 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalHidden Watermark
Embeds a hidden watermark in an image using a blind DWT-DCT approach. Unlike steganographic methods, this hidden watermark is resistant to various forms of attack. Limited to a black and white 32x32 watermark image.
Original Image + Watermark = Watermarked Image
+
= 
Image source: http://commons.wikimedia.org/wiki/Garden#/media/File:Rikugien3.jpg
Usage
The following code instantiates the default watermark class with the default watermark image. Then the watermark is embedded in a file, and the watermark is retrieved afterwards.
var fileBytes = File.ReadAllBytes(imageLocation);
var newFileBytes = Watermark.Default.EmbedWatermark(fileBytes);
var result = Watermark.Default.RetrieveWatermark(newFileBytes);
The following code instantiates the watermark class with the bytes read from a 32x32 watermark image and turns crop support on. Then the watermark is embedded in a file and simultaneously checked if an embedded watermark already exists.
var watermarkBytes = File.ReadAllBytes(watermarkLocation);
Watermark watermark = new Watermark(watermarkBytes);
var fileBytes = File.ReadAllBytes(imageLocation);
var result = watermark.RetrieveAndEmbedWatermark(fileBytes);
Watermark recovery results
| Attack | Recovered Watermark |
|---|---|
| No Attack | ![]() |
| Blur | ![]() |
| Flip Horizontal | ![]() |
| Resize (1024x768->360x270) | ![]() |
| Visible Watermarking | ![]() |
| Crop | ![]() |
| JPEG Quality 20% | ![]() |
| Grayscale | (not resistant) |
| PrintScreen | ![]() |
| Noise | ![]() |
Acknowledgements
Accord.NET: http://accord-framework.net/
관련 프로젝트 살펴보기
불러오는 중…







(not resistant)
