Creating an image from multi-structural array
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
Could someone enlighten me on how to pass multi-structural array to 'imshow' to create an image. The code as it is now is displayed below
.
.
.
adjv = zeros(32,32,N_fr);
adjv(:,:,N_fr) = Data_frame(:,:,N_fr);
%adj_tv = transpose(adjv);
adj_tv=adjv.';
save adjv
save adj_tv
disp('Plotting')
figure(1)
imshow(adj_tv*255),
Regards
Eze
3 件のコメント
Walter Roberson
2013 年 3 月 10 日
What are you hoping for as the result?
When you say "multi-structural" are you possibly taking about an image constructed from multiple spectral frequencies, such as images taken on several different infrared bands? Or are you talking about an RGB image? Or are you constructing images over time and you want to view them as a movie? Or are you trying to show a 3D image built up of slices?
Image Analyst
2013 年 3 月 10 日
I don't know what a multi-structural array is. Apparently you're creating a sequence of black images and making the last frame (or slice or color channel or whatever you want to call it) the same as the transpose of the last frame of some other image sequence. Then you save it and try to display it, while deceptively printing out something you're not doing: "Plotting". I have no idea what you want to do or think you are doing. Moreover, unless N_fr is 3 and the variable is a floating point image in the range 0-1, it won't display anything useful unless you cast adj_tv*255 to uint8.
Ezekiel Agunlejika
2013 年 3 月 11 日
回答 (0 件)
この質問は閉じられています。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!