亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? attack.c

?? 數字水印技術處理程序集合
?? C
字號:
/*----------------------------------------------------------------------------
// StirMark Benchmark - attack.c
//
// Contents: Main function implementing the self similarities attack
//
// Purpose:  This is the self similarities attack as described in:
//           C. Rey, G. Do雛r, J.-L. Dugelay and G. Csurka, "Toward generic
//           image dewatermarking?", to be presented at ICIP 2002
//           Also available as Eur閏om technical report RR-02-060
//           http://www.eurecom.fr/~dugelay/WM/RR_02_060.pdf
//
// Created:  C. Rey, G. Do雛r, J.-L. Dugelay and G. Csurka, Eur閏om, January 2002
//
// Modified: 
//
// History:  
//
// Copyright (c) 2000-2002, Microsoft Research Ltd , Institut National
// de Recherche en Informatique et Automatique (INRIA), Institut Eur閏om
// and the Integrated Publication and Information Systems Institute at
// GMD - Forschungszentrum Informationstechnik GmbH (GMD-IPSI).
// 
// Redistribution and use in source and binary forms, with or without
// modification, are permitted for non-commercial research and academic
// use only, provided that the following conditions are met:
// 
// - Redistributions of source code must retain the above copyright
//   notice, this list of conditions and the following disclaimer. Each
//   individual file must retain its own copyright notice.
// 
// - Redistributions in binary form must reproduce the above copyright
//   notice, this list of conditions, the following disclaimer and the
//   list of contributors in the documentation and/or other materials
//   provided with the distribution.
// 
// - Modification of the program or portion of it is allowed provided
//   that the modified files carry prominent notices stating where and
//   when they have been changed. If you do modify this program you
//   should send to the contributors a general description of the changes
//   and send them a copy of your changes at their request. By sending
//   any changes to this program to the contributors, you are granting a
//   license on such changes under the same terms and conditions as
//   provided in this license agreement. However, the contributors are
//   under no obligation to accept your changes.
// 
// - All non-commercial advertising materials mentioning features or use
//   of this software must display the following acknowledgement:
// 
//     This product includes software developed by Microsoft Research
//     Ltd, Institut National de Recherche en Informatique et Automatique
//     (INRIA), Institut Eur閏om and the Integrated Publication and
//     Information Systems Institute at GMD - Forschungszentrum
//     Informationstechnik GmbH (GMD-IPSI).
// 
// - Neither name of Microsoft Research Ltd, INRIA, Eur閏om and GMD-IPSI
//   nor the names of their contributors may be used to endorse or
//   promote products derived from this software without specific prior
//   written permission.
// 
// - If you use StirMark Benchmark for your research, please cite:
// 
//     Fabien A. P. Petitcolas, Martin Steinebach, Fr閐閞ic Raynal, Jana
//     Dittmann, Caroline Fontaine, Nazim Fat鑣. A public automated
//     web-based evaluation service for watermarking schemes: StirMark
//     Benchmark. In Ping Wah Wong and Edward J. Delp, editors,
//     proceedings of electronic imaging, security and watermarking of
//     multimedia contents III, vol. 4314, San Jose, California, U.S.A.,
//     20-26 January 2001. The Society for imaging science and
//     technology (I.S.&T.) and the international Society for optical
//     engineering (SPIE). ISSN 0277-786X.
// 
// and
// 
//     Fabien A. P. Petitcolas. Watermarking schemes
//     evaluation. I.E.E.E. Signal Processing, vol. 17, no. 5,
//     pp. 58-64, September 2000.
// 
// THIS SOFTWARE IS NOT INTENDED FOR ANY COMMERCIAL APPLICATION AND IS
// PROVIDED BY MICROSOFT RESEARCH LTD, INRIA, EUR蒀OM, GMD-IPSI AND
// CONTRIBUTORS 'AS IS', WITH ALL FAULTS AND ANY EXPRESS OR IMPLIED
// REPRESENTATIONS OR WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED REPRESENTATIONS OR WARRANTIES OF MERCHANTABILITY AND FITNESS
// FOR A PARTICULAR PURPOSE, TITLE OR NONINFRINGEMENT OF INTELLECTUAL
// PROPERTY ARE DISCLAIMED. IN NO EVENT SHALL MICROSOFT RESEARCH LTD,
// INRIA, EUR蒀OM, GMD-IPSI OR THEIR CONTRIBUTORS BE LIABLE FOR ANY
// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
// GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
// IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// 
// THE USE OF THIS SOFTWARE FOR CIRCUMVENTING WITHOUT AUTHORITY ANY
// EFFECTIVE TECHNOLOGICAL MEASURES DESIGNED TO PROTECT ANY COPYRIGHTS OR
// ANY RIGHTS RELATED TO COPYRIGHT AS PROVIDED BY LAW OR THE SUI GENERIS
// RIGHT PROVIDED BY SOME COUNTRIES IS STRICTLY PROHIBITED.
//
// $Header: /home/cvs/StirmarkBench/StirMark_Bench/SignalProcessing/SelfSimilarities/attack.c,v 1.3 2002/04/19 10:23:58 petitcolas Exp $ 
//----------------------------------------------------------------------------
*/
#include <stdio.h>
#include <stdlib.h>

