Image processing#
grainMeaning#
Type: integer. Accepted values: 0 for light grains or 1 for dark
grains. Required: yes.
threshold#
Type: number. Accepted values: 0 through 1, inclusive. The image is read in grayscale and converted into a binary grain and pore-space mask.
rescale#
Type: positive number. Rescales the input image before contour extraction. Values below 1 reduce the number of pixels. See skimage.transform.rescale.
grainsSize#
Type: nonnegative integer. Units: pixels. Removes connected grain objects at or below the configured size. See remove_small_objects.
borderTol and grainsTol#
Type: nonnegative number. Polygon-approximation tolerances for the external border and interior grains. Larger values reduce the number of contour points. See approximate_polygon.
Extracted contours for grainsSize, borderTol, and grainsTol of
500, 5, 5; 100, 1, 1; and 0, 0, 0, respectively.#
Tip
Smaller size and tolerance values retain more geometric detail, but increase mesh-generation and simulation time.