vector1911
Posts: 2
|
Hi!
Is there (or can be created) a filter that does just this - it lets me input a percentage from 0 to 100 and then it fills in random manner the current image with a color - with jagged edges, some random stuff, uneven filling - eventually letting me choose what kind of randomness I want and if the filling should be uniform or uneven.
Also, is there a way to compute the surface of a selection from an image (in pixels or cm - the surface is irregular).
Thank you in advance!
Best regards!
|
ThreeDee
Lost in Space

|
Hi Vector,
I'm not sure I understand what the first filter is meant to do. What is the percentage value of? The surface area of the image? "Filling the image in random manner" -- do you mean with a flat color over the original image? If so, you could make a noise of any type and use the percentage value as a threshold between a color and the original image.
As for the second question, it would be rather feasible to make a filter that would calculate the percentage of the selection area in relation the the full image. I you could make a filter that would tell you how many pixels were selected (or the square root thereof, if you wanted the area). The output in each case would be a gray level representing the percentage.
|
vector1911
Posts: 2
|
Thank you for the filter!
When I meant a random area, I meant exactly what your filter does, but I was hoping for the random area to be more "random" and more non-uniform.
Maybe if I tell you what I want to do with it, you can understand better what I mean.
I want to use the filter to create various areas suited for random tracts of land for maps - islands, gulfs, internal seas, peninsulas, fjords, oceans, normal seas, archipelagos, island chains, semi-continents, continents and lakes.
I do not need for the filter to do anything special, just fill all the land shape with a simple color.I input the percentage for the land (and if possible, how fragmented the borders to be, what types of land features I want and how much of each - see above for types) and the filter just fills in a random manner with one color a certain percentage in a seamless manner.
More simplified - miriads of dots of all shapes and sizes, land massess with dots at their borders, gaps smaller to bigger in the land massess, closed or open (with access to other gaps), miriads of gaps, land masses from small to big, long and thin landmasses, rotated in random direction, not just up-down or right left and some of them connected with te bigger land masses (peninsulas).
Thank you in advance!
Best regards!
|