How to make Neural Network Ignore the background?
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I'm running deep learning on rocks, the trey the rocks sit on needs to be ignored, so I paint it a different color (neon green) and used a color thresholder generator to remove the background.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/167080/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/167081/image.png)
The problem is the 'removed' section still shows up as pixels on the image. So even when I 'remove' the background, the image itself still has all that empty space. I want the neural network to completely ignore it and only see the rocks.
Please help, for a really thorough solution I'll send you some bitcoin :)
6 Commenti
Image Analyst
il 13 Set 2017
An image must remain rectangular so you can't really "remove" the pixels. You can color them a different color like blue or green or black, but they are still there if you want it to be a 2-D image, as opposed to just a 1-D list of color values. Please define exactly what "remove" means to you. Do you just mean "ignore"? Or do you think (incorrectly) that the "tray" pixels can somehow be thrown away so they do not even appear in the image at all?
Risposte (2)
Greg Heath
il 13 Set 2017
You don't need to remove the background.
Just consider it another class.
Hope this helps.
Thank you for formally accepting my answer
Greg
Helper
il 13 Set 2017
If you want to classify different types of rock, then you do not have to remove the background.
One of the powerful place of Neural Network is it could extract useful feature automatically (namely, remove the useless information automatically). Generally, the first several layers of Neural Network work as feature extractor, and the following layers work as a classifier.
1 Commento
Vedere anche
Categorie
Scopri di più su Image Data Workflows in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!