Misc¤
soft_binarise
dLux.utils.misc.soft_binarise(array, oversample=3)
¤
Applies the CLIMB algorithm originally introduced in Wong et al., 2021. Assumes a square input array.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
array
|
Array
|
The continuous array to binarise |
required |
oversample
|
int
|
The oversample of the input array |
3
|
Returns:
| Name | Type | Description |
|---|---|---|
soft_binary |
Array
|
The binarised array with soft edges |
Source code in dLux/utils/misc.py
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 | |