Unverified Commit 47fc889d authored by JamesNewton's avatar JamesNewton Committed by GitHub

Update js_image_arithmetics.markdown

parent 3c086fb2
...@@ -27,7 +27,7 @@ src1.delete(); src2.delete(); dst.delete(); mask.delete(); ...@@ -27,7 +27,7 @@ src1.delete(); src2.delete(); dst.delete(); mask.delete();
Image Subtraction Image Subtraction
-------------- --------------
You can subtract two images by OpenCV function, cv.subtract(). res = img1 - img2. Both images should be of same depth and type. You can subtract two images by OpenCV function, cv.subtract(). res = img1 - img2. Both images should be of same depth and type. Note that when used with RGBA images, the alpha channel is also subtracted.
For example, consider below sample: For example, consider below sample:
@code{.js} @code{.js}
...@@ -59,4 +59,4 @@ Try it ...@@ -59,4 +59,4 @@ Try it
<iframe src="../../js_image_arithmetics_bitwise.html" width="100%" <iframe src="../../js_image_arithmetics_bitwise.html" width="100%"
onload="this.style.height=this.contentDocument.body.scrollHeight +'px';"> onload="this.style.height=this.contentDocument.body.scrollHeight +'px';">
</iframe> </iframe>
\endhtmlonly \endhtmlonly
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment