nghiatranduc94 Posted May 18, 2021 Share Posted May 18, 2021 Hi, so I'm working on some setup which will create lines between different color part of a picture. Any suggestion on how to do that? My workflow here is to create a color ramp and change the color of picture to the nearest color in the ramp, then partition by color. But I'm stuck in how to match the color from source picture to the ramp. Quote Link to comment Share on other sites More sharing options...
Librarian Posted May 18, 2021 Share Posted May 18, 2021 (edited) @nghiatranduc94 post some example In picture if you have ...how? (lines surrounding in the area of color , lines connecting like voronoi diagram with diff centers, lines diff like clusters ) ..many ways to do that I think if I understand correctly Edited May 18, 2021 by Librarian Quote Link to comment Share on other sites More sharing options...
nghiatranduc94 Posted May 18, 2021 Author Share Posted May 18, 2021 17 minutes ago, Librarian said: @nghiatranduc94 post some example In picture if you have ...how? (lines surrounding in the area of color , lines connecting like voronoi diagram with diff centers, lines diff like clusters ) ..many ways to do that I think if I understand correctly sorry for my bad explaining, yes the picture above is exactly what i want to do, Quote Link to comment Share on other sites More sharing options...
Librarian Posted May 18, 2021 Share Posted May 18, 2021 (edited) Have Fun @nghiatranduc94 Yupiiiiii.hiplc Edited May 18, 2021 by Librarian 7 Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted May 19, 2021 Share Posted May 19, 2021 The cluster node, combined with some others, does a good job at vectorizing images: vectorize_image.hiplc 6 Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted May 20, 2021 Share Posted May 20, 2021 A tutorial on vectorizing images: 1 Quote Link to comment Share on other sites More sharing options...
vinyvince Posted May 22, 2021 Share Posted May 22, 2021 Nice one Konstantin, thanks Maestro! I gave a try and find using an additional attribute to the cluster k mean , like compute the gradient, help to give better result. Here's one of the left yours, on the right mine ________________________________________________________________ Vincent Thomas (VFX and Art since 1998) Senior Env and Lighting artist & Houdini generalist & Creative Concepts http://fr.linkedin.com/in/vincentthomas Quote Link to comment Share on other sites More sharing options...
vinyvince Posted May 22, 2021 Share Posted May 22, 2021 And it's more predictable rsult when the seed, or input image image to vectorize change ________________________________________________________________ Vincent Thomas (VFX and Art since 1998) Senior Env and Lighting artist & Houdini generalist & Creative Concepts http://fr.linkedin.com/in/vincentthomas Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted May 22, 2021 Share Posted May 22, 2021 50 minutes ago, vinyvince said: I gave a try and find using an additional attribute to the cluster k mean , like compute the gradient, help to give better result. Hi Vincent, that's a lot cleaner! Maybe you could post the updated file, so anyone can learn your methods? Quote Link to comment Share on other sites More sharing options...
vinyvince Posted May 22, 2021 Share Posted May 22, 2021 Im on my ipad now, but oh nothing special, , im computing the gradient of the color, and use this with a high weight in addition to Cd to calculate the Clusters separations See what I mean @konstantin magnus ? ________________________________________________________________ Vincent Thomas (VFX and Art since 1998) Senior Env and Lighting artist & Houdini generalist & Creative Concepts http://fr.linkedin.com/in/vincentthomas Quote Link to comment Share on other sites More sharing options...
Librarian Posted May 22, 2021 Share Posted May 22, 2021 Odforce-old cluster K-mean.hiplc Quote Link to comment Share on other sites More sharing options...
konstantin magnus Posted May 23, 2021 Share Posted May 23, 2021 Clustered by 1. color, 2. color and gradient, 3. color and normalized gradient. vectorize_image_gradient.hiplc 1 Quote Link to comment Share on other sites More sharing options...
Librarian Posted May 23, 2021 Share Posted May 23, 2021 Out.hiplc Quote Link to comment Share on other sites More sharing options...
Librarian Posted May 23, 2021 Share Posted May 23, 2021 here endless HDA on the Cluster and output https://github.com/Fe-Elf Quote Link to comment Share on other sites More sharing options...
vinyvince Posted May 23, 2021 Share Posted May 23, 2021 8 hours ago, konstantin magnus said: Clustered by 1. color, 2. color and gradient, 3. color and normalized gradient. vectorize_image_gradient.hiplc By normalized gradient, you Quote Link to comment Share on other sites More sharing options...
vinyvince Posted May 23, 2021 Share Posted May 23, 2021 Have a little bit of recreative fun here with our lovely little friend here, remind me the pointillism of my childhood Start to be far away now ________________________________________________________________ Vincent Thomas (VFX and Art since 1998) Senior Env and Lighting artist & Houdini generalist & Creative Concepts http://fr.linkedin.com/in/vincentthomas pointillisme_vince.hiplc 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.