powered by
juxtapose compares the original image with the colorized version obtained with colorize.
juxtapose
colorize
juxtapose( response, type = c("side-by-side", "stacked", "c-focus", "h-focus", "v-focus", "h-split", "v-split", "d-split", "u-animate", "s-animate"), pane = c("plot", "view", "none") )
a response object of a colorize function call.
defines the type of juxtaposition:
side-by-side original image left, colorized right.
side-by-side
stacked original above colorized.
stacked
c-focus colorized center with original image border.
c-focus
h-focus above and below strips of original image.
h-focus
v-focus left and right strips of original image.
v-focus
h-split horizontally halved.
h-split
v-split vertically halved.
v-split
d-split diagonally halved.
d-split
u-animate animated, colorized to the top (upwards).
u-animate
s-animate animated, colorized from left to right (sideways).
s-animate
defines in which pane the image is displayed: Plots or Viewer.
Plots
Viewer
The function adds the comparison to the response object and returns it invisibly.
# NOT RUN { # Compare images res <- colorize(img = "https://upload.wikimedia.org/wikipedia/commons/9/9e/Breadfruit.jpg") juxtapose(res) # }
Run the code above in your browser using DataLab