Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Access Image pixels' value OpenCV, C++

Hello all,

I am trying to access color image pixels' values an somehow process them. Here is what I am trying to do:

  1. I have two color images I1 & I2 (same size images).
  2. I would like to compare all their pixels: compare I1(i,j) with I2(i,j).
  3. if I1(i,j) > I2(i,j) , copy I1(i,j) to a new image I3(i,j)
  4. else copy I2(i,j) to I3(i,j)
  5. at the end return the color image I3

I am using opencv3.1 and visual studio 2015.

Thanks in advance.