I am controlling a vc++ CLI way to anxiety a dll that is combined in
vb.net and contains a form that runs SURF algorithm. My problem is that a
form is combined and dissapears immediately. On step by step execution, a
Form_Load eventuality duty runs totally though a timer in a form doesn't
run. After Form_Load a execution stops and my vc++ returnsThis is my
codevb.net dllPrivate Sub frmSURF_Load(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles MyBase.Load tgtImage =
New Image(Of Gray, Byte)(imgFile) startTracking = True
actualImage = camCapture.RetrieveGrayFrame AddHandler
Me.TextChanged, AddressOf getPoints tmSURF.Start() End Sub**
Till this point, a formula is executed and it advantage **Private Sub
tmSURF_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles tmSURF.Tick actualImage = camCapture.RetrieveGrayFrame If
startTracking = True Then Dim CPUsurfDz As SURFDetector = New
SURFDetector(500, False) 'less a number, some-more a underline
points Dim homography As HomographyMatrix = Nothing Dim
modelkeypoints As VectorOfKeyPoint 'keypoints in a denote
image(set image) Dim observedkeypoints As VectorOfKeyPoint
'keypoints in a realtime constraint Dim indices As Matrix(Of
Integer) Dim dist As Matrix(Of Single) Dim masquerade As
Matrix(Of Byte)vc++ .exe application#include "stdafx.h"#using
"SurfDLL.dll"using namespace SurfDLL;int _tmain(int argc, _TCHAR* argv[]){
frmSURF ^surf = gcnew frmSURF(); surf->imgFile =
"E:/camshift/cam1.jpg"; surf->Show();}Any assistance is appreciated.
Thanks in advance
No comments:
Post a Comment