Grasshopper

algorithmic modeling for Rhino

Hey guys,

I have an image that I want to kind of rebuild with points.  I would like to sample an image for instance for with the brightness filter.  And where the image is the darkest, I'd like to populate it with Points.

Suggested workflow?

thx

ew

Views: 338

Replies to This Discussion

  1. Sample the image with whatever pattern you want. Perhaps use the Grid components to generate points, perhaps import a point pattern from Rhino, perhaps use Populate 2D component.
  2. Use an Image Sampler to measure the brightness at each sample location.
  3. Sort all the points by ascending (or descending, whatever makes the most sense in context) brightness.
  4. Optional, insert a Jitter component to sort of randomize the sorting.
  5. Use a Split List component to divide the list of sorted points into 'bright' and 'dark' categories, based on some threshold.

If you want to have control over the brightness level of the remaining points, rather than exactly how many points you want, then you don't have to sort the points, you can just cull them directly by comparing each sampled brightness to a threshold value.

ps. Yes, that is my cat.

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service