From 7f4062828c7b816847522bc42c337cdf35102e7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anna=20B=C3=B8gevang=20Ekner?= <s193396@dtu.dk> Date: Tue, 4 Feb 2025 14:53:49 +0100 Subject: [PATCH] more fixes to docs --- qim3d/generate/_aggregators.py | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/qim3d/generate/_aggregators.py b/qim3d/generate/_aggregators.py index 4d26177b..8ede2cae 100644 --- a/qim3d/generate/_aggregators.py +++ b/qim3d/generate/_aggregators.py @@ -170,7 +170,7 @@ def noise_object_collection( verbose (bool, optional): Flag to enable verbose logging. Defaults to False. Returns: - synthetic_collection (numpy.ndarray): 3D volume of the generated collection of synthetic objects with specified parameters. + noise_collection (numpy.ndarray): 3D volume of the generated collection of synthetic objects with specified parameters. labels (numpy.ndarray): Array with labels for each voxel, same shape as synthetic_collection. Raises: @@ -213,15 +213,15 @@ def noise_object_collection( import qim3d # Generate synthetic collection of dense objects - vol, labels = qim3d.generate.collection( - min_high_value = 255, - max_high_value = 255, - min_object_noise = 0.05, - max_object_noise = 0.05, - min_threshold = 0.99, - max_threshold = 0.99, - min_gamma = 0.02, - max_gamma = 0.02) + vol, labels = qim3d.generate.noise_object_collection( + min_high_value = 255, + max_high_value = 255, + min_object_noise = 0.05, + max_object_noise = 0.05, + min_threshold = 0.99, + max_threshold = 0.99, + min_gamma = 0.02, + max_gamma = 0.02) # Visualize synthetic collection qim3d.viz.vol(vol) @@ -233,7 +233,8 @@ def noise_object_collection( import qim3d # Generate synthetic collection of cylindrical structures - vol, labels = qim3d.generate.noise_object_collection(num_objects = 40, + vol, labels = qim3d.generate.noise_object_collection( + num_objects = 40, collection_shape = (300, 150, 150), min_shape = (280, 10, 10), max_shape = (290, 15, 15), -- GitLab