Is this code creating a matrix for the image or is it doing something else?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Recap
am 26 Mär. 2016
Beantwortet: Image Analyst
am 26 Mär. 2016
What exactly are these 3 lines doing?
im2(:,:,1)=im1;
im2(:,:,2)=im1;
im2(:,:,3)=im1;
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 26 Mär. 2016
They're creating a 3D matrix where every slice/channel/plane is the same - it's im1. So im2 can either be a color image that appears as grayscale because all 3 color channels are identical, or it can be a volumetric image (like a CT or MRI image) where all three slices/planes are the same, like you extruded the im1 image upwards.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Explore and Edit Images with Image Viewer App finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!