1776 views|19 replies

9717

Posts

24

Resources
The OP
 

Please help, how much computation does it take for software to perform lens distortion correction? [Copy link]

 

Since I can't find a suitable MPU with hardware LDC (lens distortion correction), I want to know how much computation is required to implement LDC using software, and what configuration of MPU is required at least?

Latest reply

This sounds very advanced, what does it do? Is the image captured by the lens deformed?  Details Published on 2022-10-29 18:49
Personal signature虾扯蛋,蛋扯虾,虾扯蛋扯虾
 
 

2056

Posts

0

Resources
2
 

If the distortion is symmetrical along the center of the image and the amount of calculation is not large, a 640*480 single-channel image at 400MHZ can be done in real time.

Comments

I forgot to mention the resolution and frame rate. Is 1280*720 30fps achievable using software on a common MPU?  Details Published on 2022-9-26 20:22
 
 
 

9717

Posts

24

Resources
3
 
IC Crawler published on 2022-9-26 20:19 If the distortion is symmetrical along the center of the image, the amount of calculation is not large, and a 640*480 single-channel image at 400MHZ can be done in real time

I forgot to mention the resolution and frame rate. Is 1280*720 30fps achievable using software on a common MPU?

Comments

Is it single channel? If a simpler interpolation algorithm is used, it should be possible to use a 600Mhz chip.  Details Published on 2022-9-26 21:05
Personal signature虾扯蛋,蛋扯虾,虾扯蛋扯虾
 
 
 

2056

Posts

0

Resources
4
 
littleshrimp posted on 2022-9-26 20:22 I forgot to mention the resolution and frame rate. Is 1280*720 30fps achievable by software for a standard MPU?

Single channel?

If a simpler interpolation algorithm is used, this should also be possible using a 600Mhz chip.

Comments

It is single channel, but the lens is not confirmed yet, so there may be serious tangential distortion.  Details Published on 2022-9-27 07:59
 
 
 

9717

Posts

24

Resources
5
 
IC Crawler published on 2022-9-26 21:05 Is it single channel? If a simpler interpolation algorithm is used, and a 600Mhz chip is used, it should be possible.

It is single channel, but the lens has not been finalized yet, so there may be severe tangential distortion.

Comments

Tangential distortion may be caused during assembly  Details Published on 2022-9-27 10:08
 
 
 

2056

Posts

0

Resources
6
 
littleshrimp posted on 2022-9-27 07:59 It is a single channel, but the lens has not been confirmed yet, and there may be more serious tangential distortion

Tangential distortion may be caused during assembly

Comments

The lens is quite special, it is not the round lens that is usually used  Details Published on 2022-9-27 12:27
 
 
 

1w

Posts

142

Resources
7
 

Even the STM32 cannot perform real-time lens distortion correction in video shooting, but it can be done for static photos.

Comments

STM32 probably won't work, you need to use an MPU with DSP  Details Published on 2022-9-27 12:27
Personal signature上传了一些书籍资料,也许有你想要的:https://download.eeworld.com.cn/user/chunyang
 
 
 

1w

Posts

142

Resources
8
 

If you have your own lens, it is difficult to obtain the calibration parameters, and you need professional equipment to test it. Digital SLRs, PhotoShop, etc. all have lens libraries that can be used to obtain calibration parameters based on lens models, and it is probably not realistic to program this yourself.

Personal signature上传了一些书籍资料,也许有你想要的:https://download.eeworld.com.cn/user/chunyang
 
 
 

9717

Posts

24

Resources
9
 
chunyang posted on 2022-9-27 11:11 Lens distortion correction in video shooting cannot be done in real time even with STM32, but it can be done for static photos.

STM32 probably won't work, you need to use an MPU with DSP

Comments

The DSP in digital SLRs handles this, but without data there is nothing you can do...  Details Published on 2022-9-27 13:08
 
 
 

9717

Posts

24

Resources
10
 
IC Crawler published on 2022-9-27 10:08 Tangential distortion may be caused during assembly

The lens is quite special, it is not the round lens that is usually used

 
 
 

1w

