training a CNN with colors

조회 수: 18 (최근 30일)
Aisha Al Abri
Aisha Al Abri 2020년 12월 7일
답변: Srivardhan Gadila 2020년 12월 17일
is it possible to train a neural network with single colored images ? ( blue, green, red) ? would it actually learn features?

답변 (1개)

Srivardhan Gadila
Srivardhan Gadila 2020년 12월 17일
By single colored images I'm assuming that you are referring to single channel (red or green or blue) of RGB (Truecolor) Images. In that case, Yes you can try training your network with single channel.
As per my knowledge there would be two ways of doing so (assume RGB image of size m by n by 3):
  1. Passing only one channel and removing the other one in the preprocessing. Doing this way it would be more or less similiar to that of grayscale images as we have only m by n matrix.
  2. Making elements of other two channels zero or 255 (in case of uint8 and 1 in case of double) or some other constant value.
After trying out the above, you can make use of activations to check the features your network has learned. You can also refer to Visualize Activations of a Convolutional Neural Network & Deep Learning Tuning and Visualization.

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by