Code to compute runlength histograms of document images.