imhist
douglas brenner wrote on Nov 03, 2006
Can I output the result of imhist to a variable? I would like to make histograms of several images and put the results into an array. Can I do this without outputting the histogram to a file and then reading the file into an array?
Thanks.
Thanks.
Mike Fitzpatrick wrote on Nov 03, 2006
Scan-from-pipe to an array variable isn't really supported so unless you run IMHIST with a single bin, the answer is no. You could possibly convert all the values to a single string by removing the newlines from the output, but you'd then be limited by the length of a string variable (1024 char) in how many bins you could use, output to a file is the most general.
-Mike
-Mike
douglas brenner wrote on Nov 03, 2006
Thanks. I'll sent the output of imhist to a file and then run rtextimage.
Last post on Nov 03, 2006