i want to know the pixel intensity value in an image but it gives different results using data cursor and command.which one is correct? and why it is showing differently?
    2 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Mahesh Kumar
 el 29 de Jul. de 2014
  
    
    
    
    
    Comentada: Image Analyst
      
      
 el 29 de Jul. de 2014
            let A is image
i want to know intensity value at (25,170).so by using command A(25,170) we can find intensity value but,using data cursor it shows different intensity value
0 comentarios
Respuesta aceptada
  Alex Taylor
    
 el 29 de Jul. de 2014
        Impixelinfo is reporting in x,y convention. You are indexing in row,col. Index A(y,x) and this should resolve the issue.
0 comentarios
Más respuestas (1)
  Image Analyst
      
      
 el 29 de Jul. de 2014
        It might use what's on the screen instead of the actual image - I don't know. Why don't you use impixelinfo(), which is meant for that sort of thing?
2 comentarios
  Image Analyst
      
      
 el 29 de Jul. de 2014
				See Alex's answer. I should have thought of that. It's a very common mistake people make - using (x,y) when they should use (y,x) or using (row, column) when they should be using (column, row). Remember x = column, and y = row.
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!