error: expected ‘)’ before ‘,’ token

asked 2017-04-25 03:33:36 -0600

I am trying to write a basic program for image processing and i am stuck at defining the kernel, i am getting the above error and i dont know what i am doing wrong. i tried to search and did not find anything and i am little new to both c++ and opencv. I use Linux Ubuntu 16.04 LTS and eclipse. The error-code:

09:49:53 * Incremental Build of configuration Debug for project CV_tests * make all Building file: ../src/mainCV.cpp Invoking: GCC C++ Compiler g++ -I/usr/local/include/opencv -I/usr/local/include -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/mainCV.d" -MT"src/mainCV.o" -o "src/mainCV.o" "../src/mainCV.cpp" ../src/mainCV.cpp: In function ‘void trackbar_HSVfilter(cv::Mat&, cv::Mat&)’: ../src/mainCV.cpp:29:54: error: expected ‘)’ before ‘,’ token void inRange(cv::InputArray imgHSV, cv::Scalar(HMin,SMin,VMin), cv::Scalar(HMax,SMax,VMax),OutputArray imgDst); ^ ../src/mainCV.cpp:29:54: error: expected ‘)’ before ‘,’ token ../src/mainCV.cpp:29:55: error: variable or field ‘SMin’ declared void void inRange(cv::InputArray imgHSV, cv::Scalar(HMin,SMin,VMin), cv::Scalar(HMax,SMax,VMax),OutputArray imgDst); ^ ../src/mainCV.cpp:29:64: error: expected initializer before ‘)’ token void inRange(cv::InputArray imgHSV, cv::Scalar(HMin,SMin,VMin), cv::Scalar(HMax,SMax,VMax),OutputArray imgDst); ^ make: * [src/mainCV.o] Fehler 1 src/subdir.mk:21: die Regel für Ziel „src/mainCV.o“ scheiterte

09:49:53 Build Finished (took 613ms)

thank you

edit retag flag offensive close merge delete

Comments

1

could you add the code to your question ?

berak gravatar imageberak ( 2017-04-25 03:44:29 -0600 )edit