I want to extract overlapping patches from RGB images. The patches should not be randomly extracted. please share some logic or piece of code in MATLAB/Python. I tried it in MAT