Skip to content

Commit

Permalink
fix patch width when using level in patch clustering
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinblampey committed Mar 11, 2024
1 parent 0a5c20a commit 082ee32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sopa/embedding/patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def _get_extraction_parameters(
level = 0

if magnification is None:
return level, 1, patch_width, True
return level, 1, int(patch_width * 2**level), True # TODO: what if scaling != 2?

if tiff_metadata["properties"].get("tiffslide.objective-power"):
objective_power = int(tiff_metadata["properties"].get("tiffslide.objective-power"))
Expand Down

0 comments on commit 082ee32

Please sign in to comment.