First time here? Check out the FAQ!
answered Nov 13 '12
Looks to me that the answer lies in histogram matching. You can create the histogram and modify it as per your specs. Then you can apply it to get the desired range. I can help you formulate the code.