imshow_numeric


imshow_numeric, an Octave code which displays a numeric array as a grayscale image.

Image processing often works with images stored as 2D or 3D arrays of a special type, typically "uint8", that is, an unsigned 8 bit integer whose values are between 0 and 255.

Many image processing algorithms require numeric operations on real data, and return values with fractional parts, in arbitrary ranges that might include negative values.

Thus, if one wants to carry out simple numeric versions of image processing algorithms, one must repeatedly convert numeric data to image data to view it.

This function, instead, allows a user to display a numeric array by passing it directly as the argument to a function called imshow_numeric(), which makes a quick and simple conversion of the numeric data to a format of the appropriate type and range for display.

The current version of the program only handles grayscale data, that is, a 2D numeric array.

Usage:

imshow_numeric ( A )
where

Licensing:

The information on this web page is distributed under the MIT license.

Languages:

imshow_numeric is available in a MATLAB version and an Octave version.

Related Data and Programs:

imshow_numeric_test

image_components, an Octave code which seeks the connected "nonzero" or "nonblack" components of an image or integer vector, array or 3d block.

image_threshold, an Octave code which make a black and white version of a grayscale image by setting all pixels below or above a threshold value to black or white.

Reference:

Source Code:


Last revised on 04 February 2019.