フィルターのクリア

How do I transfer points from/to rectified images?

1 回表示 (過去 30 日間)
Michael Helmberger
Michael Helmberger 2016 年 2 月 1 日
回答済み: Leo Leo 2019 年 12 月 23 日
Hi,
I am using rectifyStereoImages to rectify a pair of images. How can I transfer the coordinates of a non-integer point between normal and rectified images? I tried it using the code below, however I do not get the correct coordinates (there is always an error of 1-2 pixels)..
s = stereoParams.toStruct();
H = projective2d(s.RectificationParams.H1);
origin = [s.RectificationParams.XBounds(1), s.RectificationParams.YBounds(1)] - 1;
pts_rectified = H.transformPointsForward(pts_in - repmat(origin, [size(pts_in,1) 1]));
thanks, michael

回答 (1 件)

Leo Leo
Leo Leo 2019 年 12 月 23 日
I have the same problem. Did you get the answer? thanks

カテゴリ

Help Center および File ExchangeCamera Calibration についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by