Where is cv::Directory in OpenCV 3.0. library? (Bug #3915)
Description
Where is cv::Directory in OpenCV 3.0. library? In oldest libraries I have successfully used class cv::Directory. In OpenCV 3.0. it is not.
History
Updated by Yuri Moroz over 10 years ago
- Target version set to 3.0-alpha
Updated by Steven Puttemans over 10 years ago
Can you please provide the OpenCV version you are using.
Just checked, neither 2.4.9 and 3.0 contain the cv::Directory command.
I am guessing you are using some deprecated old C-API command, which is no longer supported.
Can you provide the code snippet where you are using it?
- Assignee set to Yuri Moroz
- Status changed from New to Incomplete
Updated by Yuri Moroz over 10 years ago
I use OpenCV 3.0 alpha(it was downloaded from main page of opencv.org).
In Visual Studio 2013 C++ I try to create next code:
#include <opencv2/opencv.hpp>
int main(){
cv::Directory dir; //VS says: class was not declared
Updated by Steven Puttemans over 10 years ago
I wondered which version of OpenCV still had that function according to you?
Afaik this has never been a part of the package. Sure that function doesn't come from somewhere else?
And maybe enlighten on what you are trying to achieve here?
Updated by Yuri Moroz over 10 years ago
You can see how cv::Directory is properly working in Opencv 2.4.8 at these screenshot from VS 2013, I use only originaly compiled <opencv2\opencv.hpp> library
Updated by Vladislav Vinogradov over 10 years ago
Hello Yuri,
The cv::Directory
class was a part of contrib
module.
The contrib
module was removed from 3.0 version as obsolete.
You can copy the source code for the class from 2.4 opencv branch into your application: https://github.com/Itseez/opencv/blob/2.4/modules/contrib/src/inputoutput.cpp.
- Status changed from Incomplete to Cancelled
- Priority changed from High to Normal