The command z is a shortcut for command crop, so +z ... extracts some small region from the input image and the mask. After the crop, your list has 4 images :
-
[0]= Fullres color image -
[1]= Fullres binary mask -
[2]= Cropped region from color image. -
[3]= Cropped region from binary mask.
Now, we applyinpaint_pde[2] [3]to reconstruct cropped color image[2]using the inpainting mask[3], and we finally redraw the reconstructed region[2]into the fullres color image[0](commandj, akaimage). Latest commandk(akakeep) only keeps the fullres reconstructed color image, which is the one that is interesting.