intrans.m in imageprocessing.rar


Gonzales matlab version of the digital image processing books. Detailed and ther...Original Link
    Sponsored links

			
function g = intrans(f, varargin)
%INTRANS Performs intensity (gray-level) transformations.
%   G = INTRANS(F, 'neg') computes the negative of input image F.
% 
%   G = INTRANS(F, 'log', C, CLASS) computes C*log(1 + F) and
%   multiplies the result by (positive) constant C. If the last two
%   parameters are omitted, C defaults to 1. Because the log is used
%   frequently to display Fourier spectra, parameter CLASS offers the
%   option to specify the class of the output as 'uint8' or
%   'uint16'. If parameter CLASS is omitted, the output is of the 
%   same class as the input. 
% 
%   G = INTRANS(F, 'gamma', GAM) performs a gamma transformation on
%   the input image using parameter GAM (a required input).  
%
%   G = INTRANS(F, 'stretch', M, E) computes a contrast-stretching
%   transformation using the expression 1./(1 + (M./(F +
%   eps)).^E).  Parameter M must be in the range [0, 1].  The default
%   value for M is mean2(im2double(F)), and the default value for E
%   is 4.
%
%   For the 'neg', 'gamma', and 'stretch' transformations, double
%   input images whose maximum value is greater than 1 are scaled
%   first using MAT2GRAY.  Other images are converted to double first
%   using IM2DOUBLE.  For the 'log' transformation, double images are
%   transformed without being scaled; other images are converted to
%   double first using IM2DOUBLE.
%
%   The output is of the same class as the input, except if a
%   different class is specified for the 'log' option.

%   Copyright 2002-2004 R. C. Gonzalez, R. E. Woods, & S. L. Eddins
%   Digital Image Processing Using MATLAB, Prentice-Hall, 2004
%   $Revision			

			...
			...
			... to be continued.

  This is a preview. To get the complete source file, 
  please click here to download the whole source code package.

			
			


Project Files

    Sponsored links
