Inputs: |
- is the binary gland mask. White regions are glands on a black background. Field is computed inside gland regions only. |
- is a set of pixels with an assigned positive charge. |
- is a set of pixels with an assigned negative charge. |
Output: |
- is the grayscale field image. Pixel intensity is directly proportional to field magnitude at its location. Pixel intensities are within [0, 255]. |
Parameters: |
- Define +ve and −ve charges as and , respectively. Set decay rate for +ve and −ve charges as 1.0 and 1.6, respectively. These charge values and decay rates were optimized empirically. |
1: Procedure COMPUTE-FIELD(, , ) |
2: Initialize all pixels in to zero. |
3: for All pixels do
|
4: . |
5: end for
|
6: Linearly rescale to values within [0, 255] for further numerical operations. |
7: return field image . |
8: end procedure
|