In the Image preprocessing step, we first downsample the
high-resolution bitmap image to speed up the subsequent image
analysis and to eliminate excessive details that may complicate
wound image segmentation. In our case, we downsample
the original image (pixel dimensions 3264 × 2448) by a factor 4
in both the horizontal and vertical directions to pixel dimensions
of 816 × 612, which has proven to provide a good balance
between the wound resolution and the processing efficiency.
In practice, we use the standard API for image resize on the