LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help with PSF image control 2d convolution

Solved!
Go to solution

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

0 Kudos
Message 1 of 4
(3,108 Views)
Solution
Accepted by topic author Mihael21

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

Message 2 of 4
(3,073 Views)

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

0 Kudos
Message 3 of 4
(3,070 Views)

Figured it out now works like charm 🙂 thanks btw

0 Kudos
Message 4 of 4
(3,052 Views)