//////////////////////////////////////////////////////////////////////////////////////////////
// Made by J.H.KIM, 2012.12.24 / feelmare@daum.net, feelmare@gmail.com //
// My blog : http://feelmare.blogspot.com //
// My Lab : VISLAB(http://me.pusan.ac.kr) //
// My Institute : Realhub RnD Cneter(http://www.realhub.co.kr //
/////////////////////////////////////////////////////////////////////////////////////////////
8/31/2012
(source code)Camera Pan/Tilt using Servo motor, control by arduino
Download the Arduino software -> go to the page
Download usb driver -> go to the page
My environment is Window 7 64 bit.
Arduino version is Mega ADK.
If you are same equipment and window, download this file directly.
driver
Download usb driver -> go to the page
My environment is Window 7 64 bit.
Arduino version is Mega ADK.
If you are same equipment and window, download this file directly.
driver
8/28/2012
OpenGL 2 Views(windows) on MFC - Source code
It is a source code to make 2 views(windows) of openGL on MFC dialog.
Download this source code here.
This source code is applied by OpenGL Drawing test on MFC post on this site.
Download this source code here.
This source code is applied by OpenGL Drawing test on MFC post on this site.
8/20/2012
source code - OpenGL Drawing on MFC dlg(using COpenGLControl class)
This post introduces how to drawing opengl on the mfc dialog.
If we are using COpenGLControl class, this work is very easy and simple.
Fi rstly, get the COpenGLControl class in the web or on this.
1. In the ~Dlg.h, Add header file and member variable
#include "OpenGLControl.h"
~
COpenGLControl m_oglWindow;
2. Add below source code in the OnInitDialog() function.
CRect rect;
// Get size and position of the template textfield we created before in the dialog editor
GetDlgItem(IDC_PIC_OPENGL)->GetWindowRect(rect);
// Convert screen coordinates to client coordinates
ScreenToClient(rect);
// Create OpenGL Control window
m_oglWindow.oglCreate(rect, this);
// Setup the OpenGL Window's timer to render
m_oglWindow.m_unpTimer = m_oglWindow.SetTimer(1, 1, 0);
* You have to set picture box option as "Visible is False".
The source code is here.
If we are using COpenGLControl class, this work is very easy and simple.
Fi rstly, get the COpenGLControl class in the web or on this.
1. In the ~Dlg.h, Add header file and member variable
#include "OpenGLControl.h"
~
COpenGLControl m_oglWindow;
2. Add below source code in the OnInitDialog() function.
CRect rect;
// Get size and position of the template textfield we created before in the dialog editor
GetDlgItem(IDC_PIC_OPENGL)->GetWindowRect(rect);
// Convert screen coordinates to client coordinates
ScreenToClient(rect);
// Create OpenGL Control window
m_oglWindow.oglCreate(rect, this);
// Setup the OpenGL Window's timer to render
m_oglWindow.m_unpTimer = m_oglWindow.SetTimer(1, 1, 0);
* You have to set picture box option as "Visible is False".
The source code is here.
8/06/2012
Contour compare using OpenCV(source code), cvFindContours, cvMatchShapes
There is shape match function in the OpenCV.
The function name is cvMatchShapes.
This function compares two contours.
If two contours is same, the function returns 0.
conversely, the value of return is larger, more shape different.
So, we use threshold to decide these pair is similar or not.
code start
code end
#findcontour, #contour, #compare
source coude
The function name is cvMatchShapes.
This function compares two contours.
If two contours is same, the function returns 0.
conversely, the value of return is larger, more shape different.
So, we use threshold to decide these pair is similar or not.
code start
code end
#findcontour, #contour, #compare
source coude
Labels:
cvCreateMemStorage,
cvDrawContours,
cvFindContours,
cvLoadImage,
cvSaveImage,
cvThreshold,
OpenCV,
Total
Subscribe to:
Posts (Atom)
-
As you can see in the following video, I created a class that stitching n cameras in real time. https://www.youtube.com/user/feelmare/sear...
-
In past, I wrote an articel about YUV 444, 422, 411 introduction and yuv rgb converting example code. refer to this page -> http://feel...
-
Image size of origin is 320*240. Processing time is 30.96 second took. The result of stitching The resul...
-
The MNIST dataset is a dataset of handwritten digits, comprising 60 000 training examples and 10 000 test examples. The dataset can be downl...
-
fig 1. Left: set 4 points (Left Top, Right Top, Right Bottom, Left Bottom), right:warped image to (0,0) (300,0), (300,300), (0,300) Fi...
-
In the YUV color format, Y is bright information, U is blue color area, V is red color area. Show the below picture. The picture is u-v col...
-
Background subtractor example souce code. OpenCV support about 3 types subtraction algorithm. Those are MOG, MOG2, GMG algorithms. Det...
-
This article explain how to access the thread index when you make block and thread with two dimensions. please refer to this page about me...
-
Video stabilization example source code. The principle is like that... Firstly, to obtain 2 adjacent images extract good feature to t...
-
Created Date : 2010.8 Language : C/C++ Tool : Microsoft Visual C++ 6.0 Library & Utilized : STL Reference : A* i...