资源简介
由于Matlab R2012a 之后的版本中系统isrgb函数被移除了,特编此函数,用于判断图像是否为RGB格式。
代码片段和文件信息
function y = isrgb(x)
%ISRGB Return true for RGB image.
% FLAG = ISRGB(A) returns 1 if A is an RGB truecolor image and
% 0 otherwise.
%
% ISRGB uses these criteria to determine if A is an RGB image:
%
% - If A is of class double all values must be in the range
% [01] and A must be M-by-N-by-3.
%
% - If A is of class uint8 or uint16 A must be M-by-N-by-3.
%
% Note that a four-dimensional array that contains multiple RGB
% images returns 0 not 1.
%
% Class Support
% -------------
% A can be of class uint8 uint16 or double. If A is of
% class logical it is considered not to be RGB.
%
% See also ISBW ISGRAY ISIND.
% Copyright 1993-2003 The MathWorks Inc.
% $Revisio
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1476 2015-06-15 21:04 isrgb.m
----------- --------- ---------- ----- ----
1476 1
- 上一篇:直观法航迹起始
- 下一篇:frangi_hessian 多尺度海森矩阵血管增强算法
评论
共有 条评论