开发工具:
文件大小: 4mb
下载次数: 0
上传时间: 2009-04-14
详细说明: 主要介绍图像的复原技术 以下是其中的一小部分代码 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 i s 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. % Verify the correct number of inputs. error(nargchk(2, 4, nargin)) % Store the class of the input for use later. classin = class(f); intrans ...展开收缩
(系统自动生成,下载前可以参看下载内容)
下载文件列表
相关说明
- 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
- 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。
- 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
- 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
- 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
- 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.