??
给定一副彩色图像,它由一个mxn的像素数组A[1..m,1..n]构成,每个像素是一个红绿蓝(RGB)亮度的三元组。假定我们希望轻度压缩这幅图像。具体地,我们希望从每一行中删除一个像素,使得图像变窄一个像素。但为了避免影响视觉效果,我们要求相邻两行中删除的像素必须位于同一列或相邻列。也就是说,删除的像素构成从顶端行到底端行的一条“接缝”(seam),相邻像素均在垂直或对角线方向上相邻...
分类:
其他好文 时间:
2014-08-14 20:40:29
阅读次数:
428
public IBalloonCallout CreateBallonCallout(double x, double y) { IRgbColor pRgbClr = new RgbColorClass(); pRgbClr.Red = ...
分类:
其他好文 时间:
2014-08-14 16:12:49
阅读次数:
244
public ITextElement CreateTextElement(double x, double y, string text) { IBalloonCallout bc = CreateBallonCallout(x, y); ...
分类:
其他好文 时间:
2014-08-14 16:10:38
阅读次数:
188
table { margin:auto; *border-collapse: collapse; /* IE7 和更低的浏览器 */ border-spacing: 0; width: 80%; } /*加在table标签里*/ .bordered { border: solid #ccc 1px;...
分类:
其他好文 时间:
2014-08-14 15:54:28
阅读次数:
182
转自:http://lizhuang.iteye.com/blog/1931768?//RGB Color macro#define UIColorFromRGB(rgbValue) [UIColor \colorWithRed:((float)((rgbValue & 0xFF0000) >> 1...
分类:
移动开发 时间:
2014-08-14 10:24:48
阅读次数:
249
??
冒泡,快排都是常见的排序方法,这里介绍用头文件中的qsort函数排序。不过自己要先一个cmp函数。
#include//qsort的头文件
int a[100]={0,2,4,1,5,7,3,8,9}; //要排序的数组
struct Person//要排序的结构体
{
char num[20];
char name[100];
int score;
int sum;
}man...
分类:
其他好文 时间:
2014-08-13 22:39:27
阅读次数:
330
1 background: rgba(255, 255, 255, 0.8) !important; /* IE无效,FF有效 */2 3 background: #fff;4 5 filter: alpha(opacity=60);在需要不透明文字的...
分类:
其他好文 时间:
2014-08-13 18:37:26
阅读次数:
211
中文(中国):values-zh-rCN中文(台湾):values-zh-rTW中文(香港):values-zh-rHK英语(美国):values-en-rUS英语(英国):values-en-rGB英文(澳大利亚):values-en-rAU英文(加拿大):values-en-rCA英文(爱尔兰)...
分类:
移动开发 时间:
2014-08-13 17:54:26
阅读次数:
291
+(UIColor *)colorWithRGB:(int)color alpha:(float)alpha{ return [UIColor colorWithRed:((Byte)(color >> 16))/255.0 green:((Byte)(color >> 8))/255.0 blu....
分类:
其他好文 时间:
2014-08-13 12:42:46
阅读次数:
228
1. 阈值原理阈值的定义其实就是“临界点”,即过了这个临界点是一种情况(比如黑色),没有超过这个临界点是另外一种情况(比如白色),所以图像上只有黑、白两种情况出现。临界点的值由你定义;阈值实际应用是把彩色图像的所有像素的亮度映射到的人为划分的0~255这256种亮度层次区域中,0为黑色(RGB三色光...
分类:
其他好文 时间:
2014-08-13 03:29:15
阅读次数:
353