필터 지우기
필터 지우기

Dividing large area into small ones

조회 수: 7 (최근 30일)
aya
aya 2014년 9월 15일
답변: Image Analyst 2014년 9월 15일
Hello everyone I have an X by Y geographical area X=[0 400], Y=[0 300] what I want to do is dividing this area into sub areas let's say 8 equal areas but in mind that I want the code to be applied for any values of X and Y and sub areas thank you in advance

답변 (1개)

Image Analyst
Image Analyst 2014년 9월 15일
If your "area" is actually a 2D matrix, you can use mat2cell() or just use regular indexing. See the FAQ: http://matlab.wikia.com/wiki/FAQ#How_do_I_split_an_image_into_non-overlapping_blocks.3F for example code. Otherwise, why not just take X/8 and Y/8?

카테고리

Help CenterFile Exchange에서 Graphics Object Programming에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by