How can I automatically crop all images?
1 回表示 (過去 30 日間)
古いコメントを表示
Parham Babakhani Dehkordi
2016 年 5 月 3 日
コメント済み: Walter Roberson
2016 年 5 月 9 日
Hello, I have 1080 images in one folder. All the images are the same in terms of pixel location. so, I want to automatically crop all 1080 in one code. for my first image I know that It must be cropped as
I=imcrop(I,[0 215 2500 255]);
Thus I know a rectangular with xmin,ymin,weidth, and height. I do not know how I can apply to all 1080 images (frames) this condition.any help would be appreciated.
0 件のコメント
採用された回答
その他の回答 (1 件)
Parham Babakhani Dehkordi
2016 年 5 月 9 日
1 件のコメント
Walter Roberson
2016 年 5 月 9 日
You can use mean() to get the per-row average. If you only need it for some columns you can extract them
mean(YourImage(:,[1 2 250])
参考
カテゴリ
Help Center および File Exchange で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!