title: how to convert alpha channel of the image to white color using gocv?
body: <p>How do i convert alpha channel of the image to white color using gocv? Sorry, I would'nt find the documentation.</p>
  <pre class="lang-golang prettyprint-override"><code>package main
  
  import (
      &quot;fmt&quot;
      &quot;os&quot;
  
      &quot;gocv.io/x/gocv&quot;
  )
  
  func main() {
      inputs := &quot;test.png&quot;
      img := gocv.IMRead(inputs, gocv.IMReadUnchanged)
      defer img.Close()
      if img.Empty() {
          fmt.Printf(&quot;cannot read image %s\n&quot;, inputs)
          os.Exit(1)
      }
      // how to convert alpha channel of the image to white color
      gocv.Split(img)
  }
  
  </code></pre>