2.80 FAQ-852 Can I subtract two images or two matrices?Subtract-One-Image-from-Another
Last Update: 3/5/2020
Yes, though if the images differ in size the operation is a bit more involved.
Importing Images to the Matrix
- Click the New Matrix button on the Standard toolbar.
- From Windows Explorer, CTRL + select your image files and drop them onto the matrix window.
- If the images are of the same dimensions, they will be imported as separate objects into the matrix window.
- If the images are of different dimensions, each will be imported into a separate sheet in the matrix window.
NOTE: You can also drop images onto Origin outside of any window. A new matrix window will be created.
Subtracting Images or Matrices in the Same Sheet
The following assumes your images are of the same size:
- If you want to send output to a new matrix object in the same sheet, you should first create an empty object by clicking image icon , then choosing Add.
- From the menu, choose Image: Arithmetic Transform: Simple Math: Open Dialog.
- Specify your input and output using the arrow buttons beside Input Image1, Input Image2 and Output Image, choosing your newly-created (empty) matrix object for your Output Image.
- Click the Math Function drop-down and specify the operation to perform (e.g. "Add", "img1 - img2", etc.).
- Choose channel, Z offsets and crop, as needed.
- Click OK.
Subtracting Images or Matrices in Different Sheets or Books
- Activate the matrixbook containing two or more sheets, then choose Image: Arithmetic Transform: Simple Math: Open Dialog.
- Click the arrow button next Input Image1 and Input Image2 and use the Image Browser (use the List Images drop-down list at the top to filter) and choose where to send the Output Image.
- Click the Math Function drop-down and specify the operation to perform (e.g. "Add", "img1 - img2", etc.).
- Choose channel, Z offsets and crop, as needed.
- Click OK.
Keywords:matrix, matrices, simple math, matrix object,
|