The function of cv2.min
<p>I'm new to computer vision and OpenCV, so please mind the immature language. Can someone explain me what's the function of cv2.min?</p>

<p>I have this code that coverts from BGR to RGV (red, green ,value) from OpenCV book:</p>

<pre><code>   b, g, r = cv2.split(src)
   cv2.min(b, g, b)
   cv2.min(b, r, b)
   cv2.merge((b, g, r), dst)
</code></pre>

<p>where <strong><em>src</em></strong> and <strong><em>dst</em></strong> are source and destination vectors for the image. </p>

<p>My specific questions are: </p>

<p>What is cv2.min doing to <strong><em>b</em></strong> in both the iterations? How are values being assigned to <strong><em>b</em></strong> since it's being evaluated two times for both <strong><em>r</em></strong> and <strong><em>g</em></strong> ?</p>

<p>Please let me know what's happening in this code. </p>