berak / heartbeat Goto Github PK
View Code? Open in Web Editor NEWoptical pulse detection
optical pulse detection
Hi Berak,
I tried compiling this on Mac but i get the following (to strict c++ compiler?)
50%] Building CXX object CMakeFiles/heartbeat.dir/heartbeat.cpp.o
PreProcess/heartbeat.cpp:11:70: error: declaration of 'size_t' shadows template parameter
template <typename Vec, typename Operator, typename size_t, typename size_t>
^
PreProcess/heartbeat.cpp:11:53: note: template parameter is declared here
template <typename Vec, typename Operator, typename size_t, typename size_t>
^
PreProcess/heartbeat.cpp:12:35: error: reference to 'size_t' is ambiguous
void foreach(Vec &v, Operator &op,size_t off,size_t len) {
^
PreProcess/heartbeat.cpp:11:70: note: candidate found by name lookup is 'size_t'
template <typename Vec, typename Operator, typename size_t, typename size_t>
^
PreProcess/heartbeat.cpp:11:53: note: candidate found by name lookup is 'size_t'
template <typename Vec, typename Operator, typename size_t, typename size_t>
^
PreProcess/heartbeat.cpp:12:46: error: reference to 'size_t' is ambiguous
void foreach(Vec &v, Operator &op,size_t off,size_t len) {
^
PreProcess/heartbeat.cpp:11:70: note: candidate found by name lookup is 'size_t'
template <typename Vec, typename Operator, typename size_t, typename size_t>
^
PreProcess/heartbeat.cpp:11:53: note: candidate found by name lookup is 'size_t'
template <typename Vec, typename Operator, typename size_t, typename size_t>
^
PreProcess/heartbeat.cpp:13:10: error: reference to 'size_t' is ambiguous
for (size_t i=off; i<len; ++i) {
^
PreProcess/heartbeat.cpp:11:70: note: candidate found by name lookup is 'size_t'
template <typename Vec, typename Operator, typename size_t, typename size_t>
^
PreProcess/heartbeat.cpp:11:53: note: candidate found by name lookup is 'size_t'
template <typename Vec, typename Operator, typename size_t, typename size_t>
^
PreProcess/heartbeat.cpp:228:29: error: reference to 'Hamming' is ambiguous
foreach(din,Hamming(din.size()));
^
PreProcess/heartbeat.cpp:57:8: note: candidate found by name lookup is 'Hamming'
struct Hamming
^
/usr/local/include/opencv2/core/base.hpp:429:19: note: candidate found by name lookup is 'cv::Hamming'
struct CV_EXPORTS Hamming
^
PreProcess/heartbeat.cpp:228:17: error: no matching function for call to 'foreach'
foreach(din,Hamming(din.size()));
^~~~~~~
PreProcess/heartbeat.cpp:19:6: note: candidate function [with Vec = std::__1::vector<float, std::__1::allocator >, Operator = Hamming] not viable: expects an l-value for 2nd argument
void foreach(Vec &v, Operator &op) {
^
PreProcess/heartbeat.cpp:12:6: note: candidate function template not viable: requires 4 arguments, but 2 were provided
void foreach(Vec &v, Operator &op,size_t off,size_t len) {
^
PreProcess/heartbeat.cpp:249:30: error: reference to 'Hamming' is ambiguous
foreach(idft,Hamming(idft.size()));
^
PreProcess/heartbeat.cpp:57:8: note: candidate found by name lookup is 'Hamming'
struct Hamming
^
/usr/local/include/opencv2/core/base.hpp:429:19: note: candidate found by name lookup is 'cv::Hamming'
struct CV_EXPORTS Hamming
^
PreProcess/heartbeat.cpp:249:17: error: no matching function for call to 'foreach'
foreach(idft,Hamming(idft.size()));
^~~~~~~
PreProcess/heartbeat.cpp:19:6: note: candidate function [with Vec = std::__1::vector<float, std::__1::allocator >, Operator = Hamming] not viable: expects an l-value for 2nd argument
void foreach(Vec &v, Operator &op) {
^
PreProcess/heartbeat.cpp:12:6: note: candidate function template not viable: requires 4 arguments, but 2 were provided
void foreach(Vec &v, Operator &op,size_t off,size_t len) {
^
PreProcess/heartbeat.cpp:20:12: error: no matching function for call to 'foreach'
return foreach(v,op,0,v.size());
^~~~~~~
PreProcess/heartbeat.cpp:219:13: note: in instantiation of function template specialization 'foreach<std::__1::vector<float, std::__1::allocator >, MinMaxId>' requested here
foreach(ring.elm,mm);
^
PreProcess/heartbeat.cpp:12:6: note: candidate template ignored: deduced conflicting types for parameter 'size_t' ('int' vs. 'unsigned long')
void foreach(Vec &v, Operator &op,size_t off,size_t len) {
^
PreProcess/heartbeat.cpp:19:6: note: candidate function template not viable: requires 2 arguments, but 4 were provided
void foreach(Vec &v, Operator &op) {
^
PreProcess/heartbeat.cpp:20:12: error: no matching function for call to 'foreach'
return foreach(v,op,0,v.size());
^~~~~~~
PreProcess/heartbeat.cpp:233:17: note: in instantiation of function template specialization 'foreach<std::__1::vector<float, std::__1::allocator >, void (int, float &)>' requested here
foreach(dout,Abs);
^
PreProcess/heartbeat.cpp:12:6: note: candidate template ignored: deduced conflicting types for parameter 'size_t' ('int' vs. 'unsigned long')
void foreach(Vec &v, Operator &op,size_t off,size_t len) {
^
PreProcess/heartbeat.cpp:19:6: note: candidate function template not viable: requires 2 arguments, but 4 were provided
void foreach(Vec &v, Operator &op) {
^
10 errors generated.
make[2]: *** [CMakeFiles/heartbeat.dir/heartbeat.cpp.o] Error 1
make[1]: *** [CMakeFiles/heartbeat.dir/all] Error 2
make: *** [all] Error 2
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.