ATG
ATG

Reputation: 752

Separating out Red component image from an RGB image in opencv 2.3

I want to get Red,Blue and Green component image from an RGB image in opencv 2.3.I am using vc++ 2010.

Can anybody tell how to do this?

Upvotes: 0

Views: 526

Answers (1)

Sam
Sam

Reputation: 20058

use the split() function.

For the reverse operation, use merge();

Upvotes: 1

Related Questions