LibraryLink`
LibraryLink`

MImage_getFlattenedLength (C Function)

gets the total number of data elements in an MImage.

Details

  • Used in C/C++ code in a library function called from the Wolfram Language.
  • This function returns the total number of data elements in image that is equal to slices×height×width×channels.

Examples

Basic Examples  (1)

This gets the total number of elements of an MImage:

MImage I0;
mint len;
...
len = libData->MImage_getFlattenedLength(I0);