How to capture the figure data as a single matrix?
    2 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    John Wray
 el 17 de Mayo de 2016
  
    
    
    
    
    Respondida: Guillaume
      
      
 el 17 de Mayo de 2016
            Hi,
I could easily get figure image data using GETFRAME, but it returns .cdata which have three dimension. How could I save the figure image data as a single matrix image data?
So I would be able to process this image using imdilate(), imerode() etc.
Thanks.
0 comentarios
Respuesta aceptada
  Guillaume
      
      
 el 17 de Mayo de 2016
        That cdata is a single matrix image in RGB form. If you are sure that the image is greyscale then you can use any of the colour channel as your grey image. If not, use rgb2gray.
0 comentarios
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!
