New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gsoc opencv project : The Fast Bilateral Filter #1317
Conversation
@THUKey No need to re-open PRs. Just push updates on your branch. |
typedef std::map<long long /* hash */, int /* vert id */> mapId; | ||
#else | ||
#include <boost/unordered_map.hpp> | ||
typedef boost::unordered_map<long long /* hash */, int /* vert id */> mapId; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OpenCV should not depend on "boost" library
|
||
|
||
// int debugn = blurs.nonZeros(); //FIXME: if don't call nonZeros(), the result will be destroy | ||
// debugn = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dead code?
*colorPix = *gray_pix; | ||
colorPix++; | ||
} | ||
gray_pix++; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cvtColor(gray, color, COLOR_GRAY2RGB)
{ | ||
Size sz(rnd.uniform(512, 1024), rnd.uniform(512, 1024)); | ||
|
||
int guideCn = rnd.uniform(1, 2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
result is always 1 here: "a <= x < b"
Ptr<FastBilateralSolverFilter> createFastBilateralSolverFilter(InputArray, double, double, double, int, double) | ||
{ | ||
std::cout << "ERROR createFastBilateralSolverFilter : don't have eigen" << '\n'; | ||
exit(0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CV_Error(Error::StsNotImplemented, ...)
Add the source file for FastBilateralSolverFilter(located in modules/ximgproc/src/fbs_filter.cpp), and add the class declaration to the file modules/ximgproc/include/opencv2/ximgproc/edge_filter.hpp.
the test file and some sample(depth and colorization) for FastBilteralSolverFilter will be add next week.
TODO list: