norIm
Top  Previous  Next

norIm ( integer Input1, integer Input2, integer Output )

Use this function to perform a bitwise logical "NOR" between pixels in two images. Those bits that have a "0" value in both operands will be assigned "1" in the result. Applied to binary images this function will extract only those pixels that belong to the background in both input images.

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.

Parameters
 
Input1  
 
An integer between 0 and 116 specifying the frame number of the first input image. A value of 0 represents the DMA memory buffer of the video device. Values in the range of 100-116 correspond to hidden frames.  
 
Input2  
 
An integer between 0 and 116 specifying the frame number of the second input image. A value of 0 represents the DMA memory buffer of the video device. Values in the range of 100-116 correspond to hidden frames.  
 
Output  
 
An integer between 1 and 116 specifying the output image frame number. Values in the range of 100-116 correspond to hidden frames.  
 
Error flags

ERR_OK  
 
The flag set if successful.  
 
ERR_FAILED  
 
The flag set if failed.  

Example

This set of statements performs the "NOR" operation on two sample images:  
 
setCurDir("samples")  
loadIm (1,"sample4.iwd")  
threshold(1,1,M_PRESET,0.,118.,TRUE,FALSE)  
loadIm (2,"sample7.iwd")  
norIm (1,2,3)  

Remark
 
Floating and complex images cannot be processed by this function.