ofxCv | Alternative approach to interfacing with OpenCv | Addon library
kandi X-RAY | ofxCv Summary
kandi X-RAY | ofxCv Summary
ofxCv represents an alternative approach to wrapping OpenCV for openFrameworks.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ofxCv
ofxCv Key Features
ofxCv Examples and Code Snippets
Community Discussions
Trending Discussions on ofxCv
QUESTION
I'm using OpenCV
with a very high kernel (50 and higher) to get a very exaggerated blur effect.
I am getting these weird line/area like effects on the generated imagery. Please refer to the wall area on the image below.
Is this something that is inherent to blurring at a very high kernel size? What would be some techniques to smooth out and eliminate this effect?
I am using OpenFrameworks
with the ofxCV
addon. The relevant part of my code is just
ANSWER
Answered 2017-Oct-27 at 09:55This effect is pretty normal because blurring means averaging the pixels value through the Kernel.
You should try an edge-preserving filter such as bilateral filter. If you still want to use a "classic" blur you could try the median blur instead of mean blur, that should give you at least a more attenuated result.
QUESTION
After long hours I finally managed to get a stereo disparity map with a single camera. The result is rather spotty as one would expect, so I would like to apply some filter to improve the quality. The problem is that I'm not using pure OpenCV, but the plugin for OpenFrameworks (ofxCv), meaning I can't use this:
http://docs.opencv.org/3.1.0/d3/d14/tutorial_ximgproc_disparity_filtering.html
There has to be a way how I can apply the WLS filter, or something similar in this situation. WLS appears to be implemented in OpenCV, but I can't access it through the plugin, and direct access also doesn't seem to work.
Does anybody know how I can apply that filter, or has any other, general, disparity map post-processing advice?
...ANSWER
Answered 2017-Apr-18 at 23:45I'm not sure what OpenCV functionality is available to you. But just a suggestion, maybe use the implementation from OpenCV in your project. Look at the file: https://raw.githubusercontent.com/opencv/opencv_contrib/master/modules/ximgproc/src/disparity_filters.cpp
Copy any additional files you may need to your project and try building. With basic OpenCV support you might be able to make it work.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ofxCv
OF stable (0.9.8): use ofxCv/stable
OF master (0.10.0): use ofxCv/master
Your linker will also need to know where the OpenCv headers are. In XCode this means modifying one line in Project.xconfig:. Alternatively, I recommend using OFXCodeMenu to add ofxCv to your project.
ofxCv/libs/ofxCv/include/ Which contains all the ofxCv headers.
ofxCv/libs/ofxCv/src/ Which contains all the ofxCv source.
ofxCv/src/ Which ties together all of ofxCv into a single include.
opencv/include/ The OpenCv headers, located in addons/ofxOpenCv/
opencv/lib/ The precompiled static OpenCv libraries, located in addons/ofxOpenCv/
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page