필터 지우기
필터 지우기

Connecting matlab and visual studio

조회 수: 12 (최근 30일)
aravind`
aravind` 2012년 3월 13일
Can we connect visual studio and matlab ? if so how ? can anyone please help me ?
  댓글 수: 2
Jason Ross
Jason Ross 2012년 3월 13일
What do you mean by "connect"? What are you trying to do?
aravind`
aravind` 2012년 3월 14일
Sir, i have created a webpage in visual studio. Which has a button,it will get images from the user. I need to compare this image with image in the Database. I am doing this comparison using matlab. So i need to connect visual studio and Matlab.

댓글을 달려면 로그인하십시오.

채택된 답변

Geoff
Geoff 2012년 3월 14일
If this is to be deployed on a server somewhere, it might get a little fiddly.
However, if you simply have MatLab and VS running on your local machine (and I assume the web page is 'running' in VS as some kind of .Net app), you might want to consider this:
Create a directory that the web app drops files.
Set up a MatLab timer to regularly scan that directory for new images (let's just say once every second).
When you find an image, load it and do the comparison.
To communicate back to the web app, you can write out a text file with the same base name as the image and put whatever information you want in there. The web app could wait to receive this file before timing out.
Finally, MatLab either deletes the image file or moves it out of the way.
If you are deploying on a server, you won't be using Visual Studio, but the principle is pretty much the same. However, you will have compiled your MatLab application into an EXE using one of the rather expensive toolkits.
At this point you might want to question whether using a powerful tool like MatLab for basic image comparison (I read your other question on the comparison) is a good idea, when something like ImageMagick will do what you want. In fact, you can do an image comparison in Php, entirely removing the need to outsource the task to another process.
-g-

추가 답변 (2개)

Mike Woodward
Mike Woodward 2012년 6월 26일

aravind`
aravind` 2012년 3월 15일
Thank you for your response Sir, i am doing it without using any server..i.e Matlab and VS is running on my machine. Can you elaborate about it ? I am new to matlab so i am not able to understand.

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by