retrieval of original image from its bit planes
4 ビュー (過去 30 日間)
古いコメントを表示
I have eight different bit planes of a image i.e. bp0-bp7 and now i just want to retrieve original image by combining all these. how it is possible..please suggest.
0 件のコメント
回答 (1 件)
Guillaume
2014 年 12 月 4 日
編集済み: Guillaume
2014 年 12 月 4 日
%bitplanes = randi([0 1], 100, 100, 8); %random array of bit planes
bitplanes = cat(3, bp7, bp6, bp5, bp4, bp3, bp2, bp1, bp0); %assuming bp0 is lsb
bitweight = permute(2.^(7:-1:0), [3 1 2]);
fullimage = sum(bsxfun(@times, bitplanes, bitweight), 3);
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!