Question about matplotlib.pyplot.imread

am kinda new in this subject soo i have to convert an image into matrices and then do matrix operations on that and the problem i face is that matplotlib.pyplot.imread gives one big rgb matrix and what i want is to split it into small matrices and do all matrix operations on that, so how can i actually do that, i need a help