This small piece of code is intended to help researchers, especially in field of image processing, to easily calculate two dimensional histogram of a given image.
Why do you think that https://github.com/Mamdasn/im2dhisteq is a good alternative to im2dhist