LibraryLink`
LibraryLink`

MImage_getRank (C Function)

gets the rank of an MImage.

Details

  • Used in C/C++ code in a library function called from the Wolfram Language.
  • MImage_getRank returns 2 for 2D, and 3 for 3D images.

Examples

Basic Examples  (1)

This gets the rank of an MImage:

MImage I0;
mint rank;
...
rank = libData->MImage_getRank(I0);