06-02-2011 09:19 AM
Hi!
I have a problem maybe you guys can help me, im not a good coder. I have to make a vi (labview 7.1) that can open a jpg image, show it , then with a slider change the PSF (Point Spread Function) basicly controlling the blurryness and show how it effects the picture. Its a 2d convolution filter which i managed to create , but the problem is i dont how to connect the control slider now to the PSF input.(it should have effect the pixmap somehow) I tried some variations but now im realy stuck at the moment. Any hints, tips, solutions are realy welcome.
thanks in advance
Mihael
Solved! Go to Solution.
06-03-2011 03:30 AM
Dear Mihael,
I tried your code and for me it did not give anything to the output with the default settings and with a random image I chose from my PC. To be more effective I would first ask you to please first get to the point where the filter is functioning. If it's already the case and I just missed something, please let me know how to run your program to see some results.
After your filter is functioning the next step would be for me to understand what you really want to do with the slide. To change the effect of your filter I guess you would have to change the values you have in the array according to the slide. For this you could use the Replace Array Subset function from array palette.
But it is really hard to say how to change the values, you should know how the filter is affected by these changes and create a simple logic that will use the Replace Array subset to change these values accordingly.
Best regards,
David Varga
NIH
06-03-2011 05:14 AM
Thanks for the response, i rearranged some things in the vi, so now i control the PSF with the basic matrix control on the front page, my problem is now that it just doesnt do what i should, somehow the blur effect (if i set the matrix elements to 1/9) is not working. Im not sure whats wrong now. Am i using the wrong function(flatten pixmap) to show the filtered image? Shoild i use the other one unflattened?
(the convolution should work with 8 bit images, so i put a control in)
Thanks in advance
Mihael
06-03-2011 10:08 AM
Figured it out now works like charm 🙂 thanks btw