类 SearchBasedDetector

    • 构造器详细资料

      • SearchBasedDetector

        public SearchBasedDetector()
        Create a skew detector
      • SearchBasedDetector

        public SearchBasedDetector​(SearchStrategy strategy)
        Create a skew detector with specified search strategy
        参数:
        strategy -
    • 方法详细资料

      • getCost

        protected abstract double getCost​(byte[] pixels,
                                          int width,
                                          int height,
                                          double theta)
        Calculate cost for a angle(lower is better)
        参数:
        pixels - pixel array
        width - width of the bitmap
        height - height of the bitmap
        theta - angle
        返回:
        the cost