示例#1
0
    public DepthMapRaw depth_opts;      // all but depth_data and depth_data_stride_in_bytes must be set

    public DepthMapRaw make_dmr()
    {
        MAssert.Check(!depth.Empty());

        DepthMapRaw r = depth_opts;

        r.depth_data_ptr             = depth.Data;
        r.depth_data_stride_in_bytes = (int)depth.Step();

        return(r);
    }
示例#2
0
 public ImageAndDepth()
 {
     image      = new OpenCvSharp.Mat();
     depth      = new OpenCvSharp.MatOfUShort();
     depth_opts = new DepthMapRaw();
 }