Re-order RGB in picture
Problem:
Read any color image in your program.
Reorder the R, G, B colors.
Solution:
The original images

The edited images (R and B switched)

The edited images (BRG -> RGB)

Here is the code…
main.cpp
ppmb_io.h
ppmb_io.cpp