1: Input= ; Dimension = 
2: For to do:
3:   Input
4:   Input
5:   For to 2 do:
6:    For in 1 to
7:    For in 1 to :
8:       
9:       
10:      
11:      
12:    endFor
13:   endFor
14: endFor
15: 
16: 
17: endFor
Algorithm 1: NDVI/NDWI classification and changing detection.