Coder Social home page Coder Social logo

davidstutz / superpixels-revisited Goto Github PK

View Code? Open in Web Editor NEW
260.0 22.0 71.0 416 KB

Library containing 7 state-of-the-art superpixel algorithms with a total of 9 implementations used for evaluation purposes in [1] utilizing an extended version of the Berkeley Segmentation Benchmark.

Home Page: http://davidstutz.de/projects/superpixelsseeds/

CMake 1.03% C++ 95.43% Makefile 1.62% C 1.92%
superpixel-algorithms superpixels computer-vision image-processing opencv

superpixels-revisited's Issues

Error while compiling with opencv 3.2

Hi.
When compiling with opencv 3.2, i have errors as following:

[ 23%] Building CXX object fh_cli/CMakeFiles/fh_cli.dir/main.cpp.o
In file included from /usr/local/include/opencv2/core.hpp:54:0,
                 from /usr/local/include/opencv2/opencv.hpp:52,
                 from /home/superpixels-revisited/lib_seeds_revised/lib/Tools.h:64,
                 from /home/superpixels-revisited/fh_cli/main.cpp:69:
/usr/local/include/opencv2/core/base.hpp: In function ‘int cv::cv_abs(schar)’:
/usr/local/include/opencv2/core/base.hpp:448:47: error: call of overloaded ‘abs(schar&)’ is ambiguous
 inline int cv_abs(schar x) { return std::abs(x); }
                                               ^
In file included from /home/superpixels-revisited/fh_cli/../lib_fh/misc.h:24:0,
                 from /home/superpixels-revisited/fh_cli/main.cpp:66:
/usr/include/c++/5/cmath:81:3: note: candidate: double std::abs(double)
   abs(double __x)
   ^
/usr/include/c++/5/cmath:87:3: note: candidate: float std::abs(float)
   abs(float __x)
   ^
/usr/include/c++/5/cmath:91:3: note: candidate: long double std::abs(long double)
   abs(long double __x)
   ^
/usr/include/c++/5/cmath:99:5: note: candidate: typename __gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type std::abs(_Tp) [with _Tp = signed char; typename __gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type = double]
     abs(_Tp __x)
     ^
In file included from /usr/include/c++/5/cstdlib:72:0,
                 from /home/superpixels-revisited/fh_cli/../lib_fh/pnmfile.h:24,
                 from /home/superpixels-revisited/fh_cli/main.cpp:67:
/usr/include/stdlib.h:774:12: note: candidate: int abs(int)
 extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
            ^
In file included from /home/superpixels-revisited/fh_cli/main.cpp:66:0:
/home/superpixels-revisited/fh_cli/../lib_fh/misc.h:39:10: note: candidate: T abs(const T&) [with T = signed char]
 inline T abs(const T &x) { return (x > 0 ? x : -x); };
          ^
In file included from /home/superpixels-revisited/fh_cli/../lib_fh/pnmfile.h:24:0,
                 from /home/superpixels-revisited/fh_cli/main.cpp:67:
/usr/include/c++/5/cstdlib:166:3: note: candidate: long int std::abs(long int)
   abs(long __i) { return __builtin_labs(__i); }
   ^
/usr/include/c++/5/cstdlib:174:3: note: candidate: long long int std::abs(long long int)
   abs(long long __x) { return __builtin_llabs (__x); }
   ^
/usr/include/c++/5/cstdlib:179:3: note: candidate: __int128 std::abs(__int128)
   abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
   ^
In file included from /usr/local/include/opencv2/core.hpp:54:0,
                 from /usr/local/include/opencv2/opencv.hpp:52,
                 from /home/superpixels-revisited/lib_seeds_revised/lib/Tools.h:64,
                 from /home/superpixels-revisited/fh_cli/main.cpp:69:
/usr/local/include/opencv2/core/base.hpp: In function ‘int cv::cv_abs(short int)’:
/usr/local/include/opencv2/core/base.hpp:450:47: error: call of overloaded ‘abs(short int&)’ is ambiguous
 inline int cv_abs(short x) { return std::abs(x); }
                                               ^
In file included from /home/superpixels-revisited/fh_cli/../lib_fh/misc.h:24:0,
                 from /home/superpixels-revisited/fh_cli/main.cpp:66:
/usr/include/c++/5/cmath:81:3: note: candidate: double std::abs(double)
   abs(double __x)
   ^
/usr/include/c++/5/cmath:87:3: note: candidate: float std::abs(float)
   abs(float __x)
   ^
/usr/include/c++/5/cmath:91:3: note: candidate: long double std::abs(long double)
   abs(long double __x)
   ^
/usr/include/c++/5/cmath:99:5: note: candidate: typename __gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type std::abs(_Tp) [with _Tp = short int; typename __gnu_cxx::__enable_if<std::__is_integer<_Tp>::__value, double>::__type = double]
     abs(_Tp __x)
     ^
In file included from /usr/include/c++/5/cstdlib:72:0,
                 from /home/superpixels-revisited/fh_cli/../lib_fh/pnmfile.h:24,
                 from /home/superpixels-revisited/fh_cli/main.cpp:67:
/usr/include/stdlib.h:774:12: note: candidate: int abs(int)
 extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
            ^
