I want to get the contour of only red bird in the image
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
muhammad choudhry
el 15 de Jul. de 2020
Comentada: muhammad choudhry
el 15 de Jul. de 2020
Hi,
Can any one help, I want to see the contour of birds and then separately contour of red colour bird in the image only. Image attached!
I have tried to get the contour but getting this error.
Code:
I = imread('birds.jpg');
imshow(I)
I0 =rgb2gray(I);
imshow(I0)
figure;
imcontour(I0,2)
Error:
Error in imcontour (line 44)
contour(x,y,a,extra_args{:});
Error in contour (line 9)
imcontour(I0,2)
2 comentarios
Cris LaPierre
el 15 de Jul. de 2020
What version of MATLAB are you using? I ran your code and did not get any errors.
Respuesta aceptada
Cris LaPierre
el 15 de Jul. de 2020
Editada: Cris LaPierre
el 15 de Jul. de 2020
Change the name of your file to something other than contour. Then in the command window, type clear contour and press enter.
Contour is the name of a MATLAB function that is used in lmcontour. However, due to MATLAB's precedence, it is using your script instead, causing the error.
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!