This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Problem with IMGlib histogram

The function IMG_histogram_8 uses a variable of type short. They have a value from -32768  to 32768. But in the case of fog or darkness, a certain number of pixels of brightness can exceed these values. What can be done in this case? Which can be way to solve this problem?