In file included from /home/superpixels-revisited/fh_cli/main.cpp:66:0:
/home/superpixels-revisited/fh_cli/../lib_fh/misc.h:39:10: note: candidate: T abs(const T&) [with T = short int]
 inline T abs(const T &x) { return (x > 0 ? x : -x); };
          ^
In file included from /home/superpixels-revisited/fh_cli/../lib_fh/pnmfile.h:24:0,
                 from /home/superpixels-revisited/fh_cli/main.cpp:67:
/usr/include/c++/5/cstdlib:166:3: note: candidate: long int std::abs(long int)
   abs(long __i) { return __builtin_labs(__i); }
   ^
/usr/include/c++/5/cstdlib:174:3: note: candidate: long long int std::abs(long long int)
   abs(long long __x) { return __builtin_llabs (__x); }
   ^
/usr/include/c++/5/cstdlib:179:3: note: candidate: __int128 std::abs(__int128)
   abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
   ^
fh_cli/CMakeFiles/fh_cli.dir/build.make:62: ошибка выполнения рецепта для цели «fh_cli/CMakeFiles/fh_cli.dir/main.cpp.o»
make[2]: *** [fh_cli/CMakeFiles/fh_cli.dir/main.cpp.o] Ошибка 1
CMakeFiles/Makefile2:418: ошибка выполнения рецепта для цели «fh_cli/CMakeFiles/fh_cli.dir/all»
make[1]: *** [fh_cli/CMakeFiles/fh_cli.dir/all] Ошибка 2
Makefile:83: ошибка выполнения рецепта для цели «all»
make: *** [all] Ошибка 2

could not found "Tool.h"

Hello !
When I do make, A compilation error occurred:could not find "Tools.h".And I also did not find the file in the project.What is the role of this file?
Look forward to your reply!

running erro

After compiling on ubuntu, I get the following error when I try to run the executables:

terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::bad_any_cast> >'
  what():  boost::bad_any_cast: failed conversion using boost::any_cast
Aborted (core dumped)

/usr/bin/ld: cannot find -lseeds_revised

Hi, I have followed the instruction of downloading the source code and everything is ok before "make". The error shows:

$make
Scanning dependencies of target reseeds
[ 1%] Building CXX object lib_seeds_revised/lib/CMakeFiles/reseeds.dir/SeedsRevised.cpp.o
[ 2%] Building CXX object lib_seeds_revised/lib/CMakeFiles/reseeds.dir/Tools.cpp.o
[ 4%] Linking CXX static library ../../../lib/libreseeds.a
[ 4%] Built target reseeds
Scanning dependencies of target reseeds_cli
[ 5%] Building CXX object lib_seeds_revised/cli/CMakeFiles/reseeds_cli.dir/main.cpp.o
[ 7%] Linking CXX executable ../../../bin/reseeds_cli
[ 7%] Built target reseeds_cli
Scanning dependencies of target ers
[ 8%] Building CXX object lib_ers/CMakeFiles/ers.dir/MERCCInput.cpp.o
[ 10%] Building CXX object lib_ers/CMakeFiles/ers.dir/MERCDisjointSet.cpp.o
[ 11%] Building CXX object lib_ers/CMakeFiles/ers.dir/MERCFunctions.cpp.o
[ 13%] Building CXX object lib_ers/CMakeFiles/ers.dir/MERCLazyGreedy.cpp.o
[ 14%] Building CXX object lib_ers/CMakeFiles/ers.dir/MERCOutput.cpp.o
[ 15%] Linking CXX static library ../../lib/libers.a
[ 15%] Built target ers
Scanning dependencies of target ers_cli
[ 17%] Building CXX object ers_cli/CMakeFiles/ers_cli.dir/main.cpp.o
[ 18%] Linking CXX executable ../../bin/ers_cli
/usr/bin/ld: cannot find -lseeds_revised
collect2: error: ld returned 1 exit status
ers_cli/CMakeFiles/ers_cli.dir/build.make:127: recipe for target '../bin/ers_cli' failed
make[2]: *** [../bin/ers_cli] Error 1
CMakeFiles/Makefile2:271: recipe for target 'ers_cli/CMakeFiles/ers_cli.dir/all' failed
make[1]: *** [ers_cli/CMakeFiles/ers_cli.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

I have no idea how to solve it...

Problem compiling the code

Hi
I am trying to compile the code on Ubuntu 14.04. cmake finishes successfully. But when I try to run 'make' I receive the following error

/usr/bin/ld: error: cannot find -lQt5::Core
/usr/bin/ld: error: cannot find -lQt5::Gui
/usr/bin/ld: error: cannot find -lQt5::Widgets
/usr/bin/ld: error: cannot find -lQt5::Test
/usr/bin/ld: error: cannot find -lQt5::Concurrent
/usr/bin/ld: error: cannot find -lQt5::OpenGL

During cmake, the following error is shown:

CMake Warning (dev) at vlfeat_slic_cli/CMakeLists.txt:49 (add_executable):
Policy CMP0028 is not set: Double colon in target name means ALIAS or
IMPORTED target. Run "cmake --help-policy CMP0028" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.

Target "vlfeat_slic_cli" links to target "Qt5::Core" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
This warning is for project developers. Use -Wno-dev to suppress it.

I have checked that I have all qt5*-dev libraries installed.

What could be the issue ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.