Package ar.renderers

Examples of ar.renderers.ParallelRenderer


    Aggregates<Integer> source = new RefFlatAggregates<>(0,0,4,4,0);
    source.set(1,1,5);
    source.set(2,2,5);
   
    ISOContours.Single<Integer> contour = new ISOContours.Single<Integer>(threshold, true);
    ContourAggregates<Integer> ct = (ContourAggregates<Integer>) new ParallelRenderer().transfer(source, contour);
    GeneralPath p = (GeneralPath) ct.contours().get(0).shape();

    GeneralPath p2 = (GeneralPath) p.clone();
    p2.closePath();
    assertEquals("Unequal bounding after closing.", p.getBounds2D(), p2.getBounds2D());
View Full Code Here


        source.set(x,y,5);
      }
    }
   
    ISOContours.Single<Integer> contour = new ISOContours.Single<Integer>(threshold, true);
    ContourAggregates<Integer> ct = (ContourAggregates<Integer>) new ParallelRenderer().transfer(source, contour);
    GeneralPath p = (GeneralPath) ct.contours().get(0).shape();


    GeneralPath p2 = (GeneralPath) p.clone();
    p2.closePath();
View Full Code Here

  public static Aggregates<CategoricalCounts<Color>> cocs;
 
  @BeforeClass
  public static void load() throws Exception {
    Glyphset<Rectangle2D, Color> glyphs = GlyphsetUtils.autoLoad(new File("../data/circlepoints.csv"), .1, DynamicQuadTree.<Rectangle2D, Color>make());
    Renderer r = new ParallelRenderer();
    AffineTransform vt = new AffineTransform(241.4615556310524,
        0.0,
        0.0,
        241.4615556310524,
        238.49100176586487,
        236.13546883394775);
    Selector<Rectangle2D> s = TouchesPixel.make(glyphs);
    count = r.aggregate(glyphs, s, new Numbers.Count<Object>(), vt, 500,500);
    cocs = r.aggregate(glyphs, s, new Categories.CountCategories<Color>(Util.COLOR_SORTER), vt, 500,500);
  }
View Full Code Here

TOP

Related Classes of ar.renderers.ParallelRenderer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.