#include "defines.h"
#include "compil.h"
#include "SelfSimilarities.h"
#include "lib_kadv_codec.h"



/*--------------------------------------------------------------------------------*
 | This function IFS attacks a given channel.                                     |
 *--------------------------------------------------------------------------------*/

void attackChannel(image *orig, image *water, image *sup,
                   int width, int height, optionsCmd *cmd)
{
	int i, threshold;
	long numSample;
	int w_wave, h_wave;                                      /* Size of a wavelet                              */
	image *h00_orig, *h01_orig, *h10_orig, *h11_orig;        /* Wavelet decomposition of the original image    */
	image *h00_water, *h01_water, *h10_water, *h11_water;    /* Wavelet decomposition of the watermarked image */
	image *h00_sup, *h01_sup, *h10_sup, *h11_sup;            /* Wavelet support                                */
	float *hist;

  /* Switching depending on the type of attack */
	if (cmd->type == SS_SWITCH){		/* Exchanging channels */
		printf("   Exchanging channels.\n");
		for (i=0;i<width*height;i++)
			sup[i] = orig[i];
	}

	if (cmd->type == SS_SPATIAL){		/* Attack in spatial domain */
		printf("   First IFS iteration...\n");
		simpleSearchIFS(orig, width, height, water, sup, &hist, &numSample);
		printf("   Adaptative threshold computation...");
		threshold = findAdaptativeThreshold(hist, numSample, cmd->percent);
		printf("T=%d\n", threshold);
		free(hist);
		printf("   Second IFS iteration...\n");
		collageSearchIFS(orig, width, height, water, sup, threshold);
	}

	else if (cmd->type == SS_WAVELET){  /* Attack in wavelet domaine */
		/* Memory allocation for wavelet support */
		if (width%2 == 0)
			w_wave = width/2;
		else
			w_wave = (width + 1)/2;
		if (height%2 == 0)
			h_wave = height/2;
		else
			h_wave = (height + 1)/2;

		if((h00_sup = (image *) malloc(sizeof(image) * w_wave * h_wave))==NULL) {
			fprintf(stderr,"ERROR: Memory allocation problem!\n");
			exit(1);
		}
		if((h01_sup = (image *) malloc(sizeof(image) * w_wave * h_wave))==NULL) {
			fprintf(stderr,"ERROR: Memory allocation problem!\n");
			exit(1);
		}
		if((h10_sup = (image *) malloc(sizeof(image) * w_wave * h_wave))==NULL) {
			fprintf(stderr,"ERROR: Memory allocation problem!\n");
			exit(1);
		}
		if((h11_sup = (image *) malloc(sizeof(image) * w_wave * h_wave))==NULL) {
			fprintf(stderr,"ERROR: Memory allocation problem!\n");
			exit(1);
		}

		/* Wavelet decomposition of the channels */
		printf("   Wavelet decomposition.\n");
		haarWaveDecomposition(orig, width, height, &h00_orig, &h01_orig, &h10_orig, &h11_orig);
		haarWaveDecomposition(water, width, height, &h00_water, &h01_water, &h10_water, &h11_water);

		/* 00 band */
		printf("   Band 00: First IFS iteration...\n");
		simpleSearchIFS(h00_orig, w_wave, h_wave, h00_water, h00_sup, &hist, &numSample);
		printf("   Band 00: Adaptative threshold computation...");
		threshold = findAdaptativeThreshold(hist, numSample, cmd->percent);
		printf("T=%d\n", threshold);
		free(hist);
		printf("   Band 00: Second IFS iteration...\n");
		collageSearchIFS(h00_orig, w_wave, h_wave, h00_water, h00_sup, threshold);

		/* 01 band */
		printf("   Band 01: First IFS iteration...\n");
		simpleSearchIFS(h01_orig, w_wave, h_wave, h01_water, h01_sup, &hist, &numSample);
		printf("   Band 01: Adaptative threshold computation...");
		threshold = findAdaptativeThreshold(hist, numSample, cmd->percent);
		printf("T=%d\n", threshold);
		free(hist);
		printf("   Band 01: Second IFS iteration...\n");
		collageSearchIFS(h01_orig, w_wave, h_wave, h01_water, h01_sup, threshold);

		/* 10 band */
		printf("   Band 10: First IFS iteration...\n");
		simpleSearchIFS(h10_orig, w_wave, h_wave, h10_water, h10_sup, &hist, &numSample);
		printf("   Band 10: Adaptative threshold computation...");
		threshold = findAdaptativeThreshold(hist, numSample, cmd->percent);
		printf("T=%d\n", threshold);
		free(hist);
		printf("   Band 10: Second IFS iteration...\n");
		collageSearchIFS(h10_orig, w_wave, h_wave, h10_water, h10_sup, threshold);

		/* 11 band */
		printf("   Band 11: First IFS iteration...\n");
		simpleSearchIFS(h11_orig, w_wave, h_wave, h11_water, h11_sup, &hist, &numSample);
		printf("   Band 11: Adaptative threshold computation...");
		threshold = findAdaptativeThreshold(hist, numSample, cmd->percent);
		printf("T=%d\n", threshold);
		free(hist);
		printf("   Band 11: Second IFS iteration...\n");
		collageSearchIFS(h11_orig, w_wave, h_wave, h11_water, h11_sup, threshold);

		free(h00_orig);free(h01_orig);free(h10_orig);free(h11_orig);
		free(h00_water);free(h01_water);free(h10_water);free(h11_water);
		
		printf("   Wavelet reconstruction.\n");
		haarWaveReconstruction(sup, width, height, h00_sup, h01_sup, h10_sup, h11_sup);
		
		free(h00_sup);free(h01_sup);free(h10_sup);free(h11_sup);
	}
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人av在线影院| 亚洲综合一区在线| 成人av电影在线观看| 男女男精品网站| 亚洲1区2区3区视频| 亚洲免费看黄网站| 国产精品久久午夜夜伦鲁鲁| 精品久久一区二区三区| 欧美一区中文字幕| 欧美欧美欧美欧美首页| 欧美在线免费观看视频| 93久久精品日日躁夜夜躁欧美| 国产成人精品免费网站| 国产永久精品大片wwwapp| 亚洲福利一二三区| 国产精品人妖ts系列视频| 精品国产精品一区二区夜夜嗨| 日韩欧美美女一区二区三区| 88在线观看91蜜桃国自产| 精品视频999| 欧美日韩黄视频| 欧美日韩成人在线一区| 欧美人与性动xxxx| 日韩欧美一区二区三区在线| 这里只有精品电影| 精品国产髙清在线看国产毛片| 日韩精品在线看片z| 久久理论电影网| 国产日韩精品一区二区三区在线| 国产色婷婷亚洲99精品小说| 日本一区二区成人| 综合久久综合久久| 亚洲一区二区三区在线播放| 亚洲a一区二区| 久久精品99国产精品| 国产一区二区免费在线| 91香蕉视频黄| 欧美一区二区三区免费在线看 | 国产精品一区二区在线播放| 国产精品一区二区黑丝| 福利视频网站一区二区三区| 99精品视频一区| 欧美日韩精品一区二区在线播放 | 开心九九激情九九欧美日韩精美视频电影| 日本网站在线观看一区二区三区| 久国产精品韩国三级视频| 丁香婷婷综合网| 久久亚洲影视婷婷| 中文字幕一区二区三区视频| 午夜不卡av免费| 国产成a人亚洲精| 99久久久免费精品国产一区二区 | 久久国产视频网| av不卡在线观看| 欧美日韩三级在线| 欧美国产视频在线| 日韩精品高清不卡| 成人精品视频一区| 日韩午夜激情电影| 一区二区三区免费网站| 国产一区二区精品久久| 欧美亚洲自拍偷拍| 国产亚洲精品中文字幕| 午夜精品久久久久久久99樱桃 | 欧美日韩国产三级| 国产精品人成在线观看免费| 午夜欧美电影在线观看| 成人不卡免费av| 精品日产卡一卡二卡麻豆| 亚洲乱码国产乱码精品精98午夜| 美日韩一区二区| 国产99一区视频免费| 7777精品伊人久久久大香线蕉完整版 | 久久九九久精品国产免费直播| 亚洲日本电影在线| 成人免费看视频| 久久理论电影网| 免费一级欧美片在线观看| 97久久人人超碰| 欧美一区日韩一区| 三级久久三级久久| 欧美日韩午夜在线视频| 夜夜精品浪潮av一区二区三区| 成人精品国产福利| 国产性色一区二区| 国产精品一区二区男女羞羞无遮挡| 在线播放91灌醉迷j高跟美女 | 不卡区在线中文字幕| 欧美精品一区二区三区蜜桃| 日韩黄色免费电影| 在线免费观看日本欧美| 一区二区三区日韩精品视频| av亚洲精华国产精华精华| 国产欧美一区二区精品仙草咪| 狂野欧美性猛交blacked| 日韩亚洲欧美中文三级| 理论电影国产精品| 久久久久久久av麻豆果冻| 经典一区二区三区| 久久蜜臀中文字幕| 国产成人综合亚洲91猫咪| 久久久亚洲精品石原莉奈| 国产麻豆成人精品| 中文字幕成人在线观看| zzijzzij亚洲日本少妇熟睡| 亚洲日韩欧美一区二区在线| 99久久国产综合精品麻豆| 中文字幕一区二区三区视频| 色婷婷亚洲精品| 亚洲最新视频在线观看| 欧美一区二区三区四区五区| 蜜臀av性久久久久蜜臀av麻豆| 欧美不卡视频一区| 高清在线不卡av| 伊人夜夜躁av伊人久久| 9191成人精品久久| 捆绑调教美女网站视频一区| 国产无遮挡一区二区三区毛片日本| 成人精品鲁一区一区二区| 亚洲激情校园春色| 日韩一区二区免费高清| 毛片av中文字幕一区二区| 久久久99久久| 欧美午夜理伦三级在线观看| 久久精品国产澳门| 亚洲图片欧美激情| 欧美一级二级三级蜜桃| 一本大道综合伊人精品热热| 久久一区二区三区四区| 欧美日韩aaa| 99这里只有久久精品视频| 精油按摩中文字幕久久| 一个色在线综合| 国产精品网友自拍| 久久久国产一区二区三区四区小说| 欧美手机在线视频| 成人18视频在线播放| 国产精品1024| 激情五月婷婷综合网| 人人爽香蕉精品| 性做久久久久久免费观看欧美| 亚洲精选视频在线| 综合久久给合久久狠狠狠97色 | 狠狠色丁香婷综合久久| 性做久久久久久| 亚洲国产日韩综合久久精品| 日韩美女久久久| 国产精品第一页第二页第三页| 国产欧美日韩综合精品一区二区| 精品处破学生在线二十三| 日韩欧美一区二区视频| 欧美一级在线视频| 日韩女优av电影在线观看| 欧美一区二区三区四区视频| 欧美精品亚洲一区二区在线播放| 在线观看国产91| 欧美日韩精品二区第二页| 欧美喷潮久久久xxxxx| 欧美美女视频在线观看| 欧美在线视频全部完| 91蝌蚪国产九色| 欧美性淫爽ww久久久久无| 欧美日免费三级在线| 777奇米成人网| 精品成人一区二区| 国产精品免费av| 亚洲女女做受ⅹxx高潮| 亚洲高清视频中文字幕| 日韩精品久久久久久| 激情五月播播久久久精品| 国产999精品久久久久久绿帽| 国产91丝袜在线观看| 色综合久久久网| 在线电影院国产精品| 久久久精品影视| 亚洲欧美偷拍卡通变态| 日韩高清在线观看| 国产精品中文欧美| 91黄色免费观看| 日韩欧美国产综合| 最新国产の精品合集bt伙计| 亚洲成人免费在线| 国内不卡的二区三区中文字幕| av一区二区久久| 欧美一区二视频| 亚洲欧美怡红院| 蜜桃久久久久久| 一本色道亚洲精品aⅴ| 日韩免费高清视频| 伊人婷婷欧美激情| 国产一区美女在线| 欧美性受xxxx黑人xyx| 26uuu欧美| 视频一区二区不卡| youjizz久久| 久久先锋影音av鲁色资源网| 亚洲一区二区精品久久av| 国产精品中文欧美| 欧美精品免费视频| 综合久久国产九一剧情麻豆|