arithmetic function
dip_Error dip_Div ( in1, in2, out )
binary, integer, float, complex
This function computes out = in1 / in2 on a pixel by pixel basis. If a pixel in in2 has the value of zero, the corresponding pixel in out will be set to zero. The data types of the in1 and in2 image may be of different types. See Information about dyadic operations for more information about what the type of the output will be.
Data type | Name | Description |
dip_Image | in1 | First input |
dip_Image | in2 | Second input |
dip_Image | out | Output |
Add, AddFloat, AddComplex, Sub, SubFloat, SubComplex, Mul, MulFloat, MulComplex, DivFloat, DivComplex