ImageDimensions

ImageDimensions[image]

gives the pixel dimensions of an Image or Image3D object image.

ImageDimensions[video]

gives the pixel dimensions of the first video track of the Video object video.

Details

Examples

open allclose all

Basic Examples  (3)

Width and height of an image:

Width and height of video frames:

Width, depth, and height of a 3D image:

Properties & Relations  (3)

ImageDimensions returns width and height:

Dimensions on image data returns rows and columns, and therefore reverses the result:

ImageDimensions returns width and height:

For multichannel images, Dimensions of image data also returns the number of channels:

ImageDimensions for a 3D image returns width, depth and height:

Dimensions on image data returns slices, rows and columns, and therefore reverses the result:

Possible Issues  (1)

Image dimensions are not affected by the displayed size:

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

Text

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

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