machinevisiontoolbox.Image.npixels
- property Image.npixels
Number of pixels in image plane
- Returns:
Number of pixels in image plane: width x height
- Return type:
int
- Note:
Number of planes is not considered.
Example:
>>> from machinevisiontoolbox import Image >>> img = Image.Read('flowers1.png') >>> img.npixels 272640 >>> img.width * img.height 272640
- Seealso: