Make library, use it on vb6,Matlab video processing.

Discussion in 'Programmer's Corner' started by jason tran, Jul 27, 2011.

  1. jason tran

    Thread Starter New Member

    Jul 24, 2011
    Hi. i want to build a software , it can traking car using optical flow estimation. i have been success with "m file" in matlab 2010b and using deploytool to make com component, setup MCR. When i add reference in vb6, it's ok, but vb6 can'n know some code in "m file",ex : video.ImageDataTypeConverter. I dont know how to fix this problem. help me please.
    I have some question :
    1.%Mbuild -setup : this comment to choose the compiler. My computer have been setup vb2008 and vb6 but i just find vb2008 in this case.
    Some thing wrong ?. ( i use vb6 to make programing). 2. If the compiler is not support video class, How to replace this code ?
    %OpticalFlow = video_OpticalFlow('ReferenceFrameDelay', 1);
    I use matlab buider NE and it does not have error, may be it is support video class ?
  2. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    If I follow you are making a COM component for VB. Once you make it, and reference it inside VB then VB *will* know some code "m file" or whatever your new widget offers. The type library you made when you made the component contains all that good stuff.