Yet again I will post two algorithms based on openCV and built as a DLL library (along with c++ source code and labview vi), that are useful (at least I found them useful in my projects), but not included in the NI Vision libraries:
- color histogram matching and
- grabcut segmentation.
I really like labview for its simplicity and some really good vision functions/libraries. I also love openCV because it includes so many good up to date computer vision algorithms. In my opinion, the combination between labview vision and openCV is an excellent and formidable beast, that can accomplish almost anything.
I hope that someone finds this (and similar) posts useful for their projects. Beats starting from scratch anyways. Code is compiled with VS2010 x86 and OpenCV 2.4.5. Add "...\opencv\build\x86\vc10\bin" to system path or recompile the source code yourself.
Examples of segmentation:
Example of histogram comparison:
ORIGINAL IMAGE
LIGHTER IMAGE DARKER IMAGE
Comparison results:
original image VS original image -> correlation = 1
original image VS lighter image -> correlation = 0.139762
original image VS darker image -> correlation = 0.192917
Be creative.
Best regards,
K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.