I want to create a test image which consists of 2d circular shaped objects each having a Gaussian brightness distribution profile.
To make it simple objects should be the same.
I then put the objects at random positions.
In the resulting composed image I would like to prevent overlapping objects.
An alternative would also be that the brighter pixels dominate.
How could that be done?
Result:
The single object:
My code:
(*a single object*)
objectData = GaussianMatrix[20, 0];
object = Image[objectData/Max[objectData]];
(*the test image,here 400 pixels square*)
imageData = Array[0 &, {400, 400}];
image = Image[imageData];
(*some random mean positions*)
randomCoords = Array[{RandomReal[], RandomReal[]} &, 20];
(*image composition*)
ImageCompose[image, object, randomCoords*400]
GaussianFilter[RandomImage[BernoulliDistribution[.0002], {300, 300}], 10] // ImageAdjust
$\endgroup$ – Dr. belisarius Feb 18 '16 at 17:46image/img
,object/particle
. $\endgroup$ – Daniel Lichtblau Feb 19 '16 at 17:36