- 博客(107)
- 资源 (1)
- 收藏
- 关注
原创 CUDA:simpleMPI
Sample: simpleMPIMinimum spec: SM 3.0Simple example demonstrating how to use MPI in combination with CUDA.Key concepts:CUDA Systems IntegrationMPIMultithreadingsimpleMPI.h/* * Copyright 1993-2015 NVIDIA Corporation. All rights reserved. *
2021-10-28 11:43:49
292
原创 CUDA:cudaOpenMP
Sample: cudaOpenMPMinimum spec: SM 3.0This sample demonstrates how to use OpenMP API to write an application for multiple GPUs.Key concepts:CUDA Systems IntegrationOpenMPMultithreading/* * Copyright 1993-2015 NVIDIA Corporation. All rights r.
2021-10-28 11:08:11
475
原创 CUDA:cppOverload
Sample: cppOverloadMinimum spec: SM 3.0This sample demonstrates how to use C++ function overloading on the GPU.Key concepts:C++ Function OverloadingCUDA Streams and EventscppOverload_kernel.cuh__global__ void simple_kernel(const int *pIn, int.
2021-10-28 10:56:59
283
原创 CUDA:cppIntegration
Sample: cppIntegrationMinimum spec: SM 3.0This example demonstrates how to integrate CUDA into an existing C++ application, i.e. the CUDA entry point on host side is only a function which is called from C++ code and only the file containing this functio
2021-10-28 10:50:49
186
原创 CUDA:clock_nvrtc
Sample: clock_nvrtcMinimum spec: SM 3.0This example shows how to use the clock function using libNVRTC to measure the performance of block of threads of a kernel accurately.Key concepts:Performance StrategiesRuntime Compilationclock_kernel.cu.
2021-10-28 10:40:51
193
原创 CUDA:clock
Sample: clockMinimum spec: SM 3.0This example shows how to use the clock function to measure the performance of block of threads of a kernel accurately.Key concepts:Performance Strategies/* * Copyright 1993-2015 NVIDIA Corporation. All rights .
2021-10-28 09:55:21
152
原创 CUDA:simplePrintf
Sample: simplePrintfMinimum spec: SM 3.0This CUDA Runtime API sample is a very basic sample that implements how to use the printf function in the device code. Specifically, for devices with compute capability less than 2.0, the function cuPrintf is call
2021-10-28 09:49:20
202
转载 OpenCV Tutorials Optical Flow
GoalIn this chapter,We will understand the concepts of optical flow and its estimation using Lucas-Kanade method. We will use functions likecv.calcOpticalFlowPyrLK()to track feature points in a...
2020-01-11 14:44:08
530
转载 Learn OpenCV Video Stabilization Using Point Feature Matching in OpenCV
In this post, we will learn how to implement a simple Video Stabilizer using a technique called Point Feature Matching in OpenCV library.We will discuss the algorithm and share the code(in python) to...
2019-12-31 23:38:38
1366
转载 Learn OpenCV Deep Learning based Text Recognition (OCR) using Tesseract and OpenCV
In today’s post, we will learn how to recognize text in images using an open source tool calledTesseractand OpenCV. The method of extracting text from images is also called Optical Character Recogni...
2019-12-31 18:40:59
676
转载 Learn OpenCV Deep Learning based Text Detection Using OpenCV (C++/Python)
There is a common saying,“A picture is worth a thousand words“. In this post, we are going to take that literally and try to find the words in a picture! In an earlier post aboutText Recognition, we...
2019-12-31 17:26:58
346
转载 Learn OpenCV Gender & Age Classification using OpenCV Deep Learning ( C++/Python )
In this tutorial, we will discuss an interesting application of Deep Learning applied to faces. We will estimate the age and figure out the gender of the person from a single image. The model is train...
2019-12-26 23:12:19
495
1
转载 Learn OpenCV Gaze Tracking
In today’s post, we are covering the topic of Gaze Estimation and Tracking.I was invited to give a talk on the subject at a workshop onEye Tracking for AR and VRorganized by Facebook Research at t...
2019-12-26 22:54:13
971
转载 Windows Using Condition Variables
The following code implements a producer/consumer queue. The queue is represented as a bounded circular buffer, and is protected by a critical section. The code uses two condition variables: one used ...
2019-12-26 22:11:18
209
转载 Windows Using Critical Section Objects
The following example shows how a thread initializes, enters, and releases acritical section. It uses theInitializeCriticalSectionAndSpinCount,EnterCriticalSection,LeaveCriticalSection, andDelete...
2019-12-26 20:51:58
130
转载 Windows Using Mutex Objects
You can use amutex objectto protect a shared resource from simultaneous access by multiple threads or processes. Each thread must wait for ownership of the mutex before it can execute the code that ...
2019-12-26 20:41:02
135
转载 Windows Using Semaphore Objects
The following example uses asemaphore objectto limit the number of threads that can perform a particular task. First, it uses theCreateSemaphorefunction to create the semaphore and to specify init...
2019-12-26 20:29:02
156
转载 Windows Waiting for Multiple Objects
The following example uses theCreateEventfunction to create two event objects and theCreateThreadfunction to create a thread. It then uses theWaitForMultipleObjectsfunction to wait for the threa...
2019-12-26 20:26:59
191
转载 Windows CreateThread function
Creates a thread to execute within the virtual address space of the calling process.To create a thread that runs in the virtual address space of another process, use theCreateRemoteThreadfunction....
2019-12-26 20:21:51
281
转载 Windows Creating Threads
TheCreateThreadfunction creates a new thread for a process. The creating thread must specify the starting address of the code that the new thread is to execute. Typically, the starting address is th...
2019-12-26 20:07:08
268
转载 关于opengl中多重纹理,离屏与渲染到屏幕切换,可编程管线有固定管线切换的理解
最近用opengl写项目时遇见几个问题,感觉比较通用写下啦分享;一, opengl多重纹理的使用二, opengl离屏渲染与渲染到屏幕切换使用三, opengl可编程管线与固定管线切换使用经过一个成功与失败的魔力,现在终于算是理解opengl中纹理,缓冲区对象(FBO),及着色器的使用了一下只是一己之见,错误难免,望各位指教。1.首相说一...
2018-04-23 11:18:49
1334
转载 OpenGL中屏幕渲染On/Off
OpenGL中,GPU屏幕渲染有以下两种方式:On-Screen Rendering意为当前屏幕渲染,指的是GPU的渲染操作是在当前用于显示的屏幕缓冲区中进行。Off-Screen Rendering意为离屏渲染,指的是GPU在当前屏幕缓冲区以外新开辟一个缓冲区进行渲染操作。二、离屏渲染的是是非非相比于当前屏幕渲染,离屏渲染的代价是很高的,主要体现在两个方面:创建新缓冲区要想进行离屏渲染,首先要创...
2018-04-23 11:09:33
756
翻译 FBO render to texture渲染到纹理
代码参考1:https://github.com/wld0595/FBO// Include standard headers#include <stdio.h>// Include GLEW#include <GL/glew.h>// Include GLFW#include <GLFW/glfw3.h>GLFWwindow* window;...
2018-04-20 17:02:02
1083
转载 opengl glm矩阵变换
opengl 矩阵变换http://blog.csdn.net/cloud95/article/details/37877131我们给我们的图形,设置好顶点坐标后,通过Model Matrix 变换为世界坐标,然后 view Matrix相机坐标,Projection Matrix 屏幕坐标x,y ∈(-1,1)。矩阵变换的结果是把三维的世界最终裁剪为二维的屏幕,数学的说法就是从一个集合到另一个集...
2018-03-08 13:21:38
4101
转载 C++编译期多态与运行期多态
阅读目录前言运行期多态编译期多态运行期多态与编译期多态优缺点分析运行期多态优点运行期多态缺点编译期多态缺点关于显式接口与隐式接口 正文回到顶部前言今日的C++不再是个单纯的“带类的C”语言,它已经发展成为一个多种次语言所组成的语言集合,其中泛型编程与基于它的STL是C++发展中最为出彩的那部分。在面向对象C++编程中,多态是OO三大特性之一,这种多态称为运行期多态,也称为动态多态;在泛型编程中,多...
2018-02-27 17:20:16
216
转载 串口之COMMTIMEOUTS结构体详解
COMMTIMEOUTS主要用于串口超时参数设置。COMMTIMEOUTS结构如下: typedef struct _COMMTIMEOUTS { DWORD ReadIntervalTimeout; DWORD ReadTotalTimeoutMultiplier; DWORD ReadTotalTimeoutConstant; DWORD WriteTotalTimeo
2018-01-11 17:06:51
887
转载 OpenCV样本训练经验
从下述几篇文章中总结: - OpenCV中Adaboost训练的经验总结 - 采用opencv_cascadetrain进行训练的步骤及注意事项 - 使用opencv_traincascade训练遇到的问题总汇在讲下面内容时首先应先清楚一件事情,自己收集到的原始负样本和参与训练的负样本(numNeg)不是同一个概念,两者无必然联系,通过在原始负样本图像上滑动和scale
2017-12-27 14:03:04
1026
1
转载 fstream获得文件大小
ifstream fsRead; fsRead.open(srcFilePath.c_str(), ios::in|ios::binary); if (!fsRead) { sec_error("Uncompress processing: can not open source file! [%s]",src_file_name); return
2017-12-27 13:20:43
7815
转载 HOG detectMultiScale 参数分析
前段时间学习了HOG描述子及其与SVM结合在行人检测方面的应用。当我们用训练好的模型去检测测试图像时,我们会用到detectMultiScale() 这个函数来对图像进行多尺度检测。这是opencv3.1里的参数解释可以看到一共有8个参数。1.img(必需)这个不用多解释,显然是要输入的图像。图像可以是彩色也可以是灰度的。2.foundLoc
2017-12-04 15:25:32
1326
转载 VBO-EBO-VAO-01
#include #include #include #include GLuint eboID;GLuint vboID;GLuint vaoID;GLfloat vertices[] = { 0.5f, 0.5f, -1.0f, // 右上角 0.5f, -0.5f, -1.0f, // 右下角 -0.5f, -0.5f, -1.0f, // 左下角 -0.5f
2017-11-30 18:23:07
241
转载 VBO usage标示符
VBO允许usage标示符取以下9种值:GL_STATIC_DRAW_ARBGL_STATIC_READ_ARBGL_STATIC_COPY_ARBGL_DYNAMIC_DRAW_ARBGL_DYNAMIC_READ_ARBGL_DYNAMIC_COPY_ARBGL_STREAM_DRAW_ARBGL_STREAM_READ_ARB
2017-11-30 14:11:13
219
转载 正确理解 opengl 的 vao(知乎)
作者:禾惠链接:https://www.zhihu.com/question/30095978/answer/87995822来源:知乎著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。OpenGL在画画的时候,要用到很多的信息,如顶点的坐标、纹理、颜色等等.... 假如一个顶点包含了坐标和颜色的信息,那么这个顶点处的数据格式可能如下:x, y,
2017-11-29 17:38:52
3786
转载 OpenGL 深度测试使用
第一,什么是openGL的深度 所谓深度,就是在openGL坐标系中,像素点Z坐标距离摄像机的距离。摄像机可能放在坐标系的任何位置,那么,就不能简单的说Z数值越大或越小,就是越靠近摄像机。openGL 会专门用一个缓冲区来存放这个Z坐标数值。就叫深度缓冲区。第二,深度缓冲区的作用 一般情况下,我们绘制图片,后绘制的会覆盖前面的。所以,一般我们绘制顺序是先后面在前面。
2017-11-29 15:19:39
1306
转载 使用VBO对glVertexAttribPointer的影响
在openGL中glVertexAttribPointer是用来上传顶点数据到显卡的方法。这里的顶点数据是数组的形式。函数原型如下void glVertexAttribPointer(GLuint index, GLint size, GLenum type,
2017-11-29 15:16:54
852
1
转载 wglUseFontBitmaps/wglUseFontOutlines
GDI 显示文本---- 调用wglGetCurrentDC()函数取得当前的设备上下文,使用TextOut函数显示文本,不过要注意在DoubleBuffer模式下,绘制函数要在glFinish()和 SwapBuffers(wglGetCurrentDC())函数之后调用,否则会产生闪烁,在绘制OpenGL结束之前使用GDI函数,要除去闪烁则只能使用SingleBuffer模式,具体函数如下
2017-11-12 13:59:02
2915
转载 OpenGL绘制直线
// main.c// opengl_ animationRect_0002//// Created by ch_soft on 12-1-16.// Copyright (c) 2012年 __MyCompanyName__. All rights reserved.//#include#include#include #include//用于绘制窗口需要的
2017-11-10 15:18:11
18789
转载 OpenGL图形函数(正方体、圆柱、圆锥)
#include #include #include #pragma comment(lib, "opengl32.lib")#pragma comment(lib, "glut32.lib")#pragma comment(lib, "glu32.lib")#pragma comment(lib, "glut.lib")#include void Cube(){ glBe
2017-11-10 11:10:16
5288
转载 OpenGL画球
void glutWireSphere(GLdouble radius, GLint slices, GLint stacks); 丝状球void glutSolidSphere(GLdouble radius, GLint slices, GLint stacks); 实心球我们以丝状球为例。函数原型:void glutWireSphere(GLdoub
2017-11-10 09:48:58
1577
转载 OpenCV中Adaboost训练的经验总结
以OpenCV训练级联Adaboost为例进行说明numPos: 12000numNeg: 120000numStages: 15precalcValBufSize[Mb] : 1000precalcIdxBufSize[Mb] : 800stageType: BOOSTfeatureType: HOGsampleWidth: 40
2017-11-08 14:37:58
1220
1
转载 C++继承中关于子类构造函数
转载于:http://www.cnblogs.com/kaige/p/cplusplus_virtual_inheritance_derived_class_constructor.html构造方法用来初始化类的对象,与父类的其它成员不同,它不能被子类继承(子类可以继承父类所有的成员变量和成员方法,但不继承父类的构造方法)。因此,在创建子类对象时,为了初始化从父类继承来的数据成员,系统需要调用
2017-11-07 16:48:27
2204
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人