First time here? Check out the FAQ!
answered 2013-05-04 14:51:12 -0600
Try to use a new variable of the type Mat as result of your threshold call, looks like test (which is a clone of m) is not a binary image