摘要:
好吧,现学现卖,表示标题有点长啊。问题不在描述了,粘贴格式不对。只把我修改好的特化版本代码贴出:#include <string>#include <iostream>#include <stdlib.h>#include <string>using namespace std;template <typename Type> int count(Type *a, int sz, Type which ){ int n = 0; for(int i=0; i < sz; i++) if ( a[i] == which ) n++ 阅读全文
摘要:
I am programming an image segmentation program. For this purpose I am using a multi-resolution algorithm. It works partially but one problem remains.In literature I found the following description of my problem:For the maintenance of a similar size/scale of all image objects it is necessary to let t 阅读全文
摘要:
function write_infile( filename,source_matrix )%TEST Summary of this function goes here% write matrix to filefid=fopen(filename,'a');[x,y]=size(source_matrix);for i=1:x for j=1:y-1 fprintf(fid,'%f\t',source_matrix(i,j)); end fprintf(fid,'%f\n',source_matrix(i,y));%每一行回车\nendf 阅读全文
摘要:
comefromvideolectures.net是一个很好很强大的网站,里面有各种学科的大量学术讲座视频,其中尤其又以CS的为多。视频可以在线观看,还有配套的slides可供下载。唯一不爽的是视频用通常的方法是下载不了的,即使得到了mms开头的URL,再用快车或影音传送带等软件下载也不行。虽然在线看的话流畅性也完全没有问题,但对于大部分教育网学生用户来说,毕竟流量宝贵,所以我只好找了一堆软件来试,发现这个Replay Media Catcher这个软件很好使,只要先把它打开,再访问包含流媒体的网页,它就会自动探测到视频并开始下载,而且在下载过程中你无须再一直播放着那个视频,完全可以把网页关了 阅读全文