perform var(image(:)) operation in gui

2 vues (au cours des 30 derniers jours)
vipul utsav
vipul utsav le 6 Fév 2013
please,provide me a demo code for 5 images read in GUI using popup menu and perform var(image(:)) operation in gui
  2 commentaires
Walter Roberson
Walter Roberson le 6 Fév 2013
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 le 6 Fév 2013
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.

Connectez-vous pour commenter.

Réponse acceptée

Walter Roberson
Walter Roberson le 6 Fév 2013
foo = get(hObject, 'String');
bar = imread(foo{get(hObject, 'Value')});
msgbox(num2str(var(bar(:))));

Plus de réponses (0)

Catégories

En savoir plus sur Images dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by