# NOT RUN {
## construct the neighborhod data from a simulated image
img <- sarGen(m = 100, n = 100, border = 50)
dat <- dataPrep(img,1)
## to rotate an image by 90 degrees clockwise, use:
img2 <- as.matrix(t(apply(img , 2, rev)))
# }
Run the code above in your browser using DataLab