wholebrain icon indicating copy to clipboard operation
wholebrain copied to clipboard

A bug in getIntersection()

Open lascqy opened this issue 3 years ago • 0 comments

in the correspondance.R when calling getIntersection(), it returns c(x1,y1)) or c(x1,y1,x2,y2)). but it reports a warning in getIntersectwithContour() when getIntersection() returns c(x1,y1,x2,y2)).

in some situations, with too many this kind of warnings, the outline-> x*T may can not be calculated.

you get a result like this: Screenshot from 2021-11-11 20-47-01

is there any tips to solve this bug? a temporary way is c(mean(x1,y1),mean(x2,y2))), but I think it may not a theoretical way.

lascqy avatar Dec 01 '21 14:12 lascqy