Answer the question
In order to leave comments, you need to log in
What file can be used to connect the cvLoadImage function in Visual Studio?
I connected the OpenCV library and all the necessary files to the project, the application starts and runs, but the linker does not see the cvLoadImage function: "cvLoadImage identifier is not defined". From the library, I included opencv.hpp, highgui.hpp and core.hpp. Do I need to include some other header or a specific dll is missing?
Answer the question
In order to leave comments, you need to log in
https://docs.opencv.org/4.1.0/dd/d6e/tutorial_wind...
tj57 , show your code and indicate the version of the library.
cvLoadImage - 3.4.6
Based on your previous question
opencv_(The Name of the module)(The version Number of the library you use)d.lib
version of OpenCV 4.1.0, there is no such function in C API.
There are two options,
the first one is to install/build version 3.4.6 and use it.
second: rewrite the code taking into account the changes in OpenCV 4.xx
In addition, the book writes
For the purposes of this example, we will make reference to IplImage and cvLoadImge(), both constructs
from the ancient pre-version 2.1 interface that are now deprecated . We won't really cover them in detail in
this book, but all you need to know for this example is that IplImage is the old data structure for images, and
cvLoadImage() was the old function to get an image from disk and return a pointer to the resulting image
structure.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question