On Friday, 5 April 2019 at 13:19:22 UTC, Ferhat Kurtulmuş wrote:
On Friday, 5 April 2019 at 07:56:42 UTC, Paolo Invernizzi wrote:
On Thursday, 4 April 2019 at 23:08:21 UTC, Ferhat Kurtulmuş
wrote:
Hi folks!
D is awesome, but it is a shame that there is no any opencv
bindings for d yet. Actually we have it now :) Although I am
a new dlang learner, I dared to do it:
https://github.com/aferust/opencvd. C interface was taken
from gocv, and the implementation has been highly influenced
by gocv (maybe it is better to make git submodule it, since
gocv project is being updated very often?). I admit that it
is far from being a complete binding, but it is a beginning.
I invite you lovely and pro dlang community to grow it. I did
not want to add it to code.dlang.org before it become a
better binding.
Nice!
Version 3.x has an internal pointer in the mat struct, is that
changed with 4.x?
- Paolo
It still has it, if you what you mean:
Mat Mat_FromArrayPtr(int rows, int cols, int type, void* data){
return new cv::Mat(rows, cols, type, data);
}
No, I mean that the Mat structure has a MatSize MatStep member
with pointers to the struct data itself.
Until we have copy ctors, D can't have structures with internal
pointers, as they can be moved... that's something similar in C++
string, if I remember well, and that was the blocker that leaded
to the copy ctors DIP...
- P