Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ Microsoft Kinect , +
Hi,
 
I m trying to place an image on the colour frame of the Kinect live video. I m able to overlay the image using alpha blending mechanism.The IDE used is Visual Studio Professional 2010. The code is developed in C++.I m not using any MFCs in the code.
 
The image used is a bitmap image of dimension 128*128.
 
The Kinect has a resolution of 640*480.
 
The Kinect has a render target whose size is taken as 640*480 so that it stretches for the complete window. So when I try to overlay the image it appears 5 times because of this stretching.
 
If I increase the image size to 640*128 i get a single image that is stretched horizontally across the window with dimension 640*480.
 
I have created a function that will create a render target with bitmap properties and size equal to 640*480. This is used to store the data from the Kinect, frame by frame, and draw it on to the screen
 
So I think when I overlay the image, it gets replicated 5 times to meet the render target size.
 
By default the image is placed at the left top position.
 
My doubts are
 
· How can I use different functions to specify the size of render target for Kinect as 640*480 and the size of render target for bitmap image as 128*128.
 
· How to I give overlay or place the image on the live video at a specific location.
 
Thankx a ton in advance.
 
Regards,
Vivek
Posted 10-Dec-12 2:04am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 DamithSL 445
1 Maciej Los 278
2 OriginalGriff 229
3 Zoltán Zörgő 190
4 BillWoodruff 160
0 OriginalGriff 7,934
1 DamithSL 6,084
2 Sergey Alexandrovich Kryukov 5,449
3 Maciej Los 5,174
4 Kornfeld Eliyahu Peter 4,539


Advertise | Privacy | Mobile
Web02 | 2.8.141223.1 | Last Updated 10 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100