LibraryLink`
LibraryLink`

MImage_getSliceCount (C Function)

gets the number of slices of an MImage.

Details

  • Used in C/C++ code in a library function called from the Wolfram Language.
  • For a 2D images, 1 is returned.

Examples

Basic Examples  (1)

This gets the number of slices of an MImage:

MImage I0;
mint slices;
...
slices = libData->MImage_getSliceCount(I0);