Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
167 views
in Technique[技术] by (71.8m points)

How to do linear fit to aspect ratio in 2D image coordinates?

Firstly, I am new to Image processing.

I have a image of size 166*166. I need the matrix coordinates to be converted to different aspect ratio coordinates without disturbing the image.

  1. The max and min value of new x and y coordinates are -0.072 and 0.072. Basically this image is to be converted to sphere coordinates. From these x & y, I can get z coordinate with radius.

  2. But how do I convert the raw 166*166 to the mentioned coordinates. I tried to use linear fit using basic equation as new_x = a(old_x)+b. This might work, but I am not understanding how to get the parameters of a and b of the entire image in the equation.

Any leads will be appreciated. Thanks.

question from:https://stackoverflow.com/questions/65870784/how-to-do-linear-fit-to-aspect-ratio-in-2d-image-coordinates

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...