325 Commits

Author SHA1 Message Date
cascade256
9561b4f710 Simplify Windows building 2016-01-07 22:01:29 -08:00
Matthias Klan
ca36b462ce Implement getFrameAt
getFrameAt takes the position of the video in milliseconds
2015-12-08 14:54:35 +01:00
Peter Braden
c70ec49331 Merge pull request #342 from jainanshul/LDA
Make LDAWrap methods static
2015-12-04 15:00:04 +01:00
Anshul Jain
310efa4ca2 Make LDAWrap methods static
Also add unit test cases for LDAWrap methods
2015-12-03 18:16:03 -08:00
Anshul Jain
26929ea8a6 Make GetRotationMatrix2D static 2015-12-03 18:13:57 -08:00
Peter Braden
9a7784147c Merge pull request #339 from jspdown/master
Add GetStructuringElement, kernel argument for Erode and Dilate
2015-11-25 13:00:18 +01:00
jspdown
9b6c9a934c Use JSTHROW* macros and fix coding style
Replace Nan::ThrowError by JSTHROW and Nan::ThrowTypeError by JSTHROW_TYPE.
2015-11-24 13:13:36 +01:00
jspdown
162b091f25 Add kernel argument to Dilate and Erode methods
A second optional argument can be passed to `mat.erode` and
`mat.dilate`. This argument define the kernel used for this
morphological operation. A kernel can be generated by the
GetStructuringElement function.
2015-11-22 15:19:53 +01:00
jspdown
e3090f4176 Add GetStructuringElement function
GetStructuringElement returns a kernel that can be used to perform
morphological operation. This function can be available in `cv.imgproc`
and takes two arguments, the erosion type (MORPH_RECT, MORPH_CROSS,
MORPH_ELLIPSE, ...) and the size of the generated kernel. The `ksize`
argument must be an array of two numbers.
The output kernel is often use for Dilation and Erosion operations.
2015-11-22 15:19:30 +01:00
Anshul Jain
02aa27da1d Return a new matrix after reshape operation to preserve the
original matrix
2015-11-20 12:11:48 -08:00
Anshul Jain
cd7b6d16bd Fix typo in Matric convertTo function 2015-11-20 11:25:34 -08:00
Peter Braden
fdc2f6b49a Merge pull request #334 from jainanshul/reshape
Add matrix reshape function
2015-11-20 10:32:37 +01:00
Peter Braden
7470f5fc94 Merge pull request #335 from jainanshul/lda
Add LDA SubspaceProject and SubspaceReconstruct functions
2015-11-20 10:32:11 +01:00
Anshul Jain
fa008d86a4 Add support for matrix convertTo function 2015-11-19 21:51:13 -08:00
Anshul Jain
49bc593d17 Add matrix reshape function 2015-11-19 15:39:12 -08:00
Anshul Jain
277671203e Add LDA SubspaceProject and SubspaceReconstruct functions 2015-11-19 11:06:22 -08:00
Anshul Jain
3736e83aa0 Convert face training image to gray scale only if image has 3 channels 2015-11-05 16:02:26 +05:30
Max Ehrlich
58093bdcfc Merge pull request #328 from jainanshul/norm
Add Matrix norm function
2015-10-30 10:33:58 -04:00
Anshul Jain
caccd601a7 Add Matrix norm function 2015-10-30 18:47:22 +05:30
Peter Braden
8f8d0a59b6 Merge pull request #327 from jainanshul/constants
Add some common constants
2015-10-30 14:07:27 +01:00
Peter Braden
b6fd0f00f6 Merge pull request #319 from vyacheslav-lonschakov/master
Fixed bug with compile in Visual Studio.
2015-10-30 14:06:27 +01:00
vyacheslav
9675b153c9 Fixed indent. 2015-10-30 12:12:22 +03:00
Anshul Jain
8d9b73529a Add some common constants 2015-10-30 10:48:59 +05:30
Peter Braden
baada9d639 Merge pull request #324 from jainanshul/regression_matrix_constructor
Fix regression in matrix constructor that takes in array of default v…
2015-10-29 12:40:55 +01:00
Anshul Jain
b3aae5af58 Add support for GetRotationMatrix2D and WarpAffine 2015-10-29 15:11:07 +05:30
Anshul Jain
62697ccf86 Fix regression in matrix constructor that takes in array of default values 2015-10-28 16:20:36 +05:30
vyacheslav-lonschakov
50276232b1 Replaced error message to dynamically array. 2015-10-19 08:29:11 +03:00
Anshul Jain
b66139e0ee Add async versions of predict and train face recognition methods. 2015-10-15 10:54:08 -07:00
Peter Braden
d291d89771 Merge pull request #315 from adius/add-otsus-method
Add otsus method
2015-10-09 10:21:14 +02:00
Adrian Sieber
9faf0f5a77 Add function argument to specify the threshold algorithm 2015-10-08 22:00:12 +02:00
Adrian Sieber
90fe184501 Mark the default value in error message 2015-10-08 21:58:32 +02:00
Adrian Sieber
8281330044 Use correct datatype for binarization type 2015-10-08 21:46:03 +02:00
Adrian Sieber
901edf4d58 Throw error if invalid binarization technique is provided 2015-10-08 21:43:36 +02:00
Adrian Sieber
769b3f912e Remove redundant variable assignment 2015-10-08 21:43:05 +02:00
Anshul Jain
dc12c4f2ed Prevent a copy during grayscale conversion 2015-10-08 12:21:44 -07:00
Anshul Jain
a2073757a2 Add support for CV_BGR2RGB color transformation 2015-10-08 12:21:44 -07:00
Anshul Jain
c7037ef20c Fix formatting for CvtColor matrix function 2015-10-08 12:21:41 -07:00
Adrian Sieber
0737bdd85a Use "else if" to clarify mutual exclusivity 2015-10-08 20:50:59 +02:00
Anshul Jain
bb07fcdaf6 FaceRecognizer: convert to grayscale only if 3 channels are provided 2015-10-07 08:48:25 -07:00
Keegan Brown
8b3e747c35 Eliminated deprecation warnings while building in Node v4.1.2 2015-10-06 12:46:44 -05:00
Keegan Brown
ec09e0bdde Swapped out all "handle" for "local"
Now building and passing tests locally in node v0.10.40 v0.12.7 and
v4.1.1. Other modules would not build at node lower than v0.10, so I
stopped there.
2015-10-05 14:33:12 -05:00
Keegan Brown
a0faef9e65 Here goes nothing...
So apparently Nan v2 has removed Handle and uses Local instead. Not
sure wtf that’s all about. I have no idea if this works, but it builds
in both node v4.1.1 and v0.12.7 and passes the included tests in both.
2015-10-05 13:53:34 -05:00
Keegan Brown
0216128fb0 Builds fine in 4, Fails in 0.12.7 2015-10-01 18:15:10 -05:00
Keegan Brown
1974fd6d00 Revert "conversion + build + test passed... so far"
This reverts commit ea69fcc10b73a191e1d3dc6c9decdc1ebc8bc714.
2015-10-01 11:03:08 -05:00
Keegan Brown
ea69fcc10b conversion + build + test passed... so far 2015-09-29 13:39:49 -05:00
Peter Braden
cbaff9a133 Make FaceRecognizer require OpenCV <= v2.4.8.
For some reason OpenCV shipped a broken branch build on Ubuntu 2.4.2 64
bit.

Thanks to @gluxon for noticing this:
https://github.com/peterbraden/node-opencv/issues/56#issuecomment-20263153

Rather than try and be clever, I'm just gonna up the version
requirements.

This fixes #56 #41 #105 #240 and #275
2015-09-22 11:24:40 -04:00
Anshul Jain
7c426bf69a Fix code formatting for native code closes #295 2015-09-14 17:03:51 -07:00
Anshul Jain
4f04198cc3 Create a matrix using the provided scalar 2015-09-10 17:59:33 -07:00
Michael Vines
20807d6284 Only run equalizeHist() if an BGR matrix was provided
Grayscale matrices are used unmodified.
2015-08-30 01:08:55 -07:00
Michael Vines
63bc56be70 VideoCaptureWrap: patch memory leak and simplify AsyncVCWorker. 2015-08-26 22:18:28 -07:00