Question

I want to change the values in histogram matrix of an image and then want to have the new image with changed histogram, so I have changed the values in histogram matrix but I am not able to show the image in matlab, can anyone help me by telling how to have the new image?

Était-ce utile?

La solution

Changing the histogram itself doesn't affect the image matrix from which you calculated it directly.

However, as Luis has suggested in the comments, you can use histeq. You need to give it an additional input - the histogram you want the output image to match (here, I is your original image, and hgram is your modified histogram matrix):

J = histeq(I,hgram);
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top