fixed DetectRegionTransform