You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "base" matrix has got 4 channels (PNG with alphatransparency) and
the second image (JPG without any transparency) which is passed to matchTemplate(...) got 3 channels.
Activity
danschultzer commentedon Sep 3, 2016
I don't think
matchTemplatehandles alpha channel, and in any case, the API in node-opencv should be identical to the API in opencv.danschultzer commentedon Sep 21, 2016
From the discussion in lovell/sharp#534 (comment), I'll assume this has been resolved. Closing it for now.
strarsis commentedon Sep 21, 2016
One can also use Matrix split()+merge(...) methods to remove an alpha channel of a matrix
so both matrices got equal channel count.