aiwiki
aiwiki copied to clipboard
OpenCV Core bitwisexxx
bitwise_xxx
按位与 bitwise_and
void cv::bitwise_and(InputArray src1,
InputArray src2,
OutputArray dst,
InputArray mask = noArray()
)
- mask:
- 可以是图像和图像,也可以是图像和标量
- 如果是多通道,每个通道单独处理
图像与图像 | $\texttt{dst} (I) = \texttt{src1} (I) \wedge \texttt{src2} (I) \quad \texttt{if mask} (I) \ne0$ |
---|---|
图像与标量 | $\texttt{dst} (I) = \texttt{src1} (I) \wedge \texttt{src2} \quad \texttt{if mask} (I) \ne0$ |