//////////////////////////////////////////////////////////////////////////////////////////////
// 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)
-
Image size of origin is 320*240. Processing time is 30.96 second took. The result of stitching The resul...
-
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 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...
-
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...
-
This source code based on -> http://feelmare.blogspot.kr/2011/08/two-image-mosaic-paranoma-based-on-sift.html This link page introduces...
-
1. GEMM (General Matrix Multiplication): - This is the basic operation: C = A × B (matrix multiplication) - Fundamental operation in deep le...
-
* Introduction - The solution shows panorama image from multi images. The panorama images is processing by real-time stitching algorithm...
-
This is dithering example, it make image like a stippling effect. I referenced to blew website. wiki page: https://en.wikipedia.org/wik...
-
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...
-
I am wondering that two hog features can compare or not. There was a article about this question on this page -> http://stackoverflow...