Convert a <1023x1023 double> to a rgb image
1 回表示 (過去 30 日間)
古いコメントを表示
I have a data < 1023x1023 double> the values is 0 and 1. How i convert this type of data in a rgb image data, and a binary image type of data?
0 件のコメント
採用された回答
Walter Roberson
2011 年 4 月 1 日
Let A be the array, then
Argb = cat(3,A,A,A);
Or
Argb = repmat(A,1,1,3);
And
Abinary = logical(A);
2 件のコメント
Jan
2011 年 4 月 1 日
Working: Argb = repmat(A, [1,1,3]);
@Rafael: If the solution works, please accept the answer such that the readers can see, that the problem is solved already.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Convert Image Type についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!