I have > 2000 tif-files that contain only black and white pixels (1-bit). I need a program or a script that tells me (automatically) the number of black pixels in each file. I do not want to open each file seperately to analyse the number of black pixels.
Does anybody knows a simpel solution for my problem?
... 2000 tif-files that contain only black and white pixels (1-bit). ...
I'm afraid I don't understand what you mean by (1-bit) -- are the images actually saved as monochome? If you're able, an example of what you have would help.
1 bit means either a pixel is black , or white, nothing else. Here's an article that will help. A program written in C language to count black and white pixels in BMP images.
Thanks for your answers. My problem is that the programs posted by ignite (and probably also the two others posted by bod) can only analyse one picture at a time and not several automatically.
I could send you a sample of my immages by mail, if you like, but I do not know your adresses. If you send me a mail, I will answer. My adress is "helmeiss (at) yahoo (dot) de"
probably not very simple, but I think the .NET platform can analyse pixels in BitMaps (and other image types)...so you could develop something that looped through every image file in a folder, then loop through each pixel in each image and increment a count if the pixel is black
...if you're a programmer with .NET dev tools that is!