필터 지우기
필터 지우기

How do i show a montage on a UIAxes

조회 수: 3 (최근 30일)
Olukayode Sonaike
Olukayode Sonaike 2018년 3월 30일
댓글: Veena Chatti 2020년 8월 25일
I want to show an image montage on a specific uiaxes on Matlabs's appdesigner. I've tried specifying the axes object that i want the image to show up in. but i keeping get an error, too many inputs. Any help is greatly appreciated.

답변 (1개)

Frederick Weston
Frederick Weston 2019년 5월 20일
montage({FrameN,app.DisImage2},'Size',[1,2],'Parent',app.Display_1);
Use the 'Parent' parameter then state the figure.
  댓글 수: 2
Veena Chatti
Veena Chatti 2020년 8월 25일
Hi, could you clarify your answer a little, please? What's FrameN? What's app.DisImage2? What's app.Display_1? I understand that these are all app Properties and so they are variables that are accessible across the app, but I don't understand what's in the curly brackets.
How do those relate to what variables Olukayode used in the question above?
Veena Chatti
Veena Chatti 2020년 8월 25일
I tried the line of code you suggested guessing that FrameN was Frame number, app.DisImage was the stack to be displayed, and size unchanged, and got the following error:
Error using images.internal.createMontage>getOneImage (line 332)
Multi-plane image inputs must be RGB images of size MxNx3.
Error in images.internal.createMontage>getImages (line 238)
img = getOneImage(imgSource,useIndexedRead, idxs(k), cmap);
Error in images.internal.createMontage (line 66)
imageArray = getImages(imgSrc, thumbnailSize, borderSize, backgroundColor, indices, cmap, waitbarEnabled);
Error in montage (line 181)
[bigImage, cmap] = images.internal.createMontage(Isrc, thumbnailSize,...

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Graphics Object Properties에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by