Closed pakozm closed 11 years ago
I will change it. Thank you.
Would be interesting the computation of histograms from matrices instead of images? I'm thinking, as example, in plot purposes. You could produce a matrix of data, and compute the histogram, as it is done in matlab.
It would be easy to adapt the code to work with matrices. We can change the name to histograms and then add wrapper functions to work with images.
Ok, I like it, we could use Lua wrappers which transforms the matrix into a image. Some issues need to be taken into consideration:
I was thinking on the opposite. Have a general function for histograms to work with matrices, and then to add a wrapper which takes the image and extract the 2D matrix and dimensions and calls to the general matrix function. The horizontal and vertical histogram can be also wrappers of image, because they make sense in this context. In deed, we can let the image_histograms as a wrapper and then to have another package called histogram that works with matrices. Anyway, image_histogram shouldn't be in image_cleaning.
Finally it is better to create another Histogram package for more general data since ImageHistograms use Integral Image for efficient computation of the histograms.
Ths histogram per se is interesting, independently of the image cleaning methods.