Ask Your Question

Grifel79's profile - activity

2016-10-28 12:06:39 -0500 commented question How can i use OpenCV algorithms in my project as a source code?

@berak you mean opencv sources for Java ? I can check if it makes it more simple. Any possible solution is appreciated so thanks a lot. Maybe i need to post this question on stackoverflow to not limit proposed solutions to opencv. As now it is Opencv in the project, different algorithms will work slightly differently and there will be a lot of pain to make it works the samedi way

2016-10-28 11:41:13 -0500 received badge  Student (source)
2016-10-28 11:30:39 -0500 commented question How can i use OpenCV algorithms in my project as a source code?

@berak yes, i think it is what i will try for the first time. As for cv::Mat container (which is usually an argument in all OpenCV functions) maybe i can change it to a simple C array containing images. But in this way all size(), cols, rows, resize will not be accessible. Otherwise i think i can use std::vector for image storage by now which have some similar methods as cv::Mat and even convertible with Mat (one of cv::Mat constructors with std::vector). Or try to keep cv::Mat including corresponding OpenCV source files. Some small openSource library which reads images could also be a solution. Here i have not so much experience it is just difficult to decide which way to go =)

2016-10-28 11:20:12 -0500 commented question How can i use OpenCV algorithms in my project as a source code?

@berak the target device is not a PC but some special mobile device processor with limited memory. So i cannot use any dependencies there, even .lib. Also the code will be converted to the C style code. But C is another story, as for now, i just have to remove OpenCV dependency. Convert C++ style code to C style code is not a very big deal. If there are another approach to get basic image processing algorithms code for the project, but not from OpenCV, i would be happy to know. I am just not familiar with it. As for me i always used OpenCV normally before this black day.

2016-10-28 11:08:08 -0500 commented question How can i use OpenCV algorithms in my project as a source code?

@berak Thanks for your attention, berak. I used OpenCV for kind of fast C++ prototyping. But at some point i need to remove it and it seems a little crazy for me too. But anyway i have to deal with it. I am free to use any open source code in the project. But no dependencies at all (dll or lib - any of this). Only put open source code to the project, edit it as i want. This is my task and i'm searching for the most simple and fast desicion how to perform it. That's why i thought about copying OpenCV sources. Maybe i can just store images in std::vector<vector<char>> STL container or even as a C style array. But if i manage to copy cv::Mat and leave only the OpenCV code i use it would be great.

2016-10-28 10:54:29 -0500 commented question How can i use OpenCV algorithms in my project as a source code?

@berak but i can take the function i need, look at the dependencies and add these files to my project. As for core functionality, i could copy just files to deal with cv::Mat, and no need in output images with OpenCV. I understand that there are 3000 files, but i don't use all modules. I really cannot have dependencies in my project. I can rewrite some image processing algorithms, but i don't want to rewrite everything

2016-10-28 10:44:30 -0500 asked a question How can i use OpenCV algorithms in my project as a source code?

I have a Visual Studio C++ project which uses OpenCV algorithms and some dll files are placed near .exe file in order to make OpenCV functionality working. What i want is to remove all dependencies in my project and use OpenCV as a source code. So it is not a question of changing dll to statically linked library (lib). I just want to put OpenCV cpp and h files in my project and use only the code i really need. I worry about cv::Mat if i still will be able to use it.

Thank you for advices how to perform this task. Maybe it would be useful also for some library users later. Any thoughts are welcome.