Re-order RGB in picture

by @im_a_muppet on May 28, 2007

Problem:

Read any color image in your program.
Reorder the R, G, B colors.

Solution:

The original images
original original

The edited images (R and B switched)
edited edited

The edited images (BRG -> RGB)
edited edited
Here is the code…
main.cpp
ppmb_io.h
ppmb_io.cpp

blog comments powered by Disqus
Tweet