I am working in opencv. right now I have a task to decompose images into only red channel. I can make it by using GIMP. It goes like this:
Colors -> Components -> Decompose (color model RGB)
This way I get 3 new grayscale images, one with green channel, one with red and one with blue channel. I only need grayscale image with red channel. Anyways, problem is I have few thousand pictures in my folder named "positives" to convert, so if I do it this way it would take so much time.
Is there any way to write a script and run it from terminal to convert images into red channel and save them all in folder at once?
I guess it doesn't even need to be a long script, it is probably a semi-simple command.
Please help and thanks in advance