Combine  
Top  Previous  Next


Menu:   Processing > Arithmetic/Logic… > Arithmetic > Combine  
Script:   combIm  

Use this function to find the linear combination of two images on a pixel-by-pixel basis. The following formula is used for calculating the intensity of the target pixel:

combim

if a pixel's result goes beyond the intensity range of the given image type, it wraps around or saturates depending on the Mode selected.

If the input images differ in types, they will be automatically converted to the type that forces conformity between the images. If the images or selections are different sizes, one or both of them will be clipped to match the minimal horizontal and vertical dimension of the images or selected regions of interests. See Arithmetic/Logic
for more details.

If you choose this command, the following options will become available:

Input1
 
Displays the frame number of the first input image. If you want to perform the operation on another image, type or select the corresponding value.  

Input2
 
Displays the frame number of the second input image. If you want to perform the operation on another image, type or select the corresponding value.  
 
Output
 
Displays the number of the frame in which the output image will be created. Depending on the Preferences. ImageWarp will set it either to the first available value or to the Input frame number. Type or select another value if you want the output image to be created in a different frame.  
 
Preview
 
Select this check box to watch the Preview of the output image.  
 
Factor1
 
Lets you enter the coefficient by which pixel values of the first input image will be multiplied.  
 
Factor2
 
Lets you enter the coefficient by which pixel values of the first input image will be multiplied.  
 
Offset
 
Lets you enter the constant value which will be added to all the pixels of the output image.  
 
Mode
 
Lets you select the mode for the operation.  
 
Click Wrap to have the output pixel values which fall outside of the image's intensity range to wrap around the highest permitted value or zero level.  
Click Clip to have pixel values the output pixel values which fall outside of the image's intensity range clipped to the highest permitted value or zero level.  
Click Normalize to have pixel values in the output image to be linearly scaled to the full intensity range of the image.  
 
If the image is of the floating point or complex type, this option is disregarded.