LibraryLink`
LibraryLink`

MImage_getDataType (C 函数)

gets the data type of an MImage.

更多信息

  • Used in C/C++ code in a library function called from the Wolfram Language.
  • Returns one of MImage_Type_Bit, MImage_Type_Byte, MImage_Type_Bit16, MImage_Type_Real32, or MImage_Type_Real.
  • If the input MImage is invalid, MImage_Type_Undef is returned.

范例

基本范例  (1)

This checks that this is a byte MImage:

MImage I0;
imagedata_t type;
...
type = libData->MImage_getDataType(I0);
if (type != MImage_Type_Byte) {
processError();
}