Get histograms multiple single images.

Hi,

I have hundreds of dicom images which I am looking to get their individual histograms and getting all the results (for every image) in a single file. Is it possible?

Thaks for your help.