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 commentaires

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
Image Analyst le 10 Mar 2013
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.
Thanks for your response. MATLAB denotes MxNxP as multi-structural array with P-pages. N_fr is usually 1000-30,000. I extract some data (32x32xNo-of-frames) and wish to stack this frames together to make an image. Each frame is meant to depict air as red and blue for water. If you want, I could send you the complete code. Hope you can help identify what I am doing wrong. Many thanks

Réponses (0)

Cette question est clôturée.

Clôturé :

le 20 Août 2021

Community Treasure Hunt

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

Start Hunting!

Translated by