238 Commits

Author SHA1 Message Date
Eric Lundberg
a8790273a9 Add support for scale param in mul, several additional params in goodFeaturesToTrack. Only convert to grayscale in goodFeaturesToTrack if not already in grayscale 2017-11-28 11:39:44 -08:00
Peter Braden
fa663d449b
Merge pull request #588 from btsimonh/refcount
Refcount
2017-11-13 09:58:02 +01:00
Simon Hailes
bc8095534b comment out Addref - too dangerous to leave in. Modify test example. 2017-11-12 17:48:36 +00:00
Simon Hailes
9316a01f03 fix typo 2017-11-12 16:48:08 +00:00
Simon Hailes
96d0eb8824 Matrix: add mtx.addref() and mtx.getrefCount() 2017-11-12 16:03:17 +00:00
Simon Hailes
642bf94a3d Matrix: resizeasync - make safe to mat.release() before async is complete 2017-11-12 15:58:17 +00:00
Simon Hailes
31c9349885 Matrix: asyncsave: make safe to mat.release of input mat before async is complete. 2017-11-12 15:57:29 +00:00
Simon Hailes
81ac6941b9 AsyncToBuffer - make it safe to mat.release() the input image before the async func has completed. 2017-11-12 15:56:33 +00:00
Simon Hailes
6393a7f44e avoid warning about initilisation order 2017-11-10 10:32:51 +00:00
Simon Hailes
0b6b1f42cc fix stupid typo 2017-11-10 10:28:56 +00:00
Simon Hailes
f2c05255a0 resize: delete the dest we created on error, and if still present on destructor 2017-11-10 10:25:27 +00:00
Simon Hailes
ab0bd505d2 resize(async): seems we can get an assert in Unwrap if image has 0,0, size, so catch and report as a callback error. 2017-11-10 09:49:12 +00:00
Simon Hailes
44f175632c resize: move async fn to last argument 2017-11-02 09:44:57 +00:00
Simon Hailes
b67c96ee31 Matrix: Add aync to resize. If first argument is fn(err, img), then run async. Also add fx,fy arguments.
call styles may be:
Sync (modify existing image, new image is CV_32FC3) - same interface as before except added fx,fy
im.resize( width, height );
im.resize( width, height, fx, fy );
im.resize( width, height, interpolation );
im.resize( width, height, fx, fy, interpolation );
Async (create new image, new image is not forced to CV_32FC3?)
im.resize( fn, width, height );
im.resize( fn, width, height, fx, fy );
im.resize( fn, width, height, interpolation );
im.resize( fn, width, height, fx, fy, interpolation );
2017-11-02 08:48:59 +00:00
Dan Schultzer
a58656270f Disable CalcOpticalFlowPyrLK when no vid module 2017-09-16 13:13:08 -07:00
Peter Braden
d28de48e72 Merge branch 'master' into master 2017-09-13 11:41:59 +02:00
Pierre Colle
6de971d0e8 merge compare with piercus's master branch 2017-09-05 17:47:10 +02:00
Pierre Colle
416fbd100e add compare 2017-09-05 17:36:48 +02:00
Pierre Colle
0722569d7e clean logs and error messages 2017-09-05 16:49:28 +02:00
Pierre Colle
2754367628 add Matrix.prototype.mul 2017-08-31 15:53:45 +02:00
Leonid Babikov
7801cefdcd new GetPixel function that returns one of the following [B,G,R,A] or [B,G,R,A] or [G]
extended PixelCol and PixelRow so they will check for channels and return alpha too if possible

tests for GetPixel
2017-06-26 17:08:24 +03:00
Peter Braden
e40d1669c2 Merge pull request #499 from schmidmt/master
Added support for single channel pixelRow and pixelColumn
2017-05-15 09:35:24 +02:00
Michael Thomas Schmidt
633f5162ca Addressed deprecation warning in Node 7.9 with Nan abstractions. 2017-04-18 14:17:54 -05:00
Michael Thomas Schmidt
48c07c7e3b Added support for single depth pixelRow and pixelColumn 2017-04-17 15:15:38 -05:00
Dmitry Ivanovm
eccd861a8a ~cleanup 2017-03-08 16:08:58 -05:00
Peter Braden
c0f7942636 Merge pull request #466 from piercus/master
Few enhancements : Add function, idct, add sigmat param to gaussianBlur
2017-02-08 17:27:23 +01:00
Peter Braden
7085a9b4ae Merge pull request #467 from NatureFeng/master
remove duplicate crop function set
2017-02-08 17:19:36 +01:00
boelroy
12e3c6e25c add the type function in Matrix class 2017-01-17 16:13:20 +08:00
NatureFeng
edc9a6ecab remove duplicate crop function set 2016-11-15 14:17:43 +08:00
Pierre Colle
430976cb1a wrap add function 2016-11-09 10:20:33 +01:00
Pierre Colle
fe2b18e0a7 add sigma param to gaussianBlur 2016-11-09 10:19:26 +01:00
Pierre Colle
2bce0b7cd2 image signature, slow but working 2016-11-09 09:16:04 +01:00
Pierre Colle
749e27aaf9 change to get from CV_32F Matrix 2016-11-08 14:33:38 +01:00
Piercus
1300265317 add dct method 2016-11-07 22:07:01 +01:00
Dan Schultzer
c0728bacdf Merge pull request #450 from dxprog/master
handles colors with less-/more-than three channels
2016-10-29 14:27:41 -07:00
Matt Hackmann
64774c2372 removed unneeded variable from setColor 2016-10-29 11:43:08 -07:00
Matt Hackmann
bd9e313297 cleaned up setColor clean up 2016-10-29 11:21:17 -07:00
Ollie Relph
74c8f4e347 Use the contour hierarchy that's been passed 2016-10-25 11:36:07 +01:00
Ollie Relph
79da65d9a5 Add support for maxLevel 2016-10-25 11:35:48 +01:00
Ollie Relph
c80577f039 Add support for lineType and offset for drawContours 2016-10-20 11:19:45 +01:00
Matt Hackmann
8c1b5e401b handles colors with less-/more-than three channels 2016-10-06 10:06:20 -07:00
Dan Schultzer
6ca8a35338 Fix issues that came up with debug opencv
OpenCV compiled with debug has a lot of assertions. There was some issues that came up when I ran the tests on that build.
2016-09-22 11:23:51 -07:00
Peter Braden
5aee66eb2c Merge pull request #428 from Evilcat325/master
Add MatchTemplate By Matrix Method.
2016-09-22 01:10:24 -07:00
Andreas Gal
9a2b3c3bfc make getData() work if we have more than one channel 2016-09-07 16:16:11 -07:00
Andreas Gal
6722aadc2b fix signed/unsigned comparison warning 2016-09-05 13:11:13 -07:00
Andreas Gal
19067e5aff compensate for any padding in getData 2016-09-05 13:01:18 -07:00
Sen
e578cdb869 Add method range check
Method can be only 0~5,  if other number supply will default to
TM_CCORR_NORMED.
2016-07-25 16:47:15 -04:00
Sen
344ea4963d change output
MatchTemplateByMatrix now only return the result matrix
2016-07-25 13:54:55 -04:00
Sen
d8de6a86b8 Add match temple method
Add match temple method that accept a matrix
2016-07-25 13:16:32 -04:00
Michael Vines
13a1de4f92 Merge pull request #401 from jainanshul/mean
Add matrix mean method
2016-04-22 06:50:54 -07:00