Skip to content

Commit

Permalink
fixed argument
Browse files Browse the repository at this point in the history
  • Loading branch information
tand826 committed Jun 1, 2020
1 parent 1e48685 commit d68b9eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ annotation.export_thumb_masks("xxx/masks")
import wsiprocess as wp
import cv2
slide = wp.slide("xxx.tiff")
annotation = wp.annotation("yyy.tiff", is_image=True)
annotation = wp.annotation("", is_image=True)
target_classes = ["benign", "malignant"]
annotation.add_class(target_classes)
benign_mask = cv2.imread("benign_mask.png", 0) * 255
Expand All @@ -101,7 +101,7 @@ malignant_mask = cv2.imread("malignant_mask.png", 0) * 255
annotation.from_image(benign_mask, "benign")
annotation.from_image(malignant_mask, "malignant")
rule = wp.rule("xxx.json")
patcher = wp.patcher(slide, "classification", foreground=True)
patcher = wp.patcher(slide, "classification", annotation=annotation)
patcher.get_patch_parallel(target_classes)
```

Expand Down

0 comments on commit d68b9eb

Please sign in to comment.