コード例 #1
0
  @Test
  public void standardWeighted() {
    GenericOrientationGradientTests<ImageSInt32> tests =
        new GenericOrientationGradientTests<ImageSInt32>();

    ImplOrientationHistogram_S32 alg = new ImplOrientationHistogram_S32(N, true);
    alg.setRadius(r);

    tests.setup(2.0 * Math.PI / N, r * 2 + 1, alg);
    tests.performAll();
  }
コード例 #2
0
  @Test
  public void standardWeighted() {
    GenericOrientationGradientTests<ImageFloat32> tests =
        new GenericOrientationGradientTests<ImageFloat32>();

    ImplOrientationAverage_F32 alg = new ImplOrientationAverage_F32(true);
    alg.setRadius(r);

    tests.setup(angleTol, r * 2 + 1, alg);
    tests.performAll();
  }