4 ms·
The first reply in that post tells that - "Essentially every image is nothing but a matrix of numbers, right? Numbers in the matrix can denote several things. F
by ridersofnorth 13y ago
The first reply in that post tells that - "Essentially every image is nothing but a matrix of numbers, right? Numbers in the matrix can denote several things. For B/W image, these can be grey scale numbers from 1 to 255 (1 being the White and 255 being the Black). For colored images, each entry in the matrix can be a vector of (Red, Blue, Green) scales, since every color can be represented by these three basic colors.
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."
- GrantS 13y agoYes, 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.