PinholeCameraModel::project3dToPixel is correct?
I'm a beginner about camera geometry.
I would like to understand PinholeCameraModel::project3dToPixel
function.
PinholeCameraModel::project3dToPixel
I derived uv_rect
like below but the formula are a little different from API.
API tells,
uv_rect.x = (fx()*xyz.x + Tx()) / xyz.z + cx();
uv_rect.y = (fy()*xyz.y + Ty()) / xyz.z + cy();
I derived,
uv_rect.x = (fx()*(xyz.x + Tx())) / xyz.z + cx();
uv_rect.y = (fy()*(xyz.y + Ty())) / xyz.z + cy();
Is The unit of xyz.x
and Tx()
meter?
If so, my answer is not wrong.
Could you tell me the deriving process of these formula?