Forums > MaxMSP

cv.jit.label mismatch type

Apr 23 2012 | 8:03 pm

I am trying to use Kinect depth data as the input to cv.jit.label, and I get a "mismatch type" error. In the helpfile for this object, it says that input can be any type of matrix. I have been able to get around the error message by using jit.coerce and changing it to type char and then jit.rgb2luma, but that introduces severe artefacts. Is there any way around this?

Apr 23 2012 | 8:04 pm

ah: the patch.

-- Pasted Max Patch, click to expand. --

Apr 23 2012 | 8:24 pm

And again ah: that mockup was flawed. here is the real thing. Read the file into the matrix.

-- Pasted Max Patch, click to expand. --

  1. bust02.jxf.jit
Apr 23 2012 | 8:48 pm

It turns out that an odd workaround is effective. I put an extra matrix between the input data and the cv.jit.label object. It works if the new matrix is type char; it does not if it is type float32.

I don’t know why.

Here is the working patch:

-- Pasted Max Patch, click to expand. --

Viewing 4 posts - 1 through 4 (of 4 total)

Forums > MaxMSP