How to divide image into three equal parts?

3 ビュー (過去 30 日間)
Anyaya
Anyaya 2013 年 4 月 20 日
コメント済み: Varian Adisuryo 2016 年 8 月 4 日
How to split an image in three equal parts. This image is one Image which contains 3 images layered beneth each other I've tried everything to split them but I'm having difficulties, please help. the size of this image is 1024x396 and its unit8
  5 件のコメント
Anyaya
Anyaya 2013 年 4 月 21 日
編集済み: Anyaya 2013 年 4 月 21 日
,
Jurgen
Jurgen 2013 年 4 月 21 日
Then they are not "layered" they are stacked. Have you tried imcrop()?

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

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 4 月 20 日
編集済み: Azzi Abdelmalek 2013 年 4 月 20 日
[n,m]=size(im) % im is your image
id=fix(n/3)
im1=im(1:id,:);
im2=im(id+1:2*id,:);
im3=im(2*id+1:n,:);
  3 件のコメント
Image Analyst
Image Analyst 2013 年 4 月 21 日
Like he said, im is your image variable. In your code you might have read in an image with imread like this
im = imread(fullFileName);
What variable name are you using instead of im in your code?
Varian Adisuryo
Varian Adisuryo 2016 年 8 月 4 日
Thank you Mr. Azzi your answer help me a lot

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeModify Image Colors についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by