ghiggi/ximage

[BUG] Unclear behavior of `n_patches` argument in `patch/labels_patch.py`

Opened this issue · 0 comments

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

In patch/labels_patch.py, the patch_counter variable is not incremented correctly when grouped_by_labels_id is True.

Originally posted by @sphamba in #4 (comment)

Expected Behavior

Right now we increment the counter by 1 while:

  • for a given label multiple patches can be extracted when tiling or sliding
  • we could also have the case where no patch is extracted for a label (maybe with a custom center on method?)

Originally posted by @ghiggi in #4 (comment)

Steps To Reproduce

No response

Environment

No response

Anything else?

No response