继续上次的例子,对于list才说只有行,讨论列是没有意义的。 bool insertRows(int
row, int count, const QModelIndex &parent); bool removeRows(int row, int
count, const QModel...
分类:
Web程序 时间:
2014-05-27 01:25:29
阅读次数:
296
1 #include 2 #include 3 #include 4 #include 5 6 7
void salt(cv::Mat& image, int n) 8 { 9 10 for(int k=0; k img = image;20
img(j...
分类:
其他好文 时间:
2014-05-19 20:04:01
阅读次数:
289
本日这么多年一直做C++开发,最近要做QT项目,被QT做界面的新特性所吸引。QSS
QML的确是亮点。还有一个就是跨平台这方面,自己玩了玩。用的QT
的开发包是在官网上下载qt-opensource-mac-x64-android-ios-5.2.1.dmg在使用Qt creator写一个hellw...
分类:
其他好文 时间:
2014-05-19 20:02:12
阅读次数:
342
#include #include #include #include void
colorReduce(cv::Mat& image, int div=64){ int nr = image.rows; int nc =
image.cols * image.channels(...
分类:
其他好文 时间:
2014-05-19 19:54:20
阅读次数:
270
1.OpenCV中CvArr的定义:在opencv h文件里是这样定义 CvArr :/*
CvArr* is used to pass arbitrary * array-like data structures * into functions
where the particular * ar...
分类:
编程语言 时间:
2014-05-19 15:01:44
阅读次数:
474
1 #include 2 #include 3 #include 4 5 void
colorReduce(cv::Mat& img, int div=64); 6 7 8 int main() 9 {10 cv::Mat
img_orginal = cv::imread("F...
分类:
其他好文 时间:
2014-05-19 14:41:55
阅读次数:
275
在 Qt5 中,提供更多 C++11 的特性支持,接下来我们将进行详细的说明。slots
(槽) 的 Lambda 表达式Lambda表达式是 C++11
中的一个新语法,允许定义匿名函数。匿名函数可用于使用小函数作为参数,而无需显式的进行声明。之前可以通过编写函数指针来达到同样的目的。在 Qt 4...
分类:
编程语言 时间:
2014-05-19 12:28:11
阅读次数:
373
使用了几种办法
1:使用Qt下面的QListview来实现QQ类似效果,差强人意
2:使用QWebview加载html css样式来完成,发现效果不错,但是毕竟webview占用巨大的内存
3:使用QTextBrower加载css,但是好像只支持css2.1版本,css3完全不支持,这样的话,花哨的样式应该是无法实现...
分类:
其他好文 时间:
2014-05-18 15:02:04
阅读次数:
500
在QT内使用Opencv,调试了好久总是出问题。开始在pro文件内进行了opencv的配置,然后就是不能识别#include包含文件,后来不知道什么原因,神奇地 能够识别包含了。可是,新的问题出现了,不能够识别cv函数,后来发现仅仅是不能识别opencv2.4函数,opencv1.0的函数还是可以识别的,使用IplImage能够正常显示图像。后来不知道怎么回事,又神奇地可以识别opencv2.4....
分类:
其他好文 时间:
2014-05-18 09:04:39
阅读次数:
306
Paraview程序的架构
Paraview 支持多种数据格式和显示方式,目前包括网格绘制,面绘制,体绘制等方法。若要扩展 Paraview 的功能,必须了解其绘制的固定流水线,并且必须要编写符合 Paraview 接口规范的代码。
可视化包含三个基本的步骤:数据读取,数据过滤和数据渲染。首先,数据需要被读取到可视化应用程序 ParaView 中;接着,根据分析需要选择若干种过滤器来处理这些数...
分类:
其他好文 时间:
2014-05-18 04:54:16
阅读次数:
550