I have a question, please:
I have > 2000 tif-files that contain only black and white pixels (1bit). 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?
Thanks, mut.
program that gives number of black pixels in a .tif file
Moderators: Dorian (MJT support), JRL
Perl Script to find number of black pixels
Hello,
Here is a Perl script with very slight modification will give you what you want. Remember, if the page is skewed with a black boarder, it will also be counted.
http://search.cpan.org/src/GREGOR/Image ... ty/TIFF.pm
Cheers,
Here is a Perl script with very slight modification will give you what you want. Remember, if the page is skewed with a black boarder, it will also be counted.
http://search.cpan.org/src/GREGOR/Image ... ty/TIFF.pm
Cheers,