NameSizeDate
 0_Read_Me_First.txt5.00 kB16-12-04 13:36
 adpmedian.m1.54 kB16-12-04 13:36
 average.m651.00 B16-12-04 13:36
 bayesgauss.m2.96 kB16-12-04 13:36
 bound2eight.m2.99 kB16-12-04 13:36
 bound2four.m2.42 kB16-12-04 13:36
 bound2im.m2.17 kB16-12-04 13:36
 boundaries.m5.64 kB16-12-04 13:36
 bsubsamp.m3.87 kB16-12-04 13:36
 changeclass.m592.00 B16-12-04 13:36
 colorgrad.m2.30 kB16-12-04 13:36
 colorseg.m2.37 kB16-12-04 13:36
 compare.m1.15 kB16-12-04 13:36
 connectpoly.m1.02 kB16-12-04 13:36
 Contents.m5.98 kB16-12-04 13:36
 conwaylaws.m799.00 B16-12-04 13:36
 covmatrix.m977.00 B16-12-04 13:36
 dftcorr.m687.00 B16-12-04 13:36
 dftfilt.m882.00 B16-12-04 13:36
 dftuv.m736.00 B16-12-04 13:36
 diameter.m6.47 kB16-12-04 13:36
 endpoints.m874.00 B16-12-04 13:36
 entropy.m1.00 kB16-12-04 13:36
 fchcode.m8.55 kB16-12-04 13:36
 frdescp.m1.42 kB16-12-04 13:36
 fwtcompare.m992.00 B16-12-04 13:36
 gmean.m447.00 B16-12-04 13:36
 gscale.m2.04 kB16-12-04 13:36
 histroi.m920.00 B16-12-04 13:36
 hough.m2.64 kB16-12-04 13:36
 houghlines.m2.82 kB16-12-04 13:36
 houghpeaks.m2.65 kB16-12-04 13:36
 houghpixels.m1.02 kB16-12-04 13:36
 hpfilter.m1.23 kB16-12-04 13:36
 hsi2rgb.m1.94 kB16-12-04 13:36
 huff2mat.m2.46 kB16-12-04 13:36
 huffman.m2.82 kB16-12-04 13:36
 ice.fig45.71 kB16-12-04 13:36
 ice.m26.30 kB16-12-04 13:36
 ice_stand_alone.m46.55 kB16-12-04 13:36
 DIPUM_toolbox_m-file_v1[1].1.3_part1.rar60.11 kB13-04-09 20:38
 ifrdescp.m1.38 kB16-12-04 13:36
 ifwtcompare.m1.12 kB16-12-04 13:36
 im2jpeg.m2.90 kB16-12-04 13:36
 im2jpeg2k.m3.97 kB16-12-04 13:36
 imnoise2.m4.20 kB16-12-04 13:36
 imnoise3.m2.12 kB16-12-04 13:36
 improd.m791.00 B16-12-04 13:36
 imratio.m1.30 kB16-12-04 13:36
 imstack2vectors.m1.83 kB16-12-04 13:36
 intline.m1.20 kB16-12-04 13:36
 intrans.m3.25 kB16-12-04 13:36
 invmoments.m3.24 kB16-12-04 13:36
 jpeg2im.m2.41 kB16-12-04 13:36
 jpeg2k2im.m1.90 kB16-12-04 13:36
 lpc2mat.m1.42 kB16-12-04 13:36
 lpfilter.m1.44 kB16-12-04 13:36
 mahalanobis.m1.97 kB16-12-04 13:36
 manualhist.m1.75 kB16-12-04 13:36
 mat2huff.m2.75 kB16-12-04 13:36
 mat2lpc.m1.28 kB16-12-04 13:36
 minperpoly.m7.15 kB16-12-04 13:36
 paddedsize.m1.29 kB16-12-04 13:36
 pixeldup.m950.00 B16-12-04 13:36
 polyangles.m6.14 kB16-12-04 13:36
 princomp.m2.88 kB16-12-04 13:36
 quantize.m1.33 kB16-12-04 13:36
 randvertex.m1.15 kB16-12-04 13:36
 Readme.m5.30 kB16-12-04 13:36
 regiongrow.m1.66 kB16-12-04 13:36
 rgb2hsi.m1.46 kB16-12-04 13:36
 rgbcube.m1.98 kB16-12-04 13:36
 signature.m4.45 kB16-12-04 13:36
 specxture.m2.57 kB16-12-04 13:36
 spfilt.m3.78 kB16-12-04 13:36
 splitmerge.m4.13 kB16-12-04 13:36
 statmoments.m1.72 kB16-12-04 13:36
 statxture.m1.55 kB16-12-04 13:36
 strsimilarity.m1.78 kB16-12-04 13:36
 subim.m713.00 B16-12-04 13:36
 twodsin.m1.04 kB16-12-04 13:36
 twomodegauss.m1.16 kB16-12-04 13:36
 unravel.dll7.00 kB16-12-04 13:36
 unravel.m967.00 B16-12-04 13:36
 unravel.mexaxp24.00 kB16-12-04 13:36
 unravel.mexglx18.97 kB16-12-04 13:36
 unravel.mexhpux12.00 kB16-12-04 13:36
 unravel.mexmac8.68 kB16-12-04 13:36
 unravel.mexrs62.71 kB16-12-04 13:36
 unravel.mexsg24.44 kB16-12-04 13:36
 unravel.mexsol8.54 kB16-12-04 13:36
 vistformfwd.m1.66 kB16-12-04 13:36
 wave2gray.m4.67 kB16-12-04 13:36
 waveback.m4.52 kB16-12-04 13:36
 wavecopy.m940.00 B16-12-04 13:36
 wavecut.m1.06 kB16-12-04 13:36
 wavefast.m4.14 kB16-12-04 13:36
 wavefilter.m4.77 kB16-12-04 13:36
 wavepaste.m1.04 kB16-12-04 13:36
 wavework.m3.45 kB16-12-04 13:36
 wavezero.m696.00 B16-12-04 13:36
 x2majoraxis.m3.59 kB16-12-04 13:36
 DIPUM_toolbox_m-file_v1[1].1.3_part2.rar85.71 kB13-04-09 20:39
 <DIPUM_toolbox_m-file_v1[1].1.3_part1>0.00 B02-07-09 16:26
 <DIPUM_toolbox_m-file_v1[1].1.3_part2>0.00 B02-07-09 16:26
 <冈萨雷斯(matlab)>0.00 B02-07-09 16:26
...

Related Items

    Sponsored links