-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cv.split #1
Comments
Did you try this: |
here is the code i used : (coffee) ########################### src = cv.imread '../test.jpg', 1 plane = [] setTimeout () -> Also, i can't use "console.log Mat", it always crash. D'ont know if it is linked. |
Yes, that was a bug in opencv-node. Actually, I've somehow used an older, unfinished version of the code to publish opencv-node so it had more issues. Now I've updated opencv-node to version 0.2.3, use
to update. If you look in the scripts directory, there's a effects.coffee which does some effects on running video. |
Also, console.log Mat works without crashing now, but doing this would output a looong array of bytes which is not very interesting.
|
Great, everything works for console.log and cv.split. Thanks for the fix ! Now trying to get something out of cv.calcHist function. Here is my code: src = cv.imread '../test.jpg', 1 planes = cv.split src cv.calcHist planes[0], 1, 0, mask, b_hist, 1, histSize, range, uniform, accumulate The result should be in b_hist but just like with split before, the matrix doesn't change. Last question, is it possible to keep the original definition of the function split ? (i mean cv.split mat, array instead of array cv.split mat ?) |
Ahh.. you're hitting where it hurts. Seems like calcHist, calcBackProject and 3 other functions are not ported. I did this thing like 2 years ago and I've forgotten about it. But let me see what I can do. Maybe someone else also needs them ;). Re: split -> I'll try. |
Thanks a lot ! |
Hello,
i've been trying to follow that opencv tutorials : http://docs.opencv.org/doc/tutorials/imgproc/histograms/histogram_calculation/histogram_calculation.html
which should give me some nice histograms plot but, by just following the exact same steps, i couldn't achieve it.
I'm not exactly sure how the binding work for the calcHist function but at least it seems that cv.split(Mat, []) is not filling the array.
Can you have a look on this ?
The text was updated successfully, but these errors were encountered: