Reviving DCV help needed [Computer Vision library for D]
Ferhat Kurtulmuş
aferust at gmail.com
Wed Dec 1 21:16:18 UTC 2021
On Friday, 29 October 2021 at 03:47:37 UTC, Ki Rill wrote:
> I was looking for a computer vision library for D. I know
> [opencvd](https://code.dlang.org/packages/opencvd) package
> exists. It uses OpenCV C interface.
>
>
> ```
> for(size_t d = 0; d < props.disparityRange; d++) {
> costVol[0 .. $, 0 .. d, d] = CostType.max;
> import mir.ndslice.dynamic;
> costVol[0 .. $, d .. $, d] = zip!true(lpad[0 .. $, d .. $],
> rpad[0 .. $, 0 .. $ - d])
> .pack!1
> .windows(windowSize, windowSize)
> .unpack
> .universal
> .transposed!(0, 1, 4) // IT SEEMS ERROR OCCURS AT THIS LINE
> (?)
> .pack!2
> .map!(x => fun(x.unzip!'a', x.unzip!'b'))
> .pack!1
> .map!sum
> .unpack;
> }
> ```
>
> Any help is greatly appreciated.
I also stuck there :) Here is my dcv revision. I believe
everything works now, except the stereo module. Maybe, we share
our experiences to revive dcv. I don't know; perhaps, you have
already solved the problems?
https://github.com/aferust/dcvrev
More information about the Digitalmars-d
mailing list