Deep-Learning icon indicating copy to clipboard operation
Deep-Learning copied to clipboard

Use Grayscale Images Instead of RGB

Open RoboEvangelist opened this issue 7 years ago • 1 comments

Priya,

Excellent work. How could I feed grayscale images instead of using RGB? My cameras do not produce RBG images, so I shall not train with RGB images. I thought maybe you have a tip on how to change the neural network to use one channel images instead.

RoboEvangelist avatar Feb 19 '18 20:02 RoboEvangelist

You can use concatenation function to convert your one channel images to 3 channel. For example, if IG is your gray-scale image. In Matlab, you can do I=cat(3,IG,IG,IG).

Manugoyal123 avatar May 21 '18 02:05 Manugoyal123