Black border around image
7 ビュー (過去 30 日間)
古いコメントを表示
Hello, i'm working in Convolutional Neural Network project right now. The training data i prepared is slightly different when i input it on Matlab. It has black border around it, but it shouldn't be there because it can affect the accuracy of my network.
This is the original image
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/163756/image.png)
And this is after being input
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/163757/image.jpeg)
is this affect my network's accuracy? and if it is how can i get rid of it?
0 件のコメント
採用された回答
Javier Pinzón
2017 年 5 月 18 日
Hello Mellysa
Sometimes, when an img is in PNG format, it have some properties that matlab change, such as transparencies. I recommend you to change it to .JPG format, and perhaps re-colour your backgound to avoid problems when reading the image.
About accuracy, if black-borders are touching your kanjis, as is happening in the first image, the CNN may contemplate it as part of your symbol. but, as i can see, every single image have exact the same black-border, so, i think the network may "erase" this border when using ReLU layer. Also, you can train your network to test if borders affect, and perhaps check the activations.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Image Data Workflows についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!