mariotapilouw.blogspot.com
Mario.Tapilouw: March 2009
http://mariotapilouw.blogspot.com/2009_03_01_archive.html
Thursday, March 12, 2009. Obtaining filename in C Builder. Sometimes when we are working with image processing, we need to save the resulting image after finishing the process. Therefore we need the image file name so we can use the same file name with the original file with an additional prefix or suffix. Please remember to include map in your program. Std: map int,AnsiString. TFormMain: parseFields( AnsiString filename, AnsiString separator ). Std: map int,AnsiString lFields;. While( 1 ) {. Two days ag...
mariotapilouw.blogspot.com
Mario.Tapilouw: December 2009
http://mariotapilouw.blogspot.com/2009_12_01_archive.html
Thursday, December 31, 2009. Simple Object Tracking using OpenCV. This time, I am showing how to perform a simple object tracking using OpenCV. This is the simplest object tracking based on template matching method, so don't expect too much from this sample. You should be able to develop your own custom algorithm that is more powerful than this to suit your application. Tpl = cvCreateImage(cvSize( TPL WIDTH, TPL HEIGHT ), image- depth, image- nChannels );. Are the size of the search area. If object found...
mariotapilouw.blogspot.com
Mario.Tapilouw: Automatic Threshold
http://mariotapilouw.blogspot.com/2012/04/automatic-threshold.html
Wednesday, April 11, 2012. Threshold plays an important role in image segmentation. The threshold value in an image can be manually or automatically set. Manual threshold is not always suitable for all situation because different image may have different intensity distribution. Zack GW, Rogers WE, Latt SA (1977), "Automatic measurement of sister chromatid exchange frequency", J. Histochem. Cytochem. 25 (7): 741 53, PMID 70454. 1 Declare some IplImage objects:. 2 Load the image from a file:. CvCvtColor(im...
mariotapilouw.blogspot.com
Mario.Tapilouw: August 2009
http://mariotapilouw.blogspot.com/2009_08_01_archive.html
Tuesday, August 04, 2009. Generating sine wave using multimedia timer. In case we need a high resolution timer for our Windows based application, we can use multimedia timer. For an explanation of what multimedia timer is, you can refer to multimedia timer documentation. I will give an example of using this multimedia timer for generating sine wave. First you need to add these two lines in your source code:. Pragma comment(lib, "winmm.lib"). Then after that you can declare an instance of multimedia timer:.
mariotapilouw.blogspot.com
Mario.Tapilouw: September 2009
http://mariotapilouw.blogspot.com/2009_09_01_archive.html
Wednesday, September 16, 2009. Grabbing image from webcam using OpenCV. This is fun, I have a couple of unused webcam and trying to have some fun with them. This website. Shows a good tutorial about grabbing image from the webcam and I followed the tutorial. It is based on OpenCV and I used Visual C 2005 to write the program. Here's what I got:. Hehehe. this is just the beginning, wait for my other projects :D. Posted by mario at 3:59 PM. Friday, September 11, 2009. Real Time chart using OpenCV. CvInitFo...
mariotapilouw.blogspot.com
Mario.Tapilouw: Sine Fitting
http://mariotapilouw.blogspot.com/2012/03/sine-fitting.html
Saturday, March 03, 2012. Sine is not a linear function, but fitting series of data to sine function is actually not a difficult task. I need to apply this fitting function so I was trying to find a way to do this. Sine function can be represented in general form as:. Y(x) = A C * sin(x b). This function can be rewritten as:. Y(x) = A C * sin(b) * cos(x) C * cos(b) * sin(x). Or can also be written as:. Y = b0 b1 * x1 b2 * x2. 2 b1 2 b2 2 = c 2 * (sin 2(b) cos 2(b) = c 2. B1 2 b2 2. 3 tan(b) = b1/b2.
mariotapilouw.blogspot.com
Mario.Tapilouw: September 2007
http://mariotapilouw.blogspot.com/2007_09_01_archive.html
Monday, September 17, 2007. A very good chinese proverbs, I like it. It has a deep philosophical meaning. you must do everything step by step, one thing at a time and wholeheartedly, then you will get success in your life. Posted by mario at 5:58 PM. Hello there, my name is Mario and in this blog you can read some technical info about C programming, mainly about image processing and related techniques. View my complete profile. Mixing OpenGL and OpenCV. When fstream doesnt work.
mariotapilouw.blogspot.com
Mario.Tapilouw: Multiple Webcam using OpenCV 2.1 and Visual Studio 2008
http://mariotapilouw.blogspot.com/2011/12/multiple-webcam-using-opencv-21-and.html
Thursday, December 08, 2011. Multiple Webcam using OpenCV 2.1 and Visual Studio 2008. I just found out that it is not difficult to connect to two webcam using OpenCV and do image processing on the captured images. I used OpenCV 2.1 and Visual C 2008 for this program, so those who are familiar with Visual C 2008 should be familiar with this code. The installation and configuration of OpenCV is explained clearly in their wiki. And you can follow the steps written there. Int w = 640;. Int h = 480;. CvShowIm...
mariotapilouw.blogspot.com
Mario.Tapilouw: February 2009
http://mariotapilouw.blogspot.com/2009_02_01_archive.html
Thursday, February 26, 2009. Writing a well-written code is faster than debugging a badly written code. Debugging is a pain in the ass. It can make you sleepless in the evening, lose your mood in the morning, decrease your appetite, and even a nightmare, hahaha. This is the most efficient way to develop a software, trust me hehe. Posted by mario at 9:44 PM. Friday, February 13, 2009. Setting Minimum and Maximum Window Size on Visual C. BEGIN MESSAGE MAP(CDialogDlg, CDialog). Preferred Maximum X and Y.