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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? subimage.c

?? NIST Handwriting OCR Testbed
?? C
字號:
/*# proc: subimage_copy - copies an 8-bit subimage to another image at a# proc:                 specified location.# proc: subimage_and - uses a logical AND operator to copy an 8-bit subimage# proc:                to another image at a specified location.# proc: subimage_or - uses a logical OR operator to copy an 8-bit subimage# proc:               to another image at a specified location.# proc: subimage_xor - uses a logical XOR operator to copy an 8-bit subimage# proc:                to another image at a specified location.# proc: subimage_add - copies an 8-bit subimage to another image adding the# proc:                subimage pixels to the pixels at the specified location.# proc: subimage_sub - copies an 8-bit subimage to another image subtracting# proc:                subimage pixels from pixels at the specified location.# proc: subimage_lookup - addresses a lookup table with the pixels from an# proc:                   8-bit subimage and assignes the lookups to the# proc:                   destination image at the specified location.# proc: subimage_addcon - adds a constant to the pixels in an 8-bit subimage.# proc:# proc: subimage_subcon - subtracts a constant from the pixels in an 8-bit# proc:                   subimage.# proc: subimage_multcon - multiplies a constant to the pixels in an 8-bit# proc:                    subimage.# proc: subimage_divcon - divides the pixels in an 8-bit subimage by a# proc:                   constant.# proc: subimage_fmultcon - multiplies a floating point constant to the pixels# proc:                     in an 8-bit subimage.# proc: subimage_fdivcon - divides the pixels in an 8-bit subimage by a# proc:                    floating point constant.# proc: subimage_set - sets all the pixels in an 8-bit subimage to a specified# proc:                value.# proc: subimage_zeroes - sets all the pixels in an 8-bit subimage to zero.# proc:# proc: subimage_ones - sets all the pixels in an 8-bit subimage to one.# proc:# proc: subimage_invert - inverts all the pixels in an 8-bit subimage.# proc:*//* LINTLIBRARY */#include <stdio.h>#include <values.h>#include <sys/types.h>#include <sys/param.h>#define LUTSIZE		(1 << BITSPERBYTE)#define MAX_UCHAR	(LUTSIZE - 1)/***********************************************************************/subimage_copy (		src, srcw, srch,			dst, dstw, dsth,			srcx, srcy, w, h, dstx, dsty )register u_char *src, *dst;u_int srcw, srch, dstw, dsth, w, h;int srcx, srcy, dstx, dsty;{register u_int i;int dstdx, srcdx;src += srcy * srcw + srcx;srcdx = srcw - w;dst += dsty * dstw + dstx;dstdx = dstw - w;while (h--) {	i = w;	while (i--)		*dst++ = *src++;	dst += dstdx;	src += srcdx;}}/***********************************************************************/subimage_and (		src, srcw, srch,			dst, dstw, dsth,			srcx, srcy, w, h, dstx, dsty )register u_char *src, *dst;u_int srcw, srch, dstw, dsth, w, h;int srcx, srcy, dstx, dsty;{register u_int i;int dstdx, srcdx;src += srcy * srcw + srcx;srcdx = srcw - w;dst += dsty * dstw + dstx;dstdx = dstw - w;while (h--) {	i = w;	while (i--)		*dst++ &= *src++;	dst += dstdx;	src += srcdx;}}/***********************************************************************/subimage_or (		src, srcw, srch,			dst, dstw, dsth,			srcx, srcy, w, h, dstx, dsty )register u_char *src, *dst;u_int srcw, srch, dstw, dsth, w, h;int srcx, srcy, dstx, dsty;{register u_int i;int dstdx, srcdx;src += srcy * srcw + srcx;srcdx = srcw - w;dst += dsty * dstw + dstx;dstdx = dstw - w;while (h--) {	i = w;	while (i--)		*dst++ |= *src++;	dst += dstdx;	src += srcdx;}}/***********************************************************************/subimage_xor (		src, srcw, srch,			dst, dstw, dsth,			srcx, srcy, w, h, dstx, dsty )register u_char *src, *dst;u_int srcw, srch, dstw, dsth, w, h;int srcx, srcy, dstx, dsty;{register u_int i;int dstdx, srcdx;src += srcy * srcw + srcx;srcdx = srcw - w;dst += dsty * dstw + dstx;dstdx = dstw - w;while (h--) {	i = w;	while (i--)		*dst++ ^= *src++;	dst += dstdx;	src += srcdx;}}/***********************************************************************/subimage_add (		src, srcw, srch,			dst, dstw, dsth,			srcx, srcy, w, h, dstx, dsty )register u_char *src, *dst;u_int srcw, srch, dstw, dsth, w, h;int srcx, srcy, dstx, dsty;{register u_int i, sum;int dstdx, srcdx;src += srcy * srcw + srcx;srcdx = srcw - w;dst += dsty * dstw + dstx;dstdx = dstw - w;while (h--) {	i = w;	while (i--) {		sum = (u_int) *dst + (u_int) *src++;		if (sum >= MAX_UCHAR)			*dst++ = MAX_UCHAR;		else			*dst++ = sum;	}	dst += dstdx;	src += srcdx;}}/***********************************************************************/subimage_sub (		src, srcw, srch,			dst, dstw, dsth,			srcx, srcy, w, h, dstx, dsty )register u_char *src, *dst;u_int srcw, srch, dstw, dsth, w, h;int srcx, srcy, dstx, dsty;{register u_int i;int dstdx, srcdx;src += srcy * srcw + srcx;srcdx = srcw - w;dst += dsty * dstw + dstx;dstdx = dstw - w;while (h--) {	i = w;	while (i--) {		if (*src >= *dst) {			*dst++ = 0;			src++;		} else			*dst++ -= *src++;	}	dst += dstdx;	src += srcdx;}}/***********************************************************************/subimage_lookup ( lut, dst, dstw, dsth, dstx, dsty, w, h )register u_char *lut, *dst;u_int dstw, dsth, w, h;int dstx, dsty;{register u_int i;int dstdx;dst += dsty * dstw + dstx;dstdx = dstw - w;while (h--) {	i = w;	while (i--) {		*dst = lut[*dst];		dst++;	}	dst += dstdx;}}/***********************************************************************/subimage_addcon ( n, dst, dstw, dsth, dstx, dsty, w, h )register int n;register u_char *dst;u_int dstw, dsth, w, h;int dstx, dsty;{u_char lut[LUTSIZE];register u_int i, sum;if (n < 0)	subimage_subcon(-n,dst,dstw,dsth,dstx,dsty,w,h);else {	for (i=0; i<LUTSIZE; i++) {		sum = i + n;		if (sum >= MAX_UCHAR)			lut[i] = MAX_UCHAR;		else			lut[i] = sum;	}	subimage_lookup(lut,dst,dstw,dsth,dstx,dsty,w,h);}}/***********************************************************************/subimage_subcon ( n, dst, dstw, dsth, dstx, dsty, w, h )register int n;register u_char *dst;u_int dstw, dsth, w, h;int dstx, dsty;{u_char lut[LUTSIZE];register u_int i;if (n < 0)	subimage_addcon(-n,dst,dstw,dsth,dstx,dsty,w,h);else {	for (i=0; i<LUTSIZE; i++) {		if ((u_int) n >= i)			lut[i] = 0;		else			lut[i] = i - (u_int) n;	}	subimage_lookup(lut,dst,dstw,dsth,dstx,dsty,w,h);}}/***********************************************************************/subimage_multcon ( n, dst, dstw, dsth, dstx, dsty, w, h )register int n;register u_char *dst;u_int dstw, dsth, w, h;int dstx, dsty;{u_char lut[LUTSIZE];register u_int i, product;if (n < 0)	fatalerr("subimage_multcon",			"multiply by negative number",			(char *)NULL);for (i=0; i<LUTSIZE; i++) {	product = i * n;	if (product >= MAX_UCHAR)		lut[i] = MAX_UCHAR;	else		lut[i] = product;}subimage_lookup(lut,dst,dstw,dsth,dstx,dsty,w,h);}/***********************************************************************/subimage_divcon ( n, dst, dstw, dsth, dstx, dsty, w, h )register int n;register u_char *dst;u_int dstw, dsth, w, h;int dstx, dsty;{u_char lut[LUTSIZE];register u_int i;if (n < 0)	fatalerr("subimage_divcon",			"divide by negative number",			(char *)NULL);if (n == 0)	fatalerr("subimage_divcon",			"divide by zero",			(char *)NULL);for (i=0; i<LUTSIZE; i++)	lut[i] = i / (u_int) n;subimage_lookup(lut,dst,dstw,dsth,dstx,dsty,w,h);}/***********************************************************************/subimage_fmultcon ( f, dst, dstw, dsth, dstx, dsty, w, h )register double f;register u_char *dst;u_int dstw, dsth, w, h;int dstx, dsty;{u_char lut[LUTSIZE];register u_int i, product;if (f < 0.0)	fatalerr("subimage_fmultcon",			"multiply by negative number",			(char *)NULL);for (i=0; i<LUTSIZE; i++) {	product = (u_int) (i * f);	if (product >= MAX_UCHAR)		lut[i] = MAX_UCHAR;	else		lut[i] = product;}subimage_lookup(lut,dst,dstw,dsth,dstx,dsty,w,h);}/***********************************************************************/subimage_fdivcon ( f, dst, dstw, dsth, dstx, dsty, w, h )register int f;register u_char *dst;u_int dstw, dsth, w, h;int dstx, dsty;{if (f < 0.0)	fatalerr("subimage_fdivcon",		"divide by negative number",		(char *)NULL);if (f == 0.0)	fatalerr("subimage_fdivcon",		"divide by zero",		(char *)NULL);subimage_fmultcon(1.0/f,dst,dstw,dsth,dstx,dsty,w,h);}/***********************************************************************/subimage_set ( n, dst, dstw, dsth, dstx, dsty, w, h )register int n;register u_char *dst;u_int dstw, dsth, w, h;int dstx, dsty;{u_char lut[LUTSIZE];register u_int i;if (n < 0)	fatalerr("subimage_set",			"value out of range",			(char *)NULL);for (i=0; i<LUTSIZE; i++)	lut[i] = (char) n;subimage_lookup(lut,dst,dstw,dsth,dstx,dsty,w,h);}/***********************************************************************/subimage_zeroes ( dst, dstw, dsth, dstx, dsty, w, h )register u_char *dst;u_int dstw, dsth, w, h;int dstx, dsty;{subimage_set(0,dst,dstw,dsth,dstx,dsty,w,h);}/***********************************************************************/subimage_ones ( dst, dstw, dsth, dstx, dsty, w, h )register u_char *dst;u_int dstw, dsth, w, h;int dstx, dsty;{subimage_set(~0,dst,dstw,dsth,dstx,dsty,w,h);}/***********************************************************************/subimage_invert ( dst, dstw, dsth, dstx, dsty, w, h )register u_char *dst;u_int dstw, dsth, w, h;int dstx, dsty;{static int first=1;static u_char lut[LUTSIZE];register u_int i;if (first) {	first = 0;	for (i=0; i<LUTSIZE; i++)		lut[i] = ~ (u_char) i;}subimage_lookup(lut,dst,dstw,dsth,dstx,dsty,w,h);}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人黄色国产精品网站大全在线免费观看| 久久夜色精品国产噜噜av| 久久精品国产免费| 中文字幕一区二区三区视频| 宅男在线国产精品| 色综合天天在线| 国产不卡视频一区二区三区| 午夜精品免费在线| 中文字幕亚洲精品在线观看| 精品国产3级a| 制服丝袜亚洲精品中文字幕| 91麻豆免费观看| 成人精品高清在线| 国产999精品久久| 狠狠色丁香久久婷婷综| 青青草原综合久久大伊人精品优势| 中文字幕国产一区| 国产精品无遮挡| 国产欧美日韩不卡免费| 久久一二三国产| 欧美mv日韩mv国产网站app| 欧美一级片在线看| 日韩欧美成人激情| 精品美女一区二区三区| 日韩精品专区在线影院重磅| 777午夜精品视频在线播放| 欧美亚洲丝袜传媒另类| 在线不卡中文字幕| 粉嫩欧美一区二区三区高清影视 | 国产91精品欧美| 国产不卡在线视频| 91美女在线看| 777久久久精品| 欧美精品一区二区蜜臀亚洲| 国产欧美一区二区精品婷婷 | 成人黄动漫网站免费app| 丰满少妇在线播放bd日韩电影| 成人永久看片免费视频天堂| 色综合天天性综合| 日韩一二在线观看| 中文字幕乱码久久午夜不卡 | 亚洲精品免费一二三区| 亚洲精品久久嫩草网站秘色| 日韩国产欧美在线播放| 国产成人丝袜美腿| 欧美在线观看一区二区| 欧美精品一区二| 一区二区在线免费| 国内国产精品久久| 欧美色图一区二区三区| 亚洲精品一区二区三区99| 亚洲欧美激情插| 国产福利一区二区三区在线视频| 91女厕偷拍女厕偷拍高清| 在线成人小视频| 亚洲一区在线观看免费观看电影高清| 久久精品999| 欧美精品在线一区二区三区| 国产精品毛片久久久久久久| 亚洲自拍偷拍av| 国产精品18久久久久久久久| 欧美在线观看禁18| 亚洲蜜桃精久久久久久久| 国产酒店精品激情| 久久亚洲二区三区| 免费成人你懂的| 欧美一区二区在线播放| 视频一区视频二区在线观看| 一本大道久久a久久综合| 久久久久久免费毛片精品| 亚洲国产毛片aaaaa无费看| 色婷婷激情久久| 亚洲精品国产一区二区三区四区在线| 成人污视频在线观看| 国产欧美精品在线观看| 韩国av一区二区三区在线观看| 日韩欧美在线不卡| 蜜臀a∨国产成人精品| 精品久久久久久无| 国产传媒日韩欧美成人| 国产精品久久久久精k8| 99久久er热在这里只有精品15 | 99免费精品视频| 亚洲日本中文字幕区| 欧美疯狂性受xxxxx喷水图片| 日韩av不卡在线观看| 久久精品一区二区三区不卡| 91麻豆精东视频| 亚洲777理论| 久久嫩草精品久久久精品| 91免费国产在线观看| 秋霞电影一区二区| 久久影院午夜片一区| 91在线视频网址| 青青草原综合久久大伊人精品 | 久久女同性恋中文字幕| 91美女在线视频| 日本91福利区| 中文字幕一区二区三区乱码在线| 欧亚一区二区三区| 国产一区视频网站| 石原莉奈在线亚洲二区| 精品国产电影一区二区| 在线观看成人免费视频| 国产成人精品免费一区二区| 亚洲午夜久久久久中文字幕久| 欧美成人r级一区二区三区| 91黄视频在线| 成人午夜视频在线| 另类欧美日韩国产在线| 亚洲永久免费视频| 中文字幕字幕中文在线中不卡视频| 678五月天丁香亚洲综合网| 99视频在线观看一区三区| 国内成人免费视频| 国产在线精品一区二区三区不卡 | 亚洲综合视频在线| 18欧美乱大交hd1984| 国产日韩欧美麻豆| 亚洲精品一区二区三区香蕉| 欧美顶级少妇做爰| 欧美一区二区三区播放老司机| 91丨porny丨最新| 日本精品裸体写真集在线观看| kk眼镜猥琐国模调教系列一区二区| 国产精品影视在线| 国产91丝袜在线播放九色| 国产精品综合av一区二区国产馆| 蜜桃av一区二区| 国产成人精品一区二区三区四区| 免费观看日韩电影| 国产毛片精品国产一区二区三区| 国内精品久久久久影院色| 国产一区二区美女诱惑| 丰满岳乱妇一区二区三区| 久久精品国产亚洲a| 奇米888四色在线精品| 国产综合久久久久久久久久久久| 韩国女主播成人在线观看| 国产成人自拍在线| 色爱区综合激月婷婷| 3d动漫精品啪啪1区2区免费 | 日韩午夜在线影院| 国产精品欧美经典| 一二三区精品视频| 国产一区二区三区免费观看| 不卡一区中文字幕| 日韩一区二区不卡| 蜜桃久久久久久| 风流少妇一区二区| 91精品国产aⅴ一区二区| 国产人成一区二区三区影院| 一区二区三区产品免费精品久久75| 极品少妇一区二区| 91国在线观看| 国产精品人妖ts系列视频| 日韩福利电影在线观看| 91免费小视频| 欧美mv和日韩mv的网站| 一区二区三区国产豹纹内裤在线| 毛片基地黄久久久久久天堂| 色呦呦网站一区| 欧美激情综合五月色丁香小说| 亚洲一区二区影院| 91亚洲资源网| 中文一区在线播放| 国产精品一区二区在线观看网站| 欧美中文字幕一二三区视频| 中文在线免费一区三区高中清不卡| 美女性感视频久久| 日韩欧美亚洲另类制服综合在线| 一区二区三区四区中文字幕| 91麻豆国产自产在线观看| 日韩理论电影院| a级高清视频欧美日韩| 国产精品久久久久久久久搜平片| 国内外成人在线| 亚洲精品一区二区三区99| 国产一区二区女| 国产婷婷一区二区| 成人性生交大片免费看中文| 国产亚洲成年网址在线观看| 国产专区欧美精品| 久久综合狠狠综合久久综合88| 精品一区二区综合| 久久日韩精品一区二区五区| 国产毛片精品国产一区二区三区| 久久精品亚洲一区二区三区浴池| www.欧美.com| 亚洲欧美成aⅴ人在线观看| 在线观看日韩一区| 美女www一区二区| 中文字幕欧美日韩一区| 欧美视频你懂的| 国产在线观看免费一区| 一区二区三区**美女毛片| 欧美大度的电影原声| av电影天堂一区二区在线| 午夜影视日本亚洲欧洲精品| 欧美tk—视频vk|