Jump to content
Castel.Alex

Image barrel distortion correction

Recommended Posts

Hi,

I’m using Labview v.2014 for a project that consists in importing a picture from the web browser acquired by a COGNEX camera IS2000 with a wide angle lens.

Since I need to correct the distortion on the sides to avoid barrel distortion as much as possible I was wondering if somebody has already developed something suitable without using NI Vision. Please assist.

Img00.jpg

Share this post


Link to post
Share on other sites

Hello,

If it's okay to use 3rd party free tools, you could look into ImageMagick.
It has command line interface.

L.

 

  • Like 1

Share this post


Link to post
Share on other sites

Do you have the Vision Development Module?

The wide angle lens may not be the right tool for the job. Look up telecentric lenses. I can't tell what the field of view you need is, which is important in lens choice. Telecentric lenses are expensive. Is this for an academic or industrial application?

Share this post


Link to post
Share on other sites
On 7/31/2020 at 2:07 PM, Lipko said:

Hello,

If it's okay to use 3rd party free tools, you could look into ImageMagick.
It has command line interface.

L.

 

Hi,

I'm reading your ImageMagick link but I dont' understand how can I use in labview? I have a picture that change 2 times/second. CAn you explane better your

 

Share this post


Link to post
Share on other sites
On 8/2/2020 at 11:27 PM, caleyjag said:

Do you have the Vision Development Module?

The wide angle lens may not be the right tool for the job. Look up telecentric lenses. I can't tell what the field of view you need is, which is important in lens choice. Telecentric lenses are expensive. Is this for an academic or industrial application?

No, I don't want to use a Vision module.

I must use a wide angle lens becuase the area to show is 250x160 mm and the camera is fix at about 300mm. This is an industrial application so I have a budget.

Share this post


Link to post
Share on other sites
2 hours ago, Castel.Alex said:

Hi,

I'm reading your ImageMagick link but I dont' understand how can I use in labview? I have a picture that change 2 times/second. CAn you explane better your

 

ImageMagick has command line interface so you can use "System Exec.vi".
ImageMagick works with files (at least the command line thing). So you have to save the picture, call "System Exec.vi" with the proper command and parameters, this will make another file (or overwrite), then you have to load this file to Labview. For not high resolutions, this will probably fit the 0.5 second time (and based on the picture you posted, the resolution in pretty low).

I have to ask the usual question though: what is your final goal? Maybe you could go the other way around and barrel-distort the whatever instead of the picture? Maybe you'd only need one transformation during the whole program run.

Edited by Lipko

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.