Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

isind

True for indexed image

Syntax

flag = isind(A)

    Note:   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

| |

Introduced before R2006a

Was this topic helpful?