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!