필터 지우기
필터 지우기

Passing byte array from c# .net to matlab

조회 수: 4 (최근 30일)
Doctor G
Doctor G 2014년 12월 3일
I have a byte array (image data in 1024 x 1024) that I want to pass back to Matlab.
My C# is returning data as follows:
public byte[,] frameBits(int id)
{
return ((Frame)frames[id]).frameData;
}
it appears in matlab as
Name Size Bytes Class Attributes
f 1x1 112 System.Byte[,]
if I do a uint8(f); then f is:
g 1024x1024 1048576 uint8
which sounds right, but the image with imshow(is only a small section from the middle, and it is a mirror image).

답변 (0개)

카테고리

Help CenterFile Exchange에서 Getting Started with Microsoft .NET에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by