Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

What is the error in the code?

3 Ansichten (letzte 30 Tage)
Sumeet Badgujar
Sumeet Badgujar am 27 Okt. 2018
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
aa=input('image.jpg');
z=aa;
e=input ('Enter lower threshold value ');
f=input ('Enter higher threshold value ');
%Grey level with background
mask = (z>e) & (z<f);
z(mask)=255;
subplot(2,2,3);
imshow(z);
title ('Grey level sliced image with background');
%Grey level without background
mask = (z>e) & (z<f);
z(mask)=255;
mask1=(z<e) & (z>f);
z(mask1)=0;
subplot(2,2,4);
imshow(z);
title ('Grey level sliced image without background');
  1 Kommentar
Aquatris
Aquatris am 29 Okt. 2018
What error did you get?

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by