Re: fastest way to identify empty image
Posted by
dscho on
URL: http://imagej.273.s1.nabble.com/fastest-way-to-identify-empty-image-tp5008197p5008208.html
Hi Lars,
On Fri, 13 Jun 2014, Lars Damgaard wrote:
> Occasionally, the system could not take all the z-images within the
> timelapse interval, and this results in a number of my images being
> empty/black.
>
> I would like to identify these in the folder and delete them using a macro.
You probably want to use the histMin and histMax values obtained by the
getHistogram(values, counts, nBins, histMin, histMax) function. A quick
test will show whether you have to duplicate the current slice before you
do that, or whether the function only operates on the current slice to
begin with.
Ciao,
Johannes
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html