ImageReflect

ImageReflect[image]

reverses image by top-bottom mirror reflection.

ImageReflect[image,side]

reverses image by reflecting it so that the specified side goes to the opposite side.

ImageReflect[image,side1side2]

reflects image so that side1 is interchanged with side2.

Details

  • ImageReflect yields an image with pixel values corresponding to a reflected image.
  • ImageReflect[image,] reflects image in a line that goes through its center.
  • ImageReflect works with arbitrary 2D and 3D images.
  • Possible side specifications are: Top, Bottom, Left, Right.
  • Additional side specifications in 3D are: Front, Back.
  • Use ImageReflect[image,All] to mirror along all sides, top to bottom, left to right and front to back.

Examples

open allclose all

Basic Examples  (2)

Top-bottom mirror reflection:

Left-right mirror reflection:

Scope  (7)

Data  (3)

Reflect a grayscale image:

Reflect a color image:

Reflect a 3D image:

Parameters  (4)

Specify the side:

Reflect an image across the main diagonal:

Reflect along all sides, effectively reflecting about the center:

Show the back of a 3D image:

Applications  (2)

Correct for a mirror effect in a photo:

Create a wallpaper effect using reversed periodic extensions of an image:

Properties & Relations  (2)

Top-bottom image reflection using ImageTransformation:

Reflection across the main diagonal using ImageTransformation:

Reflection across the main anti-diagonal:

Show all possible combinations of named reflections:

Wolfram Research (2008), ImageReflect, Wolfram Language function, https://reference.wolfram.com/language/ref/ImageReflect.html (updated 2020).

Text

Wolfram Research (2008), ImageReflect, Wolfram Language function, https://reference.wolfram.com/language/ref/ImageReflect.html (updated 2020).

BibTeX

@misc{reference.wolfram_2020_imagereflect, author="Wolfram Research", title="{ImageReflect}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/ImageReflect.html}", note=[Accessed: 14-April-2021 ]}

BibLaTeX

@online{reference.wolfram_2020_imagereflect, organization={Wolfram Research}, title={ImageReflect}, year={2020}, url={https://reference.wolfram.com/language/ref/ImageReflect.html}, note=[Accessed: 14-April-2021 ]}

CMS

Wolfram Language. 2008. "ImageReflect." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/ImageReflect.html.

APA

Wolfram Language. (2008). ImageReflect. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ImageReflect.html