
how to extract x and y coordinates within yellow boundary in an image
    6 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Ahmad Ridzuan Kudus
 el 6 de Jul. de 2018
  
    
    
    
    
    Respondida: Akira Agata
    
      
 el 13 de Jul. de 2018
            Hi. Here I have an image with yellow boundary as salient region (attached image). How can I extract the ordered list of x and y coordinates within the yellow region from the image?
Thank you in advance.
0 comentarios
Respuesta aceptada
  Akira Agata
    
      
 el 13 de Jul. de 2018
        How about the following?
I = imread('untitled.jpg');
Ilab = rgb2lab(I);
BW = Ilab(:,:,3) > 25;
se = strel('disk',20);
BW = imclose(BW,se);
BW = bwareafilt(BW,1);
xyCoordinates = regionprops(BW,'PixelList');

0 comentarios
Más respuestas (0)
Ver también
Categorías
				Más información sobre Image Processing Toolbox en Help Center y File Exchange.
			
	Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!