spilit an image into two image

조회 수: 1 (최근 30일)
bkshn
bkshn 2015년 7월 2일
답변: Guillaume 2015년 7월 2일
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

채택된 답변

Guillaume
Guillaume 2015년 7월 2일
This is very simple matrix indexing:
ImageB = ImageA(1:2:end, :, :);
ImageC = ImageA(2:2:end, :, :);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by