Post-Processing
PostProcess
Class containing all the possible post-processing operations which can be applied to a scalar field.
Attributes: |
|
---|
Parameters: |
|
---|
post_processing_operations: list
property
All the post-processing operations which were applied to the geometry in chronological order.
Returns: |
|
---|
processed_object: Callable[[np.ndarray, tuple], np.ndarray]
property
SDF of the modified geometry.
Returns: |
|
---|
unprocessed_object: Callable[[np.ndarray, tuple], np.ndarray]
property
SDF of the unmodified geometry.
Returns: |
|
---|
sigmoid_falloff(amplitude, width)
Applies a sigmoid to the scalar (Signed Distance Function) field.
Parameters: |
|
---|
Returns: |
|
---|
positive_sigmoid_falloff(amplitude, width)
Applies a sigmoid, shifted to the positive velues by the value of the width parameter, to the scalar (Signed Distance Function) field.
Parameters: |
|
---|
Returns: |
|
---|
capped_exponential(amplitude, width)
Applies a decreasing exponential functon to the scalar (Signed Distance Function) field. to the scalar (Signed Distance Function) field.
Parameters: |
|
---|
Returns: |
|
---|
hard_binarization(threshold)
Binarizes the Signed Distance field/pattern based on a threshold. Values below the threshold are 1 and values above are 0.
Parameters: |
|
---|
Returns: |
|
---|
linear_falloff(amplitude, width)
Applies a decreasing linear function to the scalar (Signed Distance Function) field.
Parameters: |
|
---|
Returns: |
|
---|
relu(width)
Applies the ReLU function to the scalar (Signed Distance Function) field.
Parameters: |
|
---|
Returns: |
|
---|
smooth_relu(smooth_width, width=1, threshold=0.01)
Applies the "squareplus" function to the scalar (Signed Distance Function) field. https://en.wikipedia.org/wiki/Rectifier_(neural_networks)
Parameters: |
|
---|
Returns: |
|
---|
slowstart(smooth_width, width=1, threshold=0.01, ground=True)
Applies the SlowStart function to the scalar (Signed Distance Function) field.
Parameters: |
|
---|
Returns: |
|
---|
gaussian_boundary(amplitude, width)
Applies the Gaussian to the scalar (Signed Distance Function) field.
Parameters: |
|
---|
Returns: |
|
---|
gaussian_falloff(amplitude, width)
Applies the Gaussian to the positive values of the scalar (Signed Distance Function) field.
Parameters: |
|
---|
Returns: |
|
---|
conv_averaging(kernel_size, iterations, co_resolution)
Averages the field using an averaging convolutional kernel of the specified size.
Parameters: |
|
---|
Returns: |
|
---|
conv_edge_detection(co_resolution)
Edge detection based on a 3x3 convolutional kernel.
Parameters: |
|
---|
Returns: |
|
---|
custom_post_process(function, parameters, post_process_name='custom')
Applies a custom user-specified post-processing function to a scalar (Signed Distance Function) field.
Parameters: |
|
---|
Returns: |
|
---|
sigmoid_falloff(u, amplitude, width)
Applies a sigmoid to the scalar (Signed Distance Function) field.
Parameters: |
|
---|
Returns: |
|
---|
positive_sigmoid_falloff(u, amplitude, width)
Applies a sigmoid, shifted to the positive velues by the value of the width parameter, to the scalar (Signed Distance Function) field.
Parameters: |
|
---|
Returns: |
|
---|
capped_exponential(u, amplitude, width)
Applies a decreasing exponential functon to the scalar (Signed Distance Function) field.
Parameters: |
|
---|
Returns: |
|
---|
hard_binarization(u, threshold)
Binarizes the Signed Distance field/pattern based on a threshold. Values below the threshold are 1 and values above are 0.
Parameters: |
|
---|
Returns: |
|
---|
linear_falloff(u, amplitude, width)
Applies a decreasing linear function to the scalar (Signed Distance Function) field.
Parameters: |
|
---|
Returns: |
|
---|
relu(u, width=1)
Applies the ReLU function to the scalar (Signed Distance Function) field.
Parameters: |
|
---|
Returns: |
|
---|
smooth_relu(u, smooth_width, width=1, threshold=0.01)
Applies the "squareplus" function to the scalar (Signed Distance Function) field. https://en.wikipedia.org/wiki/Rectifier_(neural_networks)
Parameters: |
|
---|
Returns: |
|
---|
slowstart(u, smooth_width, width=1, threshold=0.01, ground=True)
Applies the SlowStart function to the scalar (Signed Distance Function) field.
Parameters: |
|
---|
Returns: |
|
---|
gaussian_boundary(u, amplitude, width)
Applies the Gaussian to the scalar (Signed Distance Function) field.
Parameters: |
|
---|
Returns: |
|
---|
gaussian_falloff(u, amplitude, width)
Applies the Gaussian to the positive values of the scalar (Signed Distance Function) field.
Parameters: |
|
---|
Returns: |
|
---|
conv_averaging(u, kernel_size, iterations)
Averages the field using an averaging convolutional kernel of the specified size.
Parameters: |
|
---|
Returns: |
|
---|
conv_edge_detection(u)
Edge detection based on a 3x3 convolutional kernel.
Parameters: |
|
---|
Returns: |
|
---|
custom_post_process(u, function, parameters)
Applies a custom user-specified post-processing function to a scalar (Signed Distance Function) field.
Parameters: |
|
---|
Returns: |
|
---|