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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? imagemap.cs

?? Image Fusion Techniues
?? CS
字號(hào):
// Waveblend - complex dualtree based image fusion// (C) Copyright 2004 -- Sebastian Nowozin <nowozin@cs.tu-berlin.de>//// This file is part of Waveblend.//// Waveblend is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published// by the Free Software Foundation; version 2 of the License.//// Waveblend is distributed in the hope that it will be useful,// but WITHOUT ANY WARRANTY; without even the implied warranty of// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the// GNU General Public License for more details.//// The license is included with the distribution in the file 'LICENSE'.///* ImageMap.cs * * Abstract floating point image map processing functionality. */using System;public class ImageMap : ICloneable{	private ImageMap ()	{	}	public object Clone ()	{		ImageMap cl = new ImageMap (xDim, yDim);		for (int y = 0 ; y < yDim ; ++y)			for (int x = 0 ; x < xDim ; ++x)				cl[x, y] = this[x, y];		return (cl);	}	int yDim, xDim;	double[,] valArr;	public double[,] ValueArray {		get {			return (valArr);		}	}	public int YDim {		get {			return (yDim);		}	}	public int XDim {		get {			return (xDim);		}	}	public double MaxElem {		get {			double max = 0.0;			for (int y = 0 ; y < yDim ; ++y) {				for (int x = 0 ; x < xDim ; ++x) {					if (this[x, y] > max)						max = this[x, y];				}			}			return (max);		}	}	public double this[int x, int y] {		get {			return (valArr[y, x]);		}		set {			valArr[y, x] = value;		}	}	public ImageMap (int xDim, int yDim)	{		this.xDim = xDim;		this.yDim = yDim;		valArr = new double[yDim, xDim];	}	public ImageMap EnlargeCanvas (int newX, int newY)	{		if (newX < xDim || newY < yDim)			throw (new ArgumentException ("New canvas dimensions too small."));		ImageMap nmap = new ImageMap (newX, newY);		for (int y = 0 ; y < yDim ; ++y)			for (int x = 0 ; x < xDim ; ++x)				nmap[x, y] = this[x, y];		return (nmap);	}	public ImageMap ShrinkCanvas (int newX, int newY)	{		if (newX > xDim || newY > yDim)			throw (new ArgumentException ("New canvas dimensions too large."));		ImageMap nmap = new ImageMap (newX, newY);		for (int y = 0 ; y < newY ; ++y)			for (int x = 0 ; x < newX ; ++x)				nmap[x, y] = this[x, y];		return (nmap);	}	public ImageMap (int[,] values)	{		valArr = new double[values.GetLength (0), values.GetLength (1)];		xDim = values.GetLength (1);		yDim = values.GetLength (0);		for (int y = 0 ; y < yDim ; ++y)			for (int x = 0 ; x < xDim ; ++x)				valArr[y, x] = values[y, x];	}	public ImageMap (double[,] values)	{		valArr = new double[values.GetLength (0), values.GetLength (1)];		xDim = values.GetLength (1);		yDim = values.GetLength (0);		for (int y = 0 ; y < yDim ; ++y)			for (int x = 0 ; x < xDim ; ++x)				valArr[y, x] = values[y, x];	}	public ImageMap ScaleHalf ()	{		if ((xDim / 2) == 0 || (yDim / 2) == 0)			return (null);		ImageMap res = new ImageMap (xDim / 2, yDim / 2);		for (int y = 0 ; y < res.yDim ; ++y) {			for (int x = 0 ; x < res.xDim ; ++x) {				res[x, y] = this[2 * x, 2 * y];			}		}		return (res);	}	// Double the size of an imagemap using linear interpolation.	// It is not a real doubling as the last line is omitted (the image size	// would always be odd otherwise and we have no second line for	// interpolation).	public ImageMap ScaleDouble ()	{		// Doubling an image with x/y dimensions less or equal than 2 will		// result in an image with just (2, 2) dims, so its useless.		if (xDim <= 2 || yDim <= 2)			return (null);		ImageMap res = new ImageMap (xDim * 2 - 2, yDim * 2 - 2);		// fill four pixels per step, except for the last line/col, which will		// be omitted		for (int y = 0 ; y < (yDim - 1) ; ++y) {			for (int x = 0 ; x < (xDim - 1) ; ++x) {				// pixel layout:				// A B				// C D				// A				res[2 * x + 0, 2 * y + 0] = this[x, y];				// B				res[2 * x + 1, 2 * y + 0] =					(this[x, y] + this[x + 1, y]) / 2.0;				// C				res[2 * x + 0, 2 * y + 1] =					(this[x, y] + this[x, y + 1]) / 2.0;				// D				res[2 * x + 1, 2 * y + 1] = (this[x, y] + this[x + 1, y] +					this[x, y + 1] + this[x + 1, y + 1]) / 4.0;			}		}		return (res);	}	static public ImageMap operator* (ImageMap f1, ImageMap f2)	{		if (f1.xDim != f2.xDim || f1.yDim != f2.yDim) {			throw (new ArgumentException ("Mismatching dimensions"));		}		ImageMap resultMap = new ImageMap (f1.xDim, f1.yDim);		for (int y = 0 ; y < f1.yDim ; ++y) {			for (int x = 0 ; x < f1.xDim ; ++x) {				resultMap[x, y] = f1[x, y] * f2[x, y];			}		}		return (resultMap);	}	static public ImageMap operator+ (ImageMap f1, ImageMap f2)	{		if (f1.xDim != f2.xDim || f1.yDim != f2.yDim) {			throw (new ArgumentException ("Mismatching dimensions"));		}		ImageMap resultMap = new ImageMap (f1.xDim, f1.yDim);		for (int y = 0 ; y < f1.yDim ; ++y) {			for (int x = 0 ; x < f1.xDim ; ++x) {				resultMap[x, y] = f1[x, y] + f2[x, y];			}		}		return (resultMap);	}	static public ImageMap operator- (ImageMap f1, ImageMap f2)	{		if (f1.xDim != f2.xDim || f1.yDim != f2.yDim) {			throw (new ArgumentException ("Mismatching dimensions"));		}		ImageMap resultMap = new ImageMap (f1.xDim, f1.yDim);		for (int y = 0 ; y < f1.yDim ; ++y) {			for (int x = 0 ; x < f1.xDim ; ++x) {				resultMap[x, y] = f1[x, y] - f2[x, y];			}		}		return (resultMap);	}	// Normalize: Find the minimum to maximum range, then stretch and limit	// those to exactly 0.0 to 1.0. If both the minimum and maximum values are	// equal, no normalization takes place.	public void Normalize ()	{		double min = 0.0;		double max = 0.0;		for (int y = 0 ; y < yDim ; ++y) {			for (int x = 0 ; x < xDim ; ++x) {				if (min > this[x, y])					min = this[x, y];				if (max < this[x, y])					max = this[x, y];			}		}		if (min == max)			return;		double diff = max - min;		for (int y = 0 ; y < yDim ; ++y) {			for (int x = 0 ; x < xDim ; ++x) {				this[x, y] = (this[x, y] - min) / diff;			}		}	}}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久亚洲一级片| 色噜噜狠狠色综合中国| 亚洲成人777| 国产精品久久久久久久久免费桃花 | 色网综合在线观看| 亚洲色图清纯唯美| 在线看一区二区| 日韩一区精品视频| 日韩美女在线视频| 国产精品99精品久久免费| 国产精品久久久久久户外露出| av一本久道久久综合久久鬼色| 亚洲免费av在线| 日韩视频中午一区| 国产91精品入口| 亚洲一区二三区| 欧美岛国在线观看| 99久精品国产| 日韩av网站免费在线| 亚洲精品在线观看视频| 99v久久综合狠狠综合久久| 亚洲无线码一区二区三区| 精品少妇一区二区三区 | 久久久国产精华| 一本久道中文字幕精品亚洲嫩| 亚洲成a人片在线观看中文| 日韩欧美中文字幕精品| 成人av电影在线观看| 亚洲成人第一页| 国产精品女同一区二区三区| 欧美日韩久久一区二区| 国产91丝袜在线18| 成人免费毛片aaaaa**| 欧美系列日韩一区| wwww国产精品欧美| 亚洲综合色噜噜狠狠| 国产在线一区二区| 欧美视频精品在线| 国产香蕉久久精品综合网| 性做久久久久久免费观看| 国产精品18久久久久久久网站| 91色|porny| 久久综合狠狠综合| 香蕉av福利精品导航| 9人人澡人人爽人人精品| 91精品国产一区二区人妖| 粉嫩一区二区三区在线看| 亚洲欧美电影院| 久久久久久一级片| 国产精品久久久一本精品| 欧美精品精品一区| 亚洲色图欧美激情| 国产福利一区在线| 日韩欧美一级在线播放| 亚洲福利视频三区| 91日韩一区二区三区| 中文字幕成人av| 国产麻豆视频一区| 精品美女一区二区| 日韩经典一区二区| 欧美三级乱人伦电影| 国产精品麻豆久久久| 狠狠色综合播放一区二区| 91精品国产福利在线观看 | 欧洲国内综合视频| 国产三级一区二区| 国产伦理精品不卡| 精品毛片乱码1区2区3区| 日本网站在线观看一区二区三区| 欧美在线免费播放| 一区二区三区资源| 91一区二区在线观看| 亚洲免费观看在线视频| 色婷婷综合久久久久中文 | 26uuuu精品一区二区| 午夜精品久久久久久| 色哟哟国产精品免费观看| 国产精品久久三区| a亚洲天堂av| 中文字幕一区二区三区四区不卡 | 午夜精品在线看| 在线观看中文字幕不卡| 亚洲一区二区三区三| 欧美日韩精品免费| 久久国产日韩欧美精品| 精品日产卡一卡二卡麻豆| 国内精品免费**视频| 精品久久人人做人人爽| 国产精品一二一区| 国产精品无人区| 一本久久a久久免费精品不卡| 亚洲最新视频在线观看| 欧美日韩精品系列| 日韩av高清在线观看| 久久综合一区二区| 成人av网在线| 亚洲成人免费视频| 精品久久国产字幕高潮| 国产福利一区在线观看| 亚洲男人的天堂在线aⅴ视频| 欧美精品在线视频| 国产精品一区专区| 亚洲最色的网站| 精品福利二区三区| 色999日韩国产欧美一区二区| 日本伊人色综合网| 国产精品视频免费| 欧美精品一卡两卡| 国产v日产∨综合v精品视频| 国产真实乱偷精品视频免| 国产精品久久三| 日韩精品一区二区三区视频播放| 国产成人av自拍| 亚洲高清在线精品| 国产日韩欧美一区二区三区综合| 在线一区二区观看| 国产美女视频91| 婷婷夜色潮精品综合在线| 久久久久久毛片| 欧美精品日韩综合在线| 成人av电影在线| 久久精品国产99| 亚洲永久精品国产| 国产精品伦一区| 精品国产一区二区三区不卡| 日本乱人伦一区| fc2成人免费人成在线观看播放| 视频一区二区欧美| 亚洲精品日韩专区silk| 久久久精品中文字幕麻豆发布| 欧美高清视频不卡网| www.激情成人| 国产乱色国产精品免费视频| 日本亚洲视频在线| 亚洲成人你懂的| 亚洲大尺度视频在线观看| 中文字幕欧美日韩一区| 精品嫩草影院久久| 欧美一卡二卡在线| 欧美精品tushy高清| 一本大道综合伊人精品热热| 国产成人午夜片在线观看高清观看| 日韩在线一区二区三区| 亚洲第一电影网| 亚洲亚洲人成综合网络| 亚洲综合久久久久| 亚洲美女偷拍久久| 亚洲欧美激情在线| 亚洲色欲色欲www| 亚洲欧洲国产日韩| 日韩一区有码在线| 中文字幕欧美一| 亚洲日本在线看| 亚洲激情在线播放| 亚洲国产美女搞黄色| 亚洲一区二区视频在线观看| 一区二区三区四区视频精品免费| 亚洲日本一区二区| 一区二区三区免费在线观看| 亚洲毛片av在线| 亚洲成人午夜影院| 日本sm残虐另类| 国产一区视频在线看| 国产69精品久久99不卡| 波多野结衣一区二区三区 | 日产精品久久久久久久性色| 日本不卡视频在线观看| 久久99精品国产91久久来源| 国产在线不卡一卡二卡三卡四卡| 国产91丝袜在线18| 色乱码一区二区三区88| 欧美日韩一区二区三区四区| 欧美不卡一二三| 久久久综合视频| 亚洲乱码国产乱码精品精小说 | 亚洲香蕉伊在人在线观| 日本欧美在线观看| 久久av中文字幕片| 99精品一区二区| 欧美亚洲国产一区二区三区va| 欧美一二三区在线观看| 久久久影院官网| 一区二区三区精品视频| 久久97超碰国产精品超碰| www.欧美亚洲| 日韩欧美成人午夜| 国产精品国产精品国产专区不片| 亚洲一区二区在线免费看| 91麻豆国产在线观看| 欧美一区二区日韩一区二区| 国产亚洲欧美一区在线观看| 一区二区三区精品在线| 国产激情精品久久久第一区二区| 欧美丝袜自拍制服另类| 欧美国产综合一区二区| 日韩精品欧美精品| a在线欧美一区| 久久久五月婷婷| 视频一区二区不卡| 91小视频免费观看|