MATLAB: Spilit an image into two image

image

Hello
I have imageA, right now I want to have two image (Image B and Image C) from Image A.
so that odd rows of Image A goes to Image B , and even rows of image A goes to Image C.
thanks for your answers

Best Answer

This is very simple matrix indexing:
ImageB = ImageA(1:2:end, :, :);
ImageC = ImageA(2:2:end, :, :);
Related Question