mp> and <samp>beta.png</samp>, use:</p>

<pre class="p-3 mb-2 text-body-secondary bg-body-tertiary cli"><samp>magick alpha.png beta.png -channel red -fx "(u.g+v.g)/2" gamma.png
</samp></pre>


<h4>Results</h4>

<p>The <a href="command-line-options.html#fx">-fx</a> operator evaluates the given expression for each channel (set by <a href="command-line-options.html#channel">-channel</a>) of each pixel in the first image (<samp>u</samp>) in the sequence. The computed values are temporarily stored in a copy (clo