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
- ImageDimensions gives the result in the following form:
-
{w,h} width and height of an Image or frames of a Video object {w,d,h} width, depth, and height of an Image3D object - Results from ImageDimensions are not affected by settings for Interleaving or ImageSize in Image.
Examples
open allclose allBasic Examples (3)
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:
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