elliotwoods / VVVV.Packs.Image

VVVV addonpack for plugins dealing with CVImageLink
36 stars 31 forks source link

Edit SolvePnP to make it look more like CalibrateCamera, with wrapper patch, based on CalibrateProjector.Add new IntrinsicsJoin node #43

Closed bendenoz closed 10 years ago

bendenoz commented 10 years ago

Hi Elliot,

Just wanted to say thank you for all the work you're doing with OpenCV and vvvv, and to share that I have been using it successfully to calibrate / reposition fixed focal projectors for a projection mapping project.

Because of the fixed focal, I ended up using and making small changes to the SolvePnP node, to make it work more like CalibrateCamera, and also hacked an "IntrinsicsJoin" node to be able to user vvvv matrices as input to solvepnp (which turned out quite useful as the guess input for CalibrateCamera too).

Those changes are rebased in this commit, feel free to use any of it if it can help

/Benjamin

elliotwoods commented 10 years ago

seems clean. testing here is OK not sure about the VVVV Projection Transform input naming (i know it's also wrong elsewhere ;)) ideally it should just be Projection, with all transforms in the VVVV patch being VVVV-type transforms

Still need to consider this more

Thanks for the contribution. I've added a help patch also for SolvePnP which uses your new intrinsics join node.

bendenoz commented 10 years ago

Great, glad it could help :). Sure Projection makes more sense, did not put too much thought into this actually...