Home > freetb4matlab > image > isrgb.m

isrgb

PURPOSE ^

% Returns true if parameter is a RGB image.

SYNOPSIS ^

function flag = isrgb(A)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {@var{flag} = } isrgb (@var{A})
% Returns true if parameter is a RGB image.
%
% @code{flag=isrgb(A)} returns 1 if @var{A} is a RGB image and 0 if
% not.
%
% To the decide @code{isrgb} uses the follow algorithm:
% @itemize @bullet
% @item
% If @var{A} is of class double then it checks if all values are
% between 0 and 1, and if size is m-by-n-by-3.
% @item
% If @var{A} is of class uint16, uint8 or logical then it checks is m-by-n-by-3.
% @end itemize
%
% @strong{Compatibility notes:}
%
% Information needed on whether MATLAB accepts logical arrays as RGB
% images (now this functions accepts them if they are m-by-n-by-3 arrays.
%
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sat 16-May-2009 00:04:49 by m2html © 2003