摘要: php调用empty时,出现“Can't use function return value in write context”错误。 源代码如下: if(empty(session("username"))) $this->redirect("Manager/login... 阅读全文
posted @ 2015-06-27 10:44 最美 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 一、修改apache中httpd.conf文件 1. 找到#LoadModule rewrite_module modules/mod_rewrite.so,将前面"#"去掉; 2.找到所有AllowOverride None,将其改为AllowOverride All;二、在自己项目中修改配置... 阅读全文
posted @ 2015-06-27 10:32 最美 阅读(407) 评论(0) 推荐(0) 编辑
摘要: int sz[3] = {2,2,3};//sz指定数组尺寸大小2*2*3 uchar * p; //用于访问像素 Mat m_mut(3,sz,CV_8UC(1),Scalar::all(0));//指定n维,当前为3维; for(int i=0;i<2;i++) //行数 for(int j... 阅读全文
posted @ 2015-01-08 22:17 最美 阅读(992) 评论(0) 推荐(0) 编辑
摘要: //读入、显示图像 Mat img = imread("../test.png",CV_LOAD_IMAGE_COLOR);//加载彩色图像 //CV_LOAD_IMAGE_GRAYSCALE灰度图像 namedWindow("test2",CV_WINDOW_AUTOSIZE);//给窗口命名 ... 阅读全文
posted @ 2015-01-08 13:51 最美 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 1.读入图像 Mat img = imread("../test.png",CV_LOAD_IMAGE_COLOR);//加载彩色图像2.访问,两种访问方式2.1.Mat.at Vec3b vec = img.at(1,2); printf("%d,%d,%d\n",vec[0],vec[1],v... 阅读全文
posted @ 2015-01-08 13:50 最美 阅读(424) 评论(0) 推荐(0) 编辑
摘要: 1.控制器中取得数据,构建SelectList,利用ViewData传值到View //*****************得到所有部门名称*********// List names = dep_m_BLL.GetAllNames(); //*****************构建SelectList... 阅读全文
posted @ 2014-10-27 15:38 最美 阅读(573) 评论(0) 推荐(0) 编辑