Accessing pixel values

In order to access each individual element of a matrix, you just need to specify its row and column numbers. The corresponding element will be returned, which can be a single numerical value or a vector of values in the case of a multichannel image.