Adapting matrix's dim value into another matrix's?

Mar 21, 2012 at 6:23am

Adapting matrix's dim value into another matrix's?

Hello.

The question sounds ambiguous,
I am trying to make a pixel image on a matrix from using blob’s x,y coordinates (cv.jit.centroid) of 640×480 camera input. at the same time, the dim value is being set for blob’s mass size. so the dim value is constantly changing, therefore, the center of pixel image is not same as blob’s x,y coordinates on 640×480 input.
I want this matrix’s x,y coordinates to stick on output matrix’s.
for example, although the matrix’s dim value (10) is lower than output matrix’s (640), I want this matrix visually matches to the output matrix’s dim (640). So the blob’s x,y coordinate looks visually accurate on the output matrix (640) even with a low pixel image from low dim (10).

Please comment your opinion.
thanks

#62512
Mar 22, 2012 at 6:54pm

It’s difficult to tell exactly what you are trying to accomplish based on your question. I think an example patch would help a great deal.

#225803

You must be logged in to reply to this topic.