2014-09-18 21:14:07 -0600 | commented question | cv.h not found need help with makefile The answer is not necessarily in the makefile. I replaced the headers with include <opencv2/core/core.hpp>include <opencv2/highgui/highgui.hpp>I also removed cout and using namespace std; with printf. I had started using the older version of OpenCV when I began to code and switched to CV2 accidentally leaving the older headers.My original makefile with just LIBS = $(LIBPATH)/libopencv_core.so $(LIBPATH)/libopencv_highgui.so works just fine. |
2014-09-18 07:14:44 -0600 | asked a question | cv.h not found need help with makefile I want to thank everyone for the help they have given me so far. I am a Windows person and haven't used a makefile in over 20 years so I really don't know what I'm doing. I have developed my program in Visual Studio 2012 and it works fine but I must move it to a UNIX server for the class I'm taking. I used the sample makefile from class but when I ran it, I got the message cv.h not found. After looking over my project in Visual Studio, I determined that I needed to include the following libraries: opencv_core249d.lib opencv_imgproc249d.lib opencv_highgui249d.lib opencv_ml249d.lib opencv_video249d.lib opencv_features2d249d.lib opencv_calib3d249d.lib without the 249d. I found these libraries in the given directory on the UNIX server as .SO files. I am having trouble with the LIBS statement: CC = g++ CFLAGS = -g TARGET = objects OBJS = objects.o LIBPATH = /usr/lib64 LIBS = $(LIBPATH)/libopencv_core.so $(LIBPATH)/libopencv_highgui.so $(LIBPATH)/libopencv_imgproc.so $(LIBPATH)/libopencv_ml.so $(LIBPATH)/libopencv_video.so $(LIBPATH)/libopencv_features2d.so $(LIBPATH)/libopencv_calib3d.so $(TARGET): $(OBJS) $(CC) -o $@ $(OBJS) $(LIBS) .SUFFIXES: .cpp .o .c.o: $(CC) -c $(CFLAGS) $< .PHONY: clean clean: /bin/rm -f core *.o $(TARGET) When I ran make, the message was: * missing separator. Stop. Could someone point me to a good tutorial on makefiles for OpenCV, or tell me what I'm doing wrong with this makefile, or perhaps both? Thank you. |
2014-09-14 10:03:09 -0600 | commented question | Heap error OpenCV 2.4.9 Thank you so much! I copied that statement from the previous one and forgot to change the array boundaries. |
2014-09-14 08:20:19 -0600 | asked a question | Heap error OpenCV 2.4.9 Hi, I am a little rusty in C++. I am trying to display a black background gray-scale image with a square and rectangle placed randomly within the image. The square and rectangle have a white center and progressively get darker towards the edges. Displaying the square worked fine but when I added the rectangle, I am now getting a heap error when I press enter to close the display window. Here is what is diplayed when the system breakpoint occurs:
My code is below. Can someone point me in the right direction to correct this error? Thank you. (more) |
2014-09-07 16:44:28 -0600 | received badge | ● Self-Learner (source) |
2014-09-06 22:03:33 -0600 | commented answer | What is the best way to calculate the Weber ratio for an image? Thanks, I will rewrite for the real assignment since it will probably be changed. The old O'Reilly book uses cv1 and the online documentation used both cv1 and cv2. At least I can now access my way through the image pixel by pixel. Many more interesting things to come. Thanks loads for your help! |
2014-09-06 10:44:46 -0600 | answered a question | What is the best way to calculate the Weber ratio for an image? Would someone look over the following code and screen capture to see if I am calculating the Weber ratio correctly? I was very confused at first mixing cv1 and cv2. Pound signs and brackets removed on include include opencv\cv.h include opencv\highgui.h using namespace cv; using namespace std; int main() { char infilestr[255]; // input file name } |
2014-09-03 23:10:43 -0600 | asked a question | What is the best way to calculate the Weber ratio for an image? I am new to openCV and am taking a class in digital image processing. I am working through prior years assignment in preparation for our upcoming assignment.
Is there a better way to calculate the Weber Ratio? I have used the following code so far to calculate the mean overall intensity, should I take absolute value |meanval - each point intensity| divided by meanval to get this ratio?: |