Skip to content

Conversation

@cassandracomar
Copy link

This pull request is based on advice from this pull request. This PR adds automatically generated C bindings that mirror the C++ API and raw Haskell bindings that map onto those C bindings. Please see the description in the linked PR for full details.

Arjun Comar added 9 commits March 14, 2014 22:19
…s in favor of letting cmake find the dependency.
….so, and symbols have been verified with nm.
…nking strategies (necessary for e.g. haskell's build system).
…g that it will require copying on the other side to pull off correctly. May undo this commit later in favor of moving the unsafePerformIOs into the higher level library.
@cassandracomar
Copy link
Author

Is there some problem with this PR? I was told to send it here a long time ago by @SpecLad and @kirill-kornyakov.

joe-w-bimedina and others added 4 commits April 4, 2014 15:29
Changed size.hpp and size.cpp to use double instead of int by default.
Now using macros to automatically generate code for the various element types
that points can accept. While I'm only committing code for int/float/double,
support can now trivially be extended to any type you might like to store in
a cv::Point_<>.
@kirill-korniakov
Copy link

Arjun, thank you for the pull request, but we need some time to check it. We're quite busy at the moment, but I hope to respond you in a week. Sorry for the delay...

@cassandracomar
Copy link
Author

Thanks Kirill, hadn't heard anything in weeks ago I wasn't sure what was
going on.
On Apr 8, 2014 9:02 AM, "Kirill Kornyakov" [email protected] wrote:

Arjun, thank you for the pull request, but we need some time to check it.
We're quite busy at the moment, but I hope to respond you in a week. Sorry
for the delay...

Reply to this email directly or view it on GitHubhttps://github.com//pull/15#issuecomment-39844386
.

Arjun Comar and others added 13 commits April 13, 2014 00:14
Some functions are generated incorrectly by the generator, and others are skipped entirely.
This commit provides files to add those functions correctly. Functions added to
excluded_functions.{cpp,hpp} need to also be added to the excluded_functions list
in genc.py so the functions aren't generated into opencv_generated.{hpp,cpp}
thereby avoiding conflicts at build time.
Points are exposed in OpenCV via templated (generic) types. These types don't translate well to C
and so Haskell sees them as a variety of different types. While we're able to unify them in
Haskell again via data families, a similar naming scheme helps by allowing the compiler to automatically
generate the appropriate function calls via Template Haskell.
…otatedRect_size,cv_RotatedRect_center,cv_create_RotatedRect,cv_inRangeS,cv_createTrackbar,cv_setMouseCallback excluded_functions.cpp
…otatedRect_size,cv_RotatedRect_center,cv_create_RotatedRect,cv_inRangeS,cv_createTrackbar,cv_setMouseCallback excluded_functions.cpp
…otatedRect_size,cv_RotatedRect_center,cv_create_RotatedRect,cv_inRangeS,cv_createTrackbar,cv_setMouseCallback to excluded_functions
… cv_destruct_Mat cv_delete_MatExpr cv_destruct_MatExpr to mat.cpp
… cv_destruct_Mat cv_delete_MatExpr cv_destruct_MatExpr to mat.cpp
Sending over excluded_functions.cpp/hpp and scalar.cpp/hpp for evaluation
@cassandracomar
Copy link
Author

@kirill-kornyakov -- Any updates for me?

@kirill-korniakov
Copy link

Well, I didn't have a chance to try your pull request, but it seems I will not be able to work on this before May (we have internal release in April). So, I suggest to take your pull request as is, and update it later if needed. Do you think you have finished with your work? I can merge your code as soon as you say me to do so.

@cassandracomar
Copy link
Author

Merge next week then, I'm testing a couple of bug fixes and changes to the generator to handle InputArray and OutputArray a bit better. I should have it sorted out by then, and it'll be in a place where other people can reliably test.

Arjun Comar and others added 7 commits April 21, 2014 22:25
Still need to add Size.
This should fix memory management within the generated headers.
That's going to have to be done on a per-type level.
…rams because the generator was unable to generate these functions
…rams because the generator was unable to generate these functions
Add MLP_TrainParams stuff the generator was getting wrong.
ArtemSkrebkov added a commit to ArtemSkrebkov/opencv_contrib that referenced this pull request Nov 10, 2014
Added new vignette and warmify samples
@TomMD
Copy link

TomMD commented Dec 26, 2014

I see this is approaching a year old and bit-rotted. Is there a reason, other than time constraints, that the PR never made it upstream? Would now be a good time to de-bit-rot and resubmit?

@cassandracomar
Copy link
Author

Sorry about the delay in responding, this got lost with the holidays and
what not.

It's been almost entirely time constraints that have prevented me from
de-bitrotting this. I started a new job and haven't had time to bring this
up to date with mainline and the build system underwent some kind of change
around May/June that prevents the necessary headers from being generated. I
never got around to tracking down the issue. I'll take a look at it over
the next couple of weeks and let you know how much time/effort this is
going to take. I could definitely use some assistance from someone who
knows cmake and understands the build system.

Thanks,
Arjun

On Fri, Dec 26, 2014 at 6:42 PM, Thomas M. DuBuisson <
[email protected]> wrote:

I see this is approaching a year old and bit-rotted. Is there a reason,
other than time constraints, that the PR never made it upstream? Would now
be a good time to de-bit-rot and resubmit?


Reply to this email directly or view it on GitHub
#15 (comment).

@autosquid
Copy link

hi, will this P.R. updated for opencv3?

@cassandracomar
Copy link
Author

@autosquid: It's unlikely I'll have time to devote to de-bitrotting this project before the spring. Feel free to pick it up if you'd like to see it included.

@sovrasov sovrasov closed this May 23, 2017
shanchenqi pushed a commit to shanchenqi/opencv_contrib that referenced this pull request Nov 20, 2020
bmegli pushed a commit to Extend-Robotics/opencv_contrib that referenced this pull request Jul 11, 2022
* Fixing Windows build issue

* Fix windows build and nodelet lib search
allnes pushed a commit to allnes/opencv_contrib that referenced this pull request Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants