Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!f8g2000yqn.googlegroups.com!not-for-mail
From: ImageAnalyst <imageanalyst@mailinator.com>
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)
Organization: http://groups.google.com
Lines: 10
Message-ID: <0548da7b-606e-47ee-967e-2d60641cf9f4@f8g2000yqn.googlegroups.com>
References: <hljmnq$933$1@fred.mathworks.com> <hljndp$ofq$1@fred.mathworks.com> 
	<hljnul$suf$1@fred.mathworks.com> <hljol5$ftp$1@fred.mathworks.com>
NNTP-Posting-Host: 192.44.136.113
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: posting.google.com 1266514904 23438 127.0.0.1 (18 Feb 2010 17:41:44 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 18 Feb 2010 17:41:44 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: f8g2000yqn.googlegroups.com; posting-host=192.44.136.113; 
	posting-account=0rLUzAkAAABojYSRC64DkTbtiSCX77HH
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: news.mathworks.com 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."