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. Managed C++/CLI
  4. sending a opencv Mat to a shared library generated by matlab

sending a opencv Mat to a shared library generated by matlab

Scheduled Pinned Locked Moved Managed C++/CLI
helpc++
1 Posts 1 Posters 1 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.
  • M Offline
    M Offline
    Member 11562114
    wrote on last edited by
    #1

    Hello everybody! at first I apologize for my weak English! I use a shared library generated by MATLAB 2012b in VC++ 2012. In my shared libray I have a function that takes two arguments and calculates normxcorr2 between them and return maximum calculated value:

    function max = Normed_CC(template, image)
    ....

    Now I want to send two variables of type cv::Mat from my vc++ program to it. My problem is when I convert cv::Mat to mxArray and then send these new objects to "Normed_CC", normxcorr2 in Matlab side arise an exception with this theme: "template at least must have two item". sorry I don't remember exactly now because I'm not in work now and don't have access to my code...! please help me to resolve my issue. thanks in advance.

    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