Re:What is the concept underlying image processing?
by GrantS on Monday July 29, 2013 @12:08PM
(#6121970)
Yes, though there is confusion in the second paragraph of that reply about what it means for the image to be a "matrix". It's being a matrix has no bearing on converting it to grayscale or sepia. It may as well be an unordered bag of pixels as far as those operations are concerned. I think most beginners would come away with the wrong impression that linear algebra or fourier transforms were important for these basic operations when one or two for loops is quite enough. When I teach this material, that's where I begin and it is very effective.
Also they use the term contrast incorrectly. They're describing a low pass filter (blur) in the example but refer to contrast -- that post would lead beginners very astray.
Now, when you want to produce any effect, essentially you need to do some operation on this matrix. For example, if you want to remove the high contrast (sudden change of color from white to black), then you need to remove the high frequency components from your matrix. Taking a Fourier transform and removing the high frequency components and taking back the inverse transform can do the trick for you. I'm not sure about Sepia effect in particular, but all I want to convey here is doing some operation on Matrix does the job. Hope it helps."