Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Java - Mat subtract returns all black image

In OpenCV Java, When I perform Core.subtract(next.clone(), previous.clone(), result);, My result is an all black image. Both the next Mat and the previous Mat have been converted to grayscale and also thresholded prior to the subtract operation. Why is this happening?