Index matrix exceeds dimensions - Using pad array
    2 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    Ammar Babikir
 am 26 Feb. 2018
  
    
    
    
    
    Kommentiert: Ammar Babikir
 am 1 Mär. 2018
            Hello, I'm working on an adaptive histogram equalization problem that requires me to pad an image on all 4 sides using the symmetric argument.
I attached my code (Problem2_RUNME)
I also attached the algorithm I am trying to implement.
This is the error that I'm getting: Index exceeds matrix dimensions.
Error in Problem2_RUNME (line 19) if B(x,y) > B(i,j)
0 Kommentare
Akzeptierte Antwort
  Venkata Siva Krishna Madala
      
 am 1 Mär. 2018
        
      Bearbeitet: Venkata Siva Krishna Madala
      
 am 1 Mär. 2018
  
      Hello Ammar Babikir,
The reason you are getting this error is because your win_size to to large. The range of x is 1 to 600 while that of y is 1 to 800. For i and j the range is 1 to 1089(33*33). Ensure that your win_size*winsize is less than the size of image and this error will not be thrown.
Regards,
Krishna Madala
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

