Filter löschen
Filter löschen

How can I show multiple images in one axis in matlab GUI?

1 Ansicht (letzte 30 Tage)
Wind Cloud
Wind Cloud am 23 Sep. 2013
Hello, I am studying gui,and I want to show multiple images in only one axis,and the location of the images should like this(see the image upload). I have seen your answer here, http://www.mathworks.com/matlabcentral/answers/41928-display-multiple-images-on-single-axes,but the codes have some problems when operating. Hope you can help me!
when using your code, the error message is in the following.
??? Error using ==> horzcat CAT arguments dimensions are not consistent.
Error in ==> Untitled at 31 outputImage = [rgbImage, verticalStrip, redChannel; horizontalStrip; greenChannel, verticalStrip, blueChannel];
  2 Kommentare
Walter Roberson
Walter Roberson am 23 Sep. 2013
Put a breakpoint at that line. Run the program. When it stops at the breakpoint, please show us size() of each of the variables on the right hand side.
Wind Cloud
Wind Cloud am 24 Sep. 2013
I have found the errors, thank you for your kindness!!

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Image Analyst
Image Analyst am 23 Sep. 2013
Then try using the montage() function to create a tiled image, then display that with imshow().

Weitere Antworten (0)

Kategorien

Mehr zu Display Image finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by