Documentation Center

  • Trial Software
  • Product Updates

isind

True for indexed image

Syntax

flag = isind(A)

       isind has been removed.

Description

flag = isind(A) returns 1 if A is an indexed image and 0 otherwise.

isind uses these criteria to determine if A is an indexed image:

  • If A is of class double, all values in A must be integers greater than or equal to 1, and the number of dimensions of A must be 2.

  • If A is of class uint8 or uint16, the number of dimensions of A must be 2.

    Note   A four-dimensional array that contains multiple indexed images returns 0, not 1.

Class Support

A can be of class logical, uint8, uint16, or double.

See Also

| |

Was this topic helpful?