Quantcast

Documentation Center

  • Trial Software
  • Product Updates

Process Multidimensional Color Video Signals

The Computer Vision System Toolbox™ software enables you to work with color images and video signals as multidimensional arrays. For example, the following model passes a color image from a source block to a sink block using a 384-by-512-by-3 array.

You can choose to process the image as a multidimensional array by setting the Image signal parameter to One multidimensional signal in the Image From File block dialog box.

The blocks that support multidimensional arrays meet at least one of the following criteria:

  • They have the Image signal parameter on their block mask.

  • They have a note in their block reference pages that says, "This block supports intensity and color images on its ports."

  • Their input and output ports are labeled "Image".

You can also choose to work with the individual color planes of images or video signals. For example, the following model passes a color image from a source block to a sink block using three separate color planes.

To process the individual color planes of an image or video signal, set the Image signal parameter to Separate color signals in both the Image From File and Video Viewer block dialog boxes.

    Note:   The ability to output separate color signals is a legacy option. It is recommend that you use multidimensional signals to represent color data.

If you are working with a block that only outputs multidimensional arrays, you can use the Selector block to separate the color planes. For an example of this process, see Measure an Angle Between Lines. If you are working with a block that only accepts multidimensional arrays, you can use the Matrix Concatenation block to create a multidimensional array. For an example of this process, see Find the Histogram of an Image.

Was this topic helpful?