Macha Posted March 23, 2010 Share Posted March 23, 2010 (edited) I'm trying to make my own python smoothing sop so that I have more control over it. Not sure if anybody knows the answer to this because it is (probably) not Houdini specific but here it goes: I use the scipy gaussian_filter1d()to achieve smoothing. It's fast enough but I get "direction" in my smoothing. Any ideas as to why this happens? I think it has something to do with the array shape. Or perhaps good links to smoothing, blurring, and denoising? Edited March 23, 2010 by Macha Quote Link to comment Share on other sites More sharing options...
mightcouldb1 Posted March 23, 2010 Share Posted March 23, 2010 Not sure if this is too introductory, but here goes nothing: http://home.scarlet.be/zoetrope/blur.htm Quote Link to comment Share on other sites More sharing options...
Macha Posted March 24, 2010 Author Share Posted March 24, 2010 (edited) Yes, it's a nice link. It strengthens my suspicion. I think the algorithm assumes the topology of an image but that is not necessarily true for a 3d object where points may be connected in more complicated and unpredictable ways. I had that problem the my mouse-brain project as well. I guess I have to go and calculate the n'th connected neighbor for every point, and the distance, and work out the blurring from that. Python is perhaps too slow for it so I've got to find a vex way of finding neighbors. Actually, a bit of a stupid question: How do I edit Vop Vex code? I can rightclick and view source, but how do I edit? Edited March 24, 2010 by Macha Quote Link to comment Share on other sites More sharing options...
mightcouldb1 Posted March 24, 2010 Share Posted March 24, 2010 I don't believe that you can edit the VEX code for a VOP SOP. You have to create a new VEX otl and type the code in there. You can save out the VOP code and paste it in if you'd like. Quote Link to comment Share on other sites More sharing options...
Macha Posted March 25, 2010 Author Share Posted March 25, 2010 My hunch was right, so I rewrote the blur from scratch and the directions disappeared. It is very slow though and not pretty yet (simple box blur) Quote Link to comment Share on other sites More sharing options...
mightcouldb1 Posted March 25, 2010 Share Posted March 25, 2010 Nice progress! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.