| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 3367 人关注过本帖
标题:[求助]指点,如何把这幅图导入matlabb
只看楼主 加入收藏
wangjunying
Rank: 2
等 级:新手上路
威 望:3
帖 子:8
专家分:0
注 册:2006-4-17
收藏
得分:0 

函数histeq好像是只可完成对灰度图像和索引图像的直方图的均衡化,对于灰度图像,它的调用格式如下:J=histeq(I,n)其中,n表示输出图像的灰度级数目,是一个可选的参数,缺省值为64。对于牵引图像,其调用格式如下:newmap=histeq(X,map)其中newmap将是输出图像的调色板。
BMP格式的图像应该不属于以上两种图像吧,个人意见,仅供参考!

2006-04-21 14:39
wangjunying
Rank: 2
等 级:新手上路
威 望:3
帖 子:8
专家分:0
注 册:2006-4-17
收藏
得分:0 
不能解压缩,要将文件名改一下,变成.,part1.rar的形式,试一下
2006-04-21 14:43
nuoya1129
Rank: 1
等 级:新手上路
帖 子:57
专家分:0
注 册:2006-4-9
收藏
得分:0 

谢谢啊,具体可怎么改,又是句号,又是逗号的,指点一下!!

2006-04-21 20:30
Genial
Rank: 3Rank: 3
等 级:新手上路
威 望:6
帖 子:175
专家分:0
注 册:2006-3-31
收藏
得分:0 
以下是引用wangjunying在2006-4-21 14:07:00的发言:

nargin是什么意思?有什么作用呢?
请朋友们赐教!

nargin, nargout Examples See Also

Number of function arguments

Syntax

    n = nargin
    n = nargin('fun')
    n = nargout
    n = nargout('fun')
    

Description

In the body of a function M-file, nargin and nargout indicate how many input or output arguments, respectively, a user has supplied. Outside the body of a function M-file, nargin and nargout indicate the number of input or output arguments, respectively, for a given function. The number of arguments is negative if the function has a variable number of arguments.

nargin returns the number of input arguments specified for a function.

nargin('fun') returns the number of declared inputs for the M-file function fun or -1 if the function has a variable of input arguments.

nargout returns the number of output arguments specified for a function.

nargout('fun') returns the number of declared outputs for the M-file function fun.

Examples

This example shows portions of the code for a function called myplot, which accepts an optional number of input and output arguments:

    function [x0,y0] = myplot(fname,lims,npts,angl,subdiv)
    % MYPLOT  Plot a function.
    % MYPLOT(fname,lims,npts,angl,subdiv)
    %     The first two input arguments are
    %     required; the other three have default values.
     ...
    if nargin < 5, subdiv = 20; end
    if nargin < 4, angl = 10; end
    if nargin < 3, npts = 25; end
     ...
    if nargout == 0
         plot(x,y)
    else
         x0 = x;
         y0 = y;
    end
    

See Also

inputname, nargchk

[此贴子已经被作者于2006-4-21 21:53:12编辑过]

2006-04-21 21:52
快速回复:[求助]指点,如何把这幅图导入matlabb
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.018051 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved