assamite / sdrs_cimg Goto Github PK
View Code? Open in Web Editor NEWSalient Region Detection for Python using CImg
License: GNU General Public License v3.0
Salient Region Detection for Python using CImg
License: GNU General Public License v3.0
Hi, i find the corresponding matlab code in https://ivrlwww.epfl.ch/supplementary_material/RK_CVPR09/SourceCode/Saliency_CVPR2009.m,
but i wonder is there any difference?
in matlab code, the average object is the GaussianSmoothed image.
however, in the C++ code, the averaged is the original lab image.
Is the C++ code right in terms of the paper?
i test the both way and find no difference of salience results.
why is it so?
Another error when compiling:
"SalientRegionDetector.cpp:362:31: error: ‘strncmp’ was not declared in this scope"
My solution was "#include " to the file
After going through the previous two issues, another one came up:
Saliency.h:12:14: error: ‘uint32_t’ was not declared in this scope
My solution was "#include <stdint.h>" in Saliency.h
After installing all the necessary dependencies and fixing the makefile in issue #1
I get following error after using make shared_linux
I'm using;
Ubuntu 14.04
Python 2.7.11
Anaconda 4.0.0
In file included from CImgHandler.cpp:8:0:
CImgHandler.h:26:11: error: ‘string’ has not been declared
string& filename,
^
CImgHandler.h:11:14: error: ‘uint32_t’ was not declared in this scope
#define UINT uint32_t
^
CImgHandler.h:27:18: note: in expansion of macro ‘UINT’
vector<UINT>& outBuff,
^
CImgHandler.h:27:22: error: template argument 1 is invalid
vector<UINT>& outBuff,
^
CImgHandler.h:27:22: error: template argument 2 is invalid
CImgHandler.h:11:14: error: ‘uint32_t’ was not declared in this scope
#define UINT uint32_t
^
CImgHandler.h:32:18: note: in expansion of macro ‘UINT’
vector<UINT>& imgBuffer,
^
CImgHandler.h:32:22: error: template argument 1 is invalid
vector<UINT>& imgBuffer,
^
CImgHandler.h:32:22: error: template argument 2 is invalid
CImgHandler.h:35:11: error: ‘string’ has not been declared
string& outFolder,
^
CImgHandler.h:36:11: error: ‘string’ has not been declared
string& outFilename,
^
CImgHandler.h:37:11: error: ‘string’ has not been declared
string& suffix);
^
CImgHandler.cpp:36:6: error: prototype for ‘void CImgHandler::GetPictureBuffer(std::string&, std::vector<unsigned int>&, int&, int&)’ does not match any in class ‘CImgHandler’
void CImgHandler::GetPictureBuffer(
^
In file included from CImgHandler.cpp:8:0:
CImgHandler.h:25:13: error: candidate is: void CImgHandler::GetPictureBuffer(int&, int&, int&, int&)
void GetPictureBuffer(
^
CImgHandler.cpp:65:6: error: prototype for ‘void CImgHandler::SavePicture(std::vector<unsigned int>&, int, int, std::string&, std::string&, std::string&)’ does not match any in class ‘CImgHandler’
void CImgHandler::SavePicture(
^
In file included from CImgHandler.cpp:8:0:
CImgHandler.h:31:13: error: candidate is: void CImgHandler::SavePicture(int&, int, int, int&, int&, int&)
void SavePicture(
^
make: *** [CImgHandler.o] Error 1
I've detected that you forgot to capitalize CImgHandler.cpp in your makefile, which gives an error
g++: error: CimgHandler.cpp: No such file or directory
To fix this edit line 15 to:
g++ -c CImgHandler.cpp -O2 -I/usr/X11R6/include -I/opt/local/include
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.