@Ian Medeiros: Calibration only yields you some parameters (using the
Kinect calibration from Nicolas Burrus; mine were done with version
0.4 using checkerboard pattern), which are:
- Camera intrinsics of the RGB camera. You can use this to correct for
distortion.
- Camera intrinsics of the Depth camera. Same story for it's usage.
- Stereo camera translation and rotation matrix, which tells you the 6
DOF of 1 camera w.r.t. another camera.
So what calibration doesn't do, is making the (x_rgb,y_rgb) equal to
(x_depth,y_depth). If that would be the case, than my life was easy.
@Pawel: If I understand correctly, what you have done is just
'overlapping' RGB with depth with some resizing, correct? That might
also be accurate enough. At least it will be more accurate than doing
(x_depth,ydepth) = (x_rgb,y_rgb). I'll keep that one in mind, but I do
prefer a more accurate mapping if that is possible. Because a more
accurate mapping will probably yield me more inliers to be used in the
Rigid Pose estimation process I use.
Cheers,
Xilconic
On 29 jun, 15:44, Paweł Królikowski <
rabb...@gmail.com> wrote:
> In my code? Nah, I got 2 structures, one for rgb and one for depth.
>
> rgb[i][j] corresponds to depth[intoDepthX(i)][intoDepthY(j)]
>
> On 29 June 2011 14:54, Ian Medeiros <
ianmcoe...@gmail.com> wrote:
>
>
>
>
>
>
>
> > After carlibration, the [i][j] index of the depth matrix doesn´t correspond
> > to the [i][j] index in the RGB matrix?
>
> > 2011/6/28 Paweł Królikowski <
rabb...@gmail.com>
>
> >> Well, I needed to know a depth of a point at specific RGB coordinate too
> >> .. and I created a simple workaround like:
>
> >> int intoDepthX(int x) {
> >> return (double)abs(x - 46)/586*640;
> >> }
>
> >> int intoDepthY(int y) {
> >> return (double)abs(y - 37)/436*480;
> >> }
>
> >> Obviously, it's only for 640x480 and I created it manually. I mean, I
> >> recorded few sample movies with box at specific distance then tried to
> >> display point at the same position in both RGB and Depth.
> >> On my kinect it works up to 1-2 pixel difference, which was good enough
> >> for me :] It might not work near the edges, but again, I didn't need it.
>
> >> The problem with RGB->Depth is both shifted and has smaller field of view
> >> -> had to shift it back & rescale.
> >> Comments are welcomed.
>
> >> 2011/6/28 xilconic <
xilco...@gmail.com>