perform var(image(:)) operation in gui

1 次查看(过去 30 天)
please,provide me a demo code for 5 images read in GUI using popup menu and perform var(image(:)) operation in gui
  2 个评论
Walter Roberson
Walter Roberson 2013-2-6
What part should the pop-up menu play in this?
What do you want to have happen with the result of the variance calculation?
vipul utsav
vipul utsav 2013-2-6
suppose 5 images are a,b,c,d,e.
if i select in pop-up menu 'b',then image 'b' should display in GUI and var(b(:)) should display in box.

请先登录,再进行评论。

采纳的回答

Walter Roberson
Walter Roberson 2013-2-6
foo = get(hObject, 'String');
bar = imread(foo{get(hObject, 'Value')});
msgbox(num2str(var(bar(:))));

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Images 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by