MATLAB: Contrast equalization with imadjust

contrastequalizationimadjust()

I'm supposed to create a funcion with the following parameters: myEqualization(input_image, method, threshold) Where "method" is a number from 1 to 8 that represent one of these equalizations. The thing is that I don't understand well how can I manage to do this using imadjust. As fas as I understood from the documentation it correlates a range, to another range. Is that right? Could somebody give me some guidance? Thanks!

Best Answer

No, it doesn't do correlations. What is does is to linearly map one intensity region into another. So you could do the first row of your equalization plots because they are linear, but not any on the bottom row because they aren't linear. You could do the ones on the bottom row with intlut().