-
Categories
- 3D Printing (4)
- Programming (44)
- C# (18)
- Command Scripts (2)
- Digital Image Processing (9)
- Halcon (1)
- Inno (8)
- Natural Language Processing (1)
- Oracle (1)
- PHP (4)
- Python (2)
- Projects (8)
- CNC Mill (4)
- PiWars2017 (4)
- Uncategorized (4)
-
Archives
-
Tagcloud
c++ cnc colour contours coutours create cvDrawContours cvFindContours cvFloodFill cvSplit dominant point edge flood fill generate image processing image progessing Inno insert Installer iterate folders linux m3u playlist machine vision marlin marlinfw milling networking open cv opencv operating system oracle piwars piwars2017 pixel python raspberry pi rgb robot sql threshold to_date Version Number wifi windows command script wlan0 -
Meta
Tag Archives: image processing
Image Contour detection and display using OpenCV
In this example we threshold the image based on the position of the track bar. Then find contours on the image an display the contours as white lines. #include “stdafx.h” #include “cv.h” #include “highgui.h” // global variables IplImage* input = NULL; IplImage* gray = NULL; int threshold = 100; CvMemStorage* storage = NULL; /** trackbar […]
Digital Image Processing
Also tagged contours, cvDrawContours, cvFindContours, edge, threshold
Leave a comment
Threshold an Image using OpenCV
The cvThreshold function allows us to reject pixels above or below a set value while keeping the others. In this example the input image is separated into the RGB channels. Then we preform a threshold on the red channel, with a maximum value of 100. The result of this is that all the light areas […]
Flood Fill using OpenCV
To use the flood fill, first a seed point is selected, then all neighbouring pixels of a similar colour are converted to a uniform colour. In this example the seed point is at 200, 200 (shown by a blue circle). The neighbouring pixels are then flood filled with a red colour. #include “stdafx.h” #include “cv.h” […]
Splitting multichannel images into RGB using OpenCV
To separate a multi channel image into the three component RGB channels, we can use the cvSplit function. The example below opens a RGB image and then using the cvSplit function creates three output images. #include “stdafx.h” #include “cv.h” #include “highgui.h” int _tmain(int argc, _TCHAR* argv[]) { // open and display input image IplImage* input […]
OpenCV Hello World
Here is the Hello World example code for OpenCV. This simple example creates a image called output, then the text “Hello World” is added to the image. #include “stdafx.h” #include “cv.h” #include “highgui.h” int _tmain(int argc, _TCHAR* argv[]) { // create image IplImage* output = cvCreateImage(cvSize(400, 200), 8, 3); // create font and add text […]