R Code:
#Image processing #Read Original Image x <- readJpeg("Boudha.jpg") plot(x) dev.copy(png,filename="original.png",width=2048,height=1206); dev.off (); #copy pixels from left to right and mirror y <- imagedata(abind(x[,1:(ncol(x)/2),], x[,(ncol(x)/2):1,] , along=2)) plot(y) dev.copy(png,filename="halfmirror.png",width=2048,height=1206); dev.off (); #copy all pixels and mirror rows z <- imagedata(abind(y[1:(nrow(x)),,], y[(nrow(x)):1,,] , along=1)) plot(z) dev.copy(png,filename="final.png",width=2048,height=1206); dev.off ();
Result
original.pnghalfmirror.png
final.png