Fade synthetic objects
Compare changes
- s193396 authored
+ 75
− 1
@@ -2,6 +2,8 @@ import numpy as np
@@ -11,6 +13,7 @@ def blob(
@@ -25,6 +28,7 @@ def blob(
@@ -115,4 +119,74 @@ def blob(
The generate_blob
and generate_collection
functions now take in an argument object_shape
that can be either cylinder
or tube
, which automatically computes the parameters of the fade_mask
function such that the blobs will have the desired shape. Examples have been added to the documentation for both the generate_blob
and the generate_collection
function.
Also, the fade_mask
function has been modified to normalize the volume after fading in order to retain the original maximum value of the volume.