byte array from .net to matlab

Does any one know that How can we pass a byte array from .net to Matlab.
Or a bitmap object of image from .net to Matlab? Or assign byte[] to MWArray ?
Please let me know if any one knows. Thanking you.

댓글 수: 3

Friedrich
Friedrich 2011년 9월 1일
Is this about MATLAB Builder NE or the MATLAB .NET interface through net.addassembly function?
Dipak
Dipak 2011년 9월 1일
not conformed
suppose you have array of byes (which is the desired image ) byte[] bytes; FileStream fs = null; fs = File.OpenRead(openFileDialog1.FileName); // you can get it from //any source you want.
bytes = new byte[fs.Length];
fs.Read(bytes, 0, Convert.ToInt32(fs.Length));
MWNumericArray data = bytes;
(MWNumericArray)img.imageTest(
data
);
// for more more details read about matlab builder ne. and matlab compiler nun time.

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB Compiler SDK에 대해 자세히 알아보기

태그

질문:

2011년 9월 1일

댓글:

2013년 10월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by