0

I have 2 grayscale images, A and B. I'm using imhistmatch for these images. Assume that the image we obtain after imhistmatch is C and A is our reference.

I firstly wonder whether imhistmatch function is doing a linear operation or not. How can I do reverse operation which convert C image to B image back?

EBH
  • 10,350
  • 3
  • 34
  • 59
toygan kılıç
  • 422
  • 4
  • 16
  • 1
    In general, no. Imagine your `B` image contains values `50, 51, 52` and these are all transformed to `63` in `C`. How do you transform `63` back into the original values? – beaker Oct 27 '16 at 18:29
  • Ok, then is there any way to transform different contrasts but have structurally same images with a reversable operation? – toygan kılıç Oct 27 '16 at 19:36
  • `imhistmatch` is not a linear operation so it is not possible to reverse the effects that it does on an image. – rayryeng Dec 07 '16 at 20:38
  • @rayryeng I understand actually that point from your answer http://stackoverflow.com/questions/26763974/histogram-matching-of-two-images-without-using-histeq. However what I wonder was to find an operation which is linear. – toygan kılıç Dec 08 '16 at 02:06

0 Answers0