Coyote Graphics Routines

Date: Fri Mar 27 12:14:20 2015

single page | use frames     summary     class     fields     routine details     file attributes

.\

cggaussscl.pro


top cgGaussScl

Image Processing

result = cgGaussScl(image [, SIGMA=float] [, MAX=MAX] [, MIN=MIN], NEGATIVE=NEGATIVE [, OMAX=byte] [, OMIN=byte])

This is a utility routine to perform a gaussian gray-level pixel transformation stretch on an image.

Return value

A byte scaled image is returned.

Parameters

image in required

The image to be scaled. Written for 2D images, but arrays of any size are treated alike.

Keywords

SIGMA in optional type=float default=1.0

The sigma value or width of the Gaussian function.

MAX in optional

Any value in the input image greater than this value is set to this value before scaling.

MIN in optional

Any value in the input image less than this value is set to this value before scaling.

NEGATIVE

If set, the "negative" of the result is returned.

OMAX in optional type=byte default=255

The output image is scaled between OMIN and OMAX.

OMIN in optional type=byte default=0

The output image is scaled between OMIN and OMAX.

Examples

Display a Gaussian scaled image:

cgLoadCT, 0 ; Gray-scale colors. image = cgDemoData(11) ; Load image. cgImage, cgGaussScl(image)

Author information

Author:

FANNING SOFTWARE CONSULTING:

David W. Fanning 1645 Sheely Drive Fort Collins, CO 80526 USA Phone: 970-221-0438 E-mail: david@idlcoyote.com Coyote's Guide to IDL Programming: http://www.idlcoyote.com

Copyright:

Copyright (c) 2007-2015, Fanning Software Consulting, Inc.

History:

Change History:

Written by: David W. Fanning, 5 September 2007. Now setting NAN keyword on all MIN and MAX functions. 2 Dec 2011. DWF. Renamed cgGaussScl from the retired GaussScl. 26 March 2015. DWF.

File attributes

Modification date: Thu Mar 26 17:05:32 2015
Lines: 141
Docformat: rst rst