# NOT RUN {
## generate an image without defects
img <- sarGen(m = 100, n = 100, border = 50)
image(img,col=gray(c(0:32)/32))
## superimpose a defect
img <- imposeDefect(img)
image(img$img,col=gray(c(0:32)/32))
# }
Run the code above in your browser using DataLab