How to prevent conv2d from changing image size
7 ビュー (過去 30 日間)
古いコメントを表示
I have an image of size 330x363 uint8. I am convoluting it with 11x11 filter using conv2. The resulting image gets padded with zeros from top (6 pixels), bottom (4 pixels), left (6 pixels), right (4 pixels). Is there a way to prevent this padding from happening? Is it a good practice to crop the resulting image after the convolution?
0 件のコメント
採用された回答
Walter Roberson
2019 年 4 月 22 日
編集済み: Walter Roberson
2019 年 4 月 22 日
conv2(A, B, 'same') or conv2(A, B, 'valid')
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!