필터 지우기
필터 지우기

Obtaining subimages with only the x axis values

조회 수: 1 (최근 30일)
shru s
shru s 2017년 6월 6일
댓글: shru s 2017년 6월 12일
I have the following graph
in between the vertical lines is the part of the image i wish to crop and save. Could anyone suggest how I can do this? Thank you

채택된 답변

Walter Roberson
Walter Roberson 2017년 6월 6일
section_widths = diff( [0, list_of_x_values, size(YourImage,2)] );
sections = mat2cell( YourImage, size(YourImage,1), section_widths, size(YourImage,3) );
Now sections will be a cell array of matrices each containing one block. You can extract some of them using {} indexing, and save as desired.

추가 답변 (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