資源簡介
由于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 多尺度海森矩陣血管增強算法
評論
共有 條評論