Size: 1406
Comment:
|
← Revision 13 as of 2009-03-06 17:36:06 ⇥
Size: 1452
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
The following example shows various ways of adding and multiplying images. The given example uses 3D images but the functionality generalizes for 2D images. | <<TableOfContents>> The following example shows various ways of adding, subtracting, multiplying and dividing images. The given example uses 2D images but the functionality generalizes for 3D images. |
Contents
The following example shows various ways of adding, subtracting, multiplying and dividing images. The given example uses 2D images but the functionality generalizes for 3D images.
Adding and multiplying images
First I make different two example images that have the same dimensions
or try a = test_image_3d(2), a = test_image(0) etc - see the test image gallery.
Add/multiply/subtract/divide images and store the result in a new image
Add/multiply B and A, store result in A