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_2024_imageaspectratio, author="Wolfram Research", title="{ImageAspectRatio}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/ImageAspectRatio.html}", note=[Accessed: 24-November-2024 ]}

BibLaTeX

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