/usr/share/doc/gdl-coyote/html/cggmascl.html is in gdl-coyote 2016.11.13-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 | <html>
<head>
<TITLE>coyote: CGGMASCL</TITLE>
<style>
dt {font-weight: bold;}
</style>
</head>
<body>
<H1><a href="index.html">coyote</a>: CGGMASCL</H1>
<ul>
<li><a href=Image_Processing.html>coyote/Image Processing</a></li>
<li><a href="/usr/share/gnudatalanguage/coyote/cggmascl.pro">[Source code]</a></li>
</ul>
<dl>
<dt>Description</dt>
<dd><pre>
This is a utility routine to perform basic gray-level pixel transformations of images.
I think of it as BYTSCL on steroids. It is similar to IMADJUST in _Digital Image
Processing with MATLAB_ by Gonzales, Wood, and Eddins. It performs a log scaling
of the image array.
</pre></dd>
</dl>
<dl>
<dt>Categories</dt>
<dd><pre>
Image Processing
</pre></dd>
</dl>
<dl>
<dt>Returns</dt>
<dd><pre>
A byte scaled image is returned.
</pre></dd>
</dl>
<dl>
<dt>Params</dt>
<dd><pre>
image: in, required
The image to be scaled. Written for 2D images, but arrays of any size are treated alike.
</pre></dd>
</dl>
<dl>
<dt>Keywords</dt>
<dd><pre>
gamma: in, optional, type=float, default=1.0
The exponent in a power-law transformation (image^gamma). A gamma value of 1 results in
a linear distribution of values between OMIN and OMAX. Gamma values less than 1 map
darker image values into a wider range of output values, and Gamma values greater than
1 maps lighter image values into a wider range of output values. The gamma value is
constrained to be greater than 1.0e-6.
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, in, optional, type=boolean, default=0
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.
</pre></dd>
</dl>
<dl>
<dt>Examples</dt>
<dd><pre>
cgLoadCT, 0 ; Gray-scale colors.
image = cgDemoData(11) ; Load image.
TVImage, cgGmaScl(image, Min=30, Max=100) ; Similar to BytScl.
TVImage, cgGmaScl(image, /Negative) ; Produce negative image.
power = Shift(ALog(Abs(FFT(image,-1))), 124, 124) ; Create power spectrum.
TVImage, cgGmaScl(power, Gamma=2.5) ; View power specturm with gamma correction.
TVImage, cgGmaScl(power, Gamma=2.5, /Negative) ; Reverse power spectrum.
</pre></dd>
</dl>
<dl>
<dt>Author</dt>
<dd><pre>
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
</pre></dd>
</dl>
<dl>
<dt>History</dt>
<dd><pre>
Change History::
Written by: David W. Fanning, 17 February 2006.
Fixed a problem with output scaling. 1 July 2009. DWF (with input from Bo Milvang-Jensen).
Now setting NAN keyword on all MIN and MAX functions. 2 Dec 2011. DWF.
Renamed cgGmaScl from GmaScl. 27 March 2015. DWF.
</pre></dd>
</dl>
<dl>
<dt>Copyright</dt>
<dd><pre>
Copyright (c) 2006-2015, Fanning Software Consulting, Inc.
</pre></dd>
</dl>
</body>
</html>
|