V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  10iii  ›  全部回复第 9 页 / 共 9 页
回复总数  169
1  2  3  4  5  6  7  8  9  
2013-10-08 10:03:40 +08:00
回复了 forest520 创建的主题 问与答 有没有待机时间长又能用微信的手机?
@ytzong E63表示吃饱之后两三天没啥问题。
2013-10-08 09:57:58 +08:00
回复了 Livid 创建的主题 程序员 你觉得你每天 coding 过程中最大的干扰是?
母的+1
2013-09-25 15:14:48 +08:00
回复了 mengli 创建的主题 上海 以后会有一堆人卖上海VPN吗?
乃衣服。
2013-09-23 17:41:33 +08:00
回复了 d00b00 创建的主题 Node.js 目前国内哪些网站使用了NodeJS呢?
爪机误入啊。
2013-08-28 10:17:44 +08:00
回复了 vking 创建的主题 随想 [头脑风暴]关于亏损问题
首先不是会计记账。
你的损失是手机掉厕所造成的,基本跟新买的那个手机没啥关系。
你旧的手机本来可以二手出掉,因为掉厕所,现在只能卖200.所以你的损失是(正常二手出手价-200)。
@poplar 嗯。推荐得好。
2013-08-27 10:24:44 +08:00
回复了 oneone 创建的主题 程序员 赚外快啦:现金200悬赏用C语言实现图片查找的简单函数
说个思路吧,不管时间复杂度:
struct image {
int w;
int h;
int* buf;
} imageFoFind, imageFindFrom;

findImagesFuzzilyIgnoreColor(imageToFind, imageFindFrom, colorValue, fuzzyValue) {
int i,j;
for (i=0;i<imageFindFrom.w-imageToFind.w;i++)
for (j=0;j<imageFindFrom.h-imageToFind.h;j++)
if match(imageToFind, imageFindFrom, colorValue, fuzzyValue,i,j) location.push([i,j]);
return location;
}

int match (imageToFind, imageFindFrom, colorValue, fuzzyValue,i,j) {
int max=imageToFind.w*imageToFind.h*(1-fuzzyValue);
int d=0,x,y;
for (x=0;x<imageToFind.w;x++)
for (y=0;y<imageToFind.h;y++) {
if ((imageToFind.buf[x][y]!=imageFindFrom[i+x][j+y])&&(imageFindFrom[i+x][j+y]!=colorValue)&&(imageToFind.buf[x][y]!=colorValue)) d++;
if d>max return 0;
}
return 1;
}

基本就这样吧。不排除语法错误,编译肯定通不过。
2013-04-12 11:27:23 +08:00
回复了 zouzhuan 创建的主题 分享创造 现在可以用比特币在亚马逊中国上买东西啦~
域名已经失效了。转到name.com的广告页。
2013-03-05 09:30:32 +08:00
回复了 itopidea 创建的主题 问与答 弱弱的问个命名问题
4 = for
1  2  3  4  5  6  7  8  9  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2363 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 32ms · UTC 12:46 · PVG 20:46 · LAX 05:46 · JFK 08:46
Developed with CodeLauncher
♥ Do have faith in what you're doing.