byte array from .net to matlab

2 ビュー (過去 30 日間)
Dipak
Dipak 2011 年 9 月 1 日
コメント済み: Muna 2013 年 10 月 4 日
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 件のコメント
Dipak
Dipak 2011 年 9 月 1 日
not conformed
Muna
Muna 2013 年 10 月 4 日
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 件)

カテゴリ

Help Center および File ExchangeDeploy to .NET Applications Using MWArray API についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by