Posts

142

Resources
11
 
littleshrimp posted on 2022-9-27 12:27 STM32 is probably not going to work, you need to use an MPU with DSP

The DSP in digital SLRs handles this, but without data there is nothing you can do...

Comments

You should first shoot the calibration image through a distorted lens, such as a checkerboard, calculate the distortion data and apply it to each frame later.  Details Published on 2022-9-27 16:01
Personal signature上传了一些书籍资料,也许有你想要的:https://download.eeworld.com.cn/user/chunyang
 
 
 

9717

Posts

24

Resources
12
 
chunyang posted on 2022-9-27 13:08 The DSP in digital SLRs handles this, but there is no way to do it without data...

You should first shoot the calibration image through a distorted lens, such as a checkerboard, calculate the distortion data and then apply it to each frame.

Comments

That also requires manual intervention and testing, which is a lot of work. You might as well consider finding a suitable lens with a low distortion rate.  Details Published on 2022-9-27 16:13
 
 
 

1w

Posts

142

Resources
13
 
littleshrimp posted on 2022-9-27 16:01 It should be to first shoot the calibration image through a distorted lens, such as a checkerboard, calculate the distortion data and apply it to the frameless image later.

That also requires manual intervention and testing, which is a lot of work. You might as well consider finding a suitable lens with a low distortion rate.

Comments

There is no way to choose the lens, and distortion is unavoidable.  Details Published on 2022-9-27 16:20
Personal signature上传了一些书籍资料,也许有你想要的:https://download.eeworld.com.cn/user/chunyang
 
 
 

1w

Posts

142

Resources
14
 

Lens distortion correction requires rotating the lens and testing it at multiple angles. The focus distance also has an impact, so it is very troublesome to do it yourself.

Comments

It requires manual testing, which is troublesome, but I am afraid that I won’t be able to choose the right processor.  Details Published on 2022-9-27 16:21
Personal signature上传了一些书籍资料,也许有你想要的:https://download.eeworld.com.cn/user/chunyang
 
 
 

9717

Posts

24

Resources
15
 
chunyang posted on 2022-9-27 16:13 That also requires manual intervention and testing, which is a lot of work. You might as well consider finding a suitable lens with low distortion.

There is no way to choose the lens, and distortion is unavoidable.

Personal signature虾扯蛋,蛋扯虾,虾扯蛋扯虾
 
 
 

9717

Posts

24

Resources
16
 
chunyang posted on 2022-9-27 16:15 Lens distortion correction requires rotating the lens and testing at multiple angles. The focus distance also has an impact. It is very troublesome to do it yourself.

It requires manual testing, which is troublesome, but I am afraid that I won’t be able to choose the right processor.

Comments

Then using TI's DSP, the question is - is it worth it?  Details Published on 2022-9-27 16:28
Personal signature虾扯蛋,蛋扯虾,虾扯蛋扯虾
 
 
 

1w

Posts

142

Resources
17
 
littleshrimp posted on 2022-9-27 16:21 It needs manual testing, which is troublesome, but I am afraid that I can't choose the right processor.

Then using TI's DSP, the question is - is it worth it?

Comments

Now I want to determine how much computing power is required and then choose a suitable MPU.  Details Published on 2022-9-27 16:53
Personal signature上传了一些书籍资料,也许有你想要的:https://download.eeworld.com.cn/user/chunyang
 
 
 

9717

Posts

24

Resources
18
 
chunyang posted on 2022-9-27 16:28 Then using TI's DSP, the question is - is it worth it?

Now I want to determine how much computing power is required and then choose a suitable MPU.

Personal signature虾扯蛋,蛋扯虾,虾扯蛋扯虾
 
 
 

1463

Posts

0

Resources
19
 
This sounds very advanced, what does it do? Is the image captured by the lens deformed?

Comments

right  Details Published on 2022-10-30 11:30
 
 
 

9717

Posts

24

Resources
20
 
lkh747566933 posted on 2022-10-29 18:49 This sounds very high-end, what is it for? Is the image captured by the lens deformed?

right

 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Related articles more>>

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list