node-opencv icon indicating copy to clipboard operation
node-opencv copied to clipboard

Get Matrix value : `mat.get` vs `mat.pixel`

Open piercus opened this issue 9 years ago • 1 comments

Hello,

I'm not sure of the idea behind mat.get(i, j) vs mat.pixel(i, j).

On my understanding :

  • mat.get(i, j) is for any non-image Matrix
  • mat.pixel(i, j) is for any image Matrix

I think we might have a unique interface, mat.get and mat.pixel should be aliases methods.

What do you think ? Am i missing something ?

Thanks for your feedbacks

piercus avatar Nov 08 '16 14:11 piercus

I think that you can use mat.at(x, y) similar to c++.

If I'm using Image Matrix and to use mat.get, the application will throws exception ?

massilva avatar May 29 '17 16:05 massilva