Skip to content

MatVector and Mat type #14

@echamudi

Description

@echamudi

Hello,

I checked _hacks.ts in the OpenCV type definitions. It seems that MatVector type is just an alias of Mat. But it causes some problems in my code.

For example: size() method in both MatVector and Mat returns Size object. But in reality, size() in MatVector should return just number.

You can check it with this snippet:

import * as cv from 'mirada';

(async () => {
  let myMatVector = new cv.MatVector();
  let myMat = new cv.Mat();

  console.log(`MatVector Size:`);
  console.log(myMatVector.size());
  console.log(`Mat Size:`);
  console.log(myMat.size());
})()

Output:
Screen Shot 2020-05-18 at 6 52 36 AM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions