Skip to content

What is the definition of blobs? #420

Answered by jgostick
javierpagalo asked this question in Q&A
Discussion options

You must be logged in to vote

There is no science behind it. It's just meant to provide image for prototyping. The code is meant to provide a similar amount of blobs regardless of the image size, and that 40 is just a number that was chosen such that a blobiness of 1 gave reasonable sized blobs. Looking at the code, as you did, is probably the best way to understand how it works. Random numbers are generated between 0 and 1, a gaussian blur is performed using the blobiness to control the size and aspect ratio of the blurring kernel, and then the result is thresholded to give a boolean image with the correct porosity.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@josephinoo
Comment options

@jgostick
Comment options

@josephinoo
Comment options

@javierpagalo
Comment options

@jgostick
Comment options

Answer selected by javierpagalo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #419 on March 17, 2021 16:20.