02-02-2012 08:28 AM
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
Solved! Go to Solution.
02-02-2012 09:22 AM
Hi Kevin,
What is the version of vision developement module? Could you please attach the problematic calibration template image?
Thanks,
Antony
02-02-2012 10:00 AM
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.
02-02-2012 10:22 AM
02-02-2012 10:56 AM
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?.
02-02-2012 11:39 AM
02-02-2012 12:15 PM
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
02-02-2012 01:16 PM
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
02-03-2012 03:50 AM
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
02-03-2012 07:27 AM