フィルターのクリア

how to segment image into 4 equivalent parts ?

1 回表示 (過去 30 日間)
marwa za
marwa za 2018 年 10 月 8 日
コメント済み: marwa za 2018 年 10 月 9 日
how can I segment an image (brain) into 4 parts or 2 parts like the following figure ?

採用された回答

Image Analyst
Image Analyst 2018 年 10 月 9 日
Try this:
[rows, columns, numberOfColors] = size(yourImage);
midRow = round(rows/2);
midCol = round(columns/2);
upperLeft = yourImage(1:midRow, 1:midCol, :);
lowerLeft = yourImage(midRow+1:end, 1:midCol, :);
upperRight = yourImage(1:midRow, midCol+1:end, :);
lowerLeft = yourImage(midRow+1:end, midCol+1:end, :);
figure;
subplot(2, 2, 1);
imshow(upperLeft);
subplot(2, 2, 2);
imshow(lowerLeft);
subplot(2, 2, 3);
imshow(upperRight);
subplot(2, 2, 4);
imshow(lowerLeft);
  1 件のコメント
marwa za
marwa za 2018 年 10 月 9 日
thanks

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by