Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Correct Calibrated Image Crashes Labview

Solved!
Go to solution

I'm trying learn a calibration to find the four corners of an LCD and to remove any perspective or rotation. I'm pretty sure I've got it all set up correctly the only thing I want to fix is Correct Calibrated Image creates some jagged edges when the interpolation is set to Zero Order, but when I set it to Bi-Linear (which is the only other non-grayed out option) and then execute the VI LabView crashes everytime.

 

Any help would be appreciated.

 

Thanks,

Kevin

0 Kudos
Message 1 of 10
(4,373 Views)

Hi Kevin,

 

What is the version of vision developement module? Could you please attach the problematic calibration template image?

 

Thanks,

Antony

0 Kudos
Message 2 of 10
(4,368 Views)

I'm not sure where to find the version, but I copied this out of the IMAQVision help file: June 2011, 370281P-01.

 

I called the IMAQ Write Vision and Info File 2 VI which caused labview to crash, but I think it still wrote the file correctly.

 

It seems like a lot of VI's are crashing LabView the extract tetragon VI is and the resample image VI is.

0 Kudos
Message 3 of 10
(4,366 Views)

Well, I've isolated one potential problem. If I call Find Edge on an image before calling Learn Perspective on the same image everything is fine, but if I call Find Edge on an image after calling Learn Perspective on the same image LabView crashes.

0 Kudos
Message 4 of 10
(4,364 Views)

Hi Kevin,

 

Thanks for the information. You mentioned that correct calibrated image was crashing.Is it still true? Does it crash only in find edge if calibrated image is passed?.

 

0 Kudos
Message 5 of 10
(4,359 Views)

Correct Image still crashes LabView when the interpolation is set to Bi-Linear. It does not crash LabView when interpolation is set to Zero Order.

0 Kudos
Message 6 of 10
(4,354 Views)

Hello Kevin,

 

I could not reproduce the correction crashing issue with test.png. Do you mind sharing a VI that reproduces the issue?

 

Antony,

NI

0 Kudos
Message 7 of 10
(4,352 Views)

Here's the project I'm working from. If you execute the test.vi with the File Path = test.jpg, Width = 400, Height = 240, and File Path 2 = test2.jpg. It should work and you should end up with test2.jpg's rotation being removed. Then if you go into Correct Image.vi under the Display class and change the interpolation from Zero Order to Bi-Linear, and run test.vi LabView should crash.

 

Thanks,
Kevin

0 Kudos
Message 8 of 10
(4,350 Views)
Solution
Accepted by topic author kevin.key

Thanks for the project. I could reproduce the issue. I have filed a CAR to fix this issue in future version. I have a workaround for you to avoid this issue. If you keep image border size more than 0 (preferably 3) for calibration template image, correction VI should run fine. You have to make this modification in "Calibrate Setup.vi". Do you have any constraints to keep the border size as 0?

 

Thanks,

Antony

Message 9 of 10
(4,340 Views)

Ok thanks for the tip. I actually had to set the border to 3 for the Image Src and Image Dst going to the Correct Image VI for it to not crash LabView.

0 Kudos
Message 10 of 10
(4,338 Views)