Complement of an Image using loop
1 回表示 (過去 30 日間)
古いコメントを表示
how can I complement an Image by loop like this:
0 件のコメント
回答 (1 件)
darova
2019 年 11 月 8 日
Use this trick
for i = 1:m % rows
for j = 1: round(n/m*(m-i+1)) % columns
I(i,j) = original;
end
for j = round(n/m*(m-i+1)):n % columns
I(i,j) = modificated;
end
end
2 件のコメント
参考
カテゴリ
Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!