how to separate the image given below
이전 댓글 표시
답변 (2개)
Image Analyst
2015년 3월 12일
How about
upperLeft = grayImage(1:rows/2, 1:columns/2);
and so on?
댓글 수: 4
tina jain
2015년 3월 12일
Image Analyst
2015년 3월 12일
편집: Image Analyst
2015년 3월 12일
tina, what did you call your image variable? grayImage was just an example - you were supposed to replace it with actual variables.
[rows, columns, numberOfColorChannels] = size(whateverYourImageIsCalled);
r1 = int32(rows/2);
c1 = int32(columns/2);
r2 = r1+1;
c2 = c1+1;
upperLeft = whateverYourImageIsCalled(1:r1, 1:c1);
upperRight = whateverYourImageIsCalled(1:r1, c2:end);
lowerLeft = whateverYourImageIsCalled(r2:end, 1:c1);
lowerRight = whateverYourImageIsCalled(r2:end, c2:end);
tina jain
2015년 3월 12일
tina jain
2015년 3월 12일
카테고리
도움말 센터 및 File Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
