I have 2 images and i choose one from popup menu then i choose the type of noise from another popup menu to make it on the choosen image how??

1 view (last 30 days)
GUI functions

Answers (1)

Image Analyst
Image Analyst on 22 Nov 2015
You could make the image global in the first callback, or you could call getimage() in the noise callback. In the callback for the popup about noise, get the value and apply the noise you want:
theImage = getimage(handles.axesImage);
noiseSelection = get(handles.popNoise, 'Value');
switch noiseSelection
case 1
noisyImage = imnoise(theImage, ......);
case 2
noisyImage = imnoise(.....); % noise type 2
end
imshow(noisyImage);
  5 Comments

Sign in to comment.

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!