showing the grayscale matrix
    5 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
    evangeline
 il 23 Gen 2014
  
    
    
    
    
    Commentato: Image Analyst
      
      
 il 23 Gen 2014
            I have a 2D matrix , and I was trying to display it as an image, but the problem is that in the output axes, for all the numbers except 0, I see white in result, and black for zero, I want to see all gray colors (in grayscale) from black to white, what can I do? this is the resault I see

0 Commenti
Risposta accettata
  Image Analyst
      
      
 il 23 Gen 2014
        It's probably a type double, which needs to be in the range 0-1, not 0-255 that you probably have. You can autoscale with []. Try
imshow(your2Dmatrix, []);
2 Commenti
Più risposte (0)
Vedere anche
Categorie
				Scopri di più su Image Processing Toolbox in Help Center e File Exchange
			
	Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

