02-24-2011 08:26 AM
Hello all,
It has been quite some time since I have programmed with LabView in any detailed manner so I post this question to the masses in hopes of a quick and easy solution.
I am trying to replicate optical aberrations (1st and 3rd order monochromatic - to be specific). I am hoping to replicate this on a standard concentric square target and a circular concentric square target (images attached). In terms of applying a set of equations to an image and seeing the new "distorted" image, what would be the best method of going about this? I was able to get some success with converting the image to an array and applying the equations to the array and converting back, but the results were disappointing. Next I worked with the image and pixel manipulation to no real effect. In the past I could apply some kernels to a small sample set and effectively alter the trigonometry and geometry.
If anyone has some quick insight to this I would greatly appreciate it. Simplifying my rubbish above, I basiaclly just want to apply some squared and quadratic equations along with some trigonmetry to distort my concentric squares/circles.
Best,
Steve
02-25-2011 05:39 PM
Hey Steve
I looked around and it was hard to find any examples, so I started working on a pretty simplistic version of what I believe you are trying to do.
I attached the code, as well as a raw data bitmap of one of your images. The main VI is DrawPicture.vi . The default values should be set to an interesting image. I put it together pretty fast, so please be aware that it's untested, and probably not very optimized.
I just hope this is what you are looking for, and if you have any questions, let me know. I'll do my best to get back to you, though I will be out of the office for a while, but I will try to check back in when I can.
Jake