cv.jit.label mismatch type

Apr 23, 2012 at 8:03pm

cv.jit.label mismatch type

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?

#63163
Apr 23, 2012 at 8:04pm

ah: the patch.

– Pasted Max Patch, click to expand. –
#227904
Apr 23, 2012 at 8:24pm

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

– Pasted Max Patch, click to expand. –
Attachments:
  1. bust02.jxf.jit
#227905
Apr 23, 2012 at 8:48pm

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. –
#227906

You must be logged in to reply to this topic.