Skip to content

Commit

Permalink
Fix error in distanceTransform's target parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
sjmgarnier committed Dec 4, 2023
1 parent 369c960 commit e581bc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/transform.R
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@ distanceTransform <- function(image, distance_type = "L1", mask_size = 3,
if (isImage(target)) {
`_distanceTransform`(image, dt, mask_size, target)
} else if (target == "self") {
`_distanceTransform`(image, dt, mask_size, target)
`_distanceTransform`(image, dt, mask_size, image)
} else if (target == "new") {
out <- zeros(nrow(image), ncol(image), 1, "32F")
`_distanceTransform`(image, dt, mask_size, out)
Expand Down

0 comments on commit e581bc0

Please sign in to comment.