Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Please try the following expression:

cv::Mat mask = cv::Mat(matrix != matrix);

where matrix is cv::Mat that contains NaN values.