How to divide images into square grid in matlab?

조회 수: 3 (최근 30일)
vina borkar
vina borkar 2013년 8월 16일
댓글: Image Analyst 2018년 6월 22일
Color images divide in sub parts individual but looking like single image to users. it will possible in matlab?
Basically the image is divided into parts called grids, and each grid will working individual, is this possible?
  댓글 수: 1
Amith Kamath
Amith Kamath 2013년 8월 19일
I'm sorry but I would re-phrase this question so that it is clearer for interested folk to try to answer. Could you please make the question clearer? It usually helps if you also show what you've tried until now.

댓글을 달려면 로그인하십시오.

채택된 답변

Image Analyst
Image Analyst 2013년 8월 19일

추가 답변 (1개)

Ahmet TAvli
Ahmet TAvli 2018년 4월 25일
The question is clear.
Assume, you have your image is 192 x 168 pixels.
You want to divide into 6 equal regions.
An example below:
I = imread('exampleImage.png');
R1 = I(1:64, 1:84);
R2 = I(1:64, 85:168);
R3 = I(65:128, 1:84);
R4 = I(65:128, 85:168);
R5 = I(129:192, 1:84);
R6 = I(129:192, 85:168);
  댓글 수: 2
drummer
drummer 2018년 6월 22일
Ahmet, how would the image divided into 6 equal regions be shown?
Image Analyst
Image Analyst 2018년 6월 22일
You would use imshow():
imshow(R1);

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by