From: ImageAnalyst <>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to determine specific image is empty in a specific folder
Date: Thu, 18 Feb 2010 09:41:44 -0800 (PST)
Lines: 10
Message-ID: <>
References: <hljmnq$933$> <hljndp$ofq$> 
	<hljnul$suf$> <hljol5$ftp$>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: 1266514904 23438 (18 Feb 2010 17:41:44 GMT)
NNTP-Posting-Date: Thu, 18 Feb 2010 17:41:44 +0000 (UTC)
Injection-Info:; posting-host=; 
User-Agent: G2/1.0
X-HTTP-Via: 1.1 bdci2px (NetCache NetApp/6.0.7)
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; 
	CyberSafe-IWA-Enable; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 
	3.5.30729; MS-RTC LM 8),gzip(gfe),gzip(gfe)
Xref: comp.soft-sys.matlab:609371

Allright, let's assume that you now have a valid filename, either by
specifying it exactly or by getting it from a list of a bunch of file
s that dir() returns.  Now...what do you mean by the "image is
empty"?  What exactly does that mean?  The filename exists if you got
it from dir, and of course you can easily check that the file exists
with the exist(filename, 'file') command, and so you should be able to
read it in with imread().  Now, what is your definition of empty?
Does that mean a completely uniform image?  Because I don't think
imread will return an empty object - it will either return the image
or throw an exception.  So please define "image is empty."