Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Calling an OpenCV function

Calling an OpenCV function

Scheduled Pinned Locked Moved C#
csharpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    E6AD
    wrote on last edited by
    #1

    Dear ALL, I want to call an opencv function from C#...(a function from the OpenCV library provided by Intel) I was wondering if I just call the .dll or is there some sort of installation that has to be done to the library? Best Regards, E.A.

    M 1 Reply Last reply
    0
    • E E6AD

      Dear ALL, I want to call an opencv function from C#...(a function from the OpenCV library provided by Intel) I was wondering if I just call the .dll or is there some sort of installation that has to be done to the library? Best Regards, E.A.

      M Offline
      M Offline
      Mohamad Al Husseiny
      wrote on last edited by
      #2

      i don't know OpenCV but if its unmanaged dll You can use P/Invoke to call function from dll Look at Calling Win32 DLLs in C# with P/Invoke[^] MCAD

      A 1 Reply Last reply
      0
      • M Mohamad Al Husseiny

        i don't know OpenCV but if its unmanaged dll You can use P/Invoke to call function from dll Look at Calling Win32 DLLs in C# with P/Invoke[^] MCAD

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        Thanks Muhammad, I have read about P/Invoke... My problem now is with marshalling the data between the managed and unmanaged code... The unmanaged function that I want to call has the following input parameter of type CvContourRetrievalMode that takes only 4 values ,either CV_RETR_TREE ..etc I don't know if it would be correct to use an enum in this case? Thanks again, E.A.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups