ImageAspectRatio

ImageAspectRatio[image]

gives the ratio of height to width for image.

ImageAspectRatio[video]

gives the aspect ratio of video frames.

Details

Examples

Basic Examples  (3)

Aspect ratio of an image:

Aspect ratio of frames of a video:

Aspect ratio of a 3D image is computed as the ratio of the height to the width of slices:

Wolfram Research (2010), ImageAspectRatio, Wolfram Language function, https://reference.wolfram.com/language/ref/ImageAspectRatio.html (updated 2021).

Text

Wolfram Research (2010), ImageAspectRatio, Wolfram Language function, https://reference.wolfram.com/language/ref/ImageAspectRatio.html (updated 2021).

CMS

Wolfram Language. 2010. "ImageAspectRatio." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2021. https://reference.wolfram.com/language/ref/ImageAspectRatio.html.

APA

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

BibTeX

@misc{reference.wolfram_2023_imageaspectratio, author="Wolfram Research", title="{ImageAspectRatio}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/ImageAspectRatio.html}", note=[Accessed: 19-March-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_imageaspectratio, organization={Wolfram Research}, title={ImageAspectRatio}, year={2021}, url={https://reference.wolfram.com/language/ref/ImageAspectRatio.html}, note=[Accessed: 19-March-2024 ]}