how to separate the image given below

回答(2 个)

How about
upperLeft = grayImage(1:rows/2, 1:columns/2);
and so on?

4 个评论

Undefined function 'grayImage' for input arguments of type 'double'
this is the error
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);
ok i got it. Let me try this
its working. thanks a ton.

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Image Segmentation and Analysis 的更多信息

标签

提问:

2015-3-12

编辑:

2015-3-12

Community Treasure Hunt

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

Start Hunting!

Translated by