TheJacksonLaboratory / dask_relabeling

A relabeling tool for tiled segmentation with Dask
MIT License
12 stars 1 forks source link

Added cropping in image2labels to remove paddings added by prepare_input #2

Closed fercer closed 6 months ago

fercer commented 6 months ago

The pre-process function prepare_input pads the image when it contains chunks of smaller size than the input's chunk size. These usually are located at the tailing edges of the image.

Therefore the output labels image has different spatial shape than the input image. This can be solved by removing the corresponding padded pixels from the labels output.

fercer commented 6 months ago

This PR solves issue #1.