isgray
Returns true if the given image, x, is grayscale.
Syntax
R = isgray(x)
Inputs
- x
- Name of the image file, 2D or ND non-sparse matrix.
Outputs
- R
- Returns true if x is grayscale and false otherwise.
Examples
R = isgray('test.bmp')
R = 1
Discover new features and enhancements.
New to Activate? Learn the basics here.
Start using Activate with our interactive tutorials.
Learn about the components in Activate models.
Learn about modeling physical components.
Learn about modeling hydraulic systems with the Hydraulics (By Fluidon) library.
Learn about modeling electrical and electronic systems with Modelica and Spice.
Learn about modeling multibody dynamic systems.
Learn about modeling electromagnetic systems.
Learn how to set up, run, and troubleshoot simulations.
Discover options to review, display, and export results.
Learn about block libraries for building dynamic system models.
Learn about generating code from an Activate model.
Explore the Extended Definitions, OML Guides, Block Library, API Guide and Glossary.
PDF file with in-depth information on key topics in the User's Guide.
OpenMatrix is a mathematical scripting language.
The Reference Guide contains documentation for all functions supported in the OpenMatrix language.
Utility function for images which adds a matrix or a constant to a given matrix, x.
Display a matrix as an image, based on the current color map.
Display a matrix as an image with scaled colors.
Gets information about an image from its handle using functions defined in the omlimgtoolbox.
Gets information from the image, without reading pixel data, using functions defined in the omlimgtoolbox.
Reads an image with the pixel data stored in a matrix R, with functions defined in the omlimgtoolbox.
Displays an image file in a figure.
Utility function for images which subtracts a matrix or a constant from a given matrix, x.
Writes an image, whose pixel data comes from a matrix, m, with functions defined in the omlimgtoolbox.
Returns true if the given image, x, has only black and white colors.
Returns true if the given image, x, is grayscale.
Describes all of the blocks in the installed Activate library.
Provides information about developing and simulating models through the Activate Application Program Interface.
Key terms associated with the software.
You've got questions? We've got answers!
Define shortcuts to common operations.
Explore the Extended Definitions, OML Guides, Block Library, API Guide and Glossary.
The Reference Guide contains documentation for all functions supported in the OpenMatrix language.
Returns true if the given image, x, is grayscale.
Returns true if the given image, x, is grayscale.
R = isgray(x)
R = isgray('test.bmp')
R = 1
(c) Altair Engineering, Inc. All rights reserved.