Examples of FeatureSet


Examples of au.csiro.snorocket.core.util.FeatureSet

        FeatureMap<MonotonicCollection<NF8>> deltaNF8 = new FeatureMap<MonotonicCollection<NF8>>(size);
        for (NF8 nf8 : as.getNf8Axioms()) {
            addTerms(deltaNF8, nf8);
        }

        FeatureSet fs = deltaNF8.keySet();
        for (int fid = fs.nextSetBit(0); fid >= 0; fid = fs.nextSetBit(fid+1)) {
            for (IntIterator it = ontologyNF7.keyIterator(); it.hasNext();) {
                int a = it.next();
                Context aCtx = contextIndex.get(a);

                for (Iterator<NF7> i = ontologyNF7.get(a).iterator(); i.hasNext();) {
View Full Code Here

Examples of au.csiro.snorocket.core.util.FeatureSet

                ));
            }
        }
       
        // These terms are of the form f.(o, v) [ A. These are indexed by f.
        FeatureSet keys = ontologyNF8.keySet();
        for (int i = keys.nextSetBit(0); i >= 0; i = keys.nextSetBit(i+1)) {
            MonotonicCollection<NF8> mc = ontologyNF8.get(i);
            for(Iterator<NF8> it2 = mc.iterator(); it2.hasNext(); ) {
                NF8 nf8 = it2.next();
                res.add(new ConceptInclusion(
                    transform(nf8.lhsD),
View Full Code Here

Examples of au.csiro.snorocket.core.util.FeatureSet

               
                System.out.println("NF7: " + as + " [ " + f + ".(" + dt.getLiteral() +")");
            }
        }
       
        FeatureSet keys = ontologyNF8.keySet();
        for (int i = keys.nextSetBit(0); i >= 0; i = keys.nextSetBit(i+1)) {
            MonotonicCollection<NF8> mc = ontologyNF8.get(i);
            for(Iterator<NF8> it2 = mc.iterator(); it2.hasNext(); ) {
                NF8 nf8 = it2.next();
                Datatype dt = nf8.lhsD;
                int bId = nf8.rhsB;
View Full Code Here

Examples of au.csiro.snorocket.core.util.FeatureSet

        FeatureMap<MonotonicCollection<NF8>> deltaNF8 = new FeatureMap<MonotonicCollection<NF8>>(size);
        for (NF8 nf8 : as.getNf8Axioms()) {
            addTerms(deltaNF8, nf8);
        }

        FeatureSet fs = deltaNF8.keySet();
        for (int fid = fs.nextSetBit(0); fid >= 0; fid = fs.nextSetBit(fid+1)) {
            for (IntIterator it = ontologyNF7.keyIterator(); it.hasNext();) {
                int a = it.next();
                Context aCtx = contextIndex.get(a);

                for (Iterator<NF7> i = ontologyNF7.get(a).iterator(); i.hasNext();) {
View Full Code Here

Examples of au.csiro.snorocket.core.util.FeatureSet

                ));
            }
        }
       
        // These terms are of the form f.(o, v) [ A. These are indexed by f.
        FeatureSet keys = ontologyNF8.keySet();
        for (int i = keys.nextSetBit(0); i >= 0; i = keys.nextSetBit(i+1)) {
            MonotonicCollection<NF8> mc = ontologyNF8.get(i);
            for(Iterator<NF8> it2 = mc.iterator(); it2.hasNext(); ) {
                NF8 nf8 = it2.next();
                res.add(new ConceptInclusion(
                    transform(nf8.lhsD),
View Full Code Here

Examples of au.csiro.snorocket.core.util.FeatureSet

               
                System.out.println("NF7: " + as + " [ " + f + ".(" + dt.getLiteral() +")");
            }
        }
       
        FeatureSet keys = ontologyNF8.keySet();
        for (int i = keys.nextSetBit(0); i >= 0; i = keys.nextSetBit(i+1)) {
            MonotonicCollection<NF8> mc = ontologyNF8.get(i);
            for(Iterator<NF8> it2 = mc.iterator(); it2.hasNext(); ) {
                NF8 nf8 = it2.next();
                Datatype dt = nf8.lhsD;
                int bId = nf8.rhsB;
View Full Code Here

Examples of collage.image.FeatureSet

        List<FeatureSet> candidates = sic.convertToFeatures(cellDim);
       
        List<Cell> srcCells = sa.perform(img, cellDim, candidates);

        NearestNeighbour nn = new NearestNeighbour();
        FeatureSet nearest;
        List<Cell> newCells = new ArrayList<Cell>();
       
        for (Cell srcCell : srcCells) {
          nearest = nn.find(srcCell.getFeatures(), candidates);
          newCells.add(new Cell(srcCell.getBounds(),nearest));
View Full Code Here

Examples of collage.image.FeatureSet

        yRemaining -= (hStep-1);
      }
      xRemaining -= (wStep-1);
    }
   
    return new FeatureSet(name, colorSet);
  }
View Full Code Here

Examples of collage.image.FeatureSet

 
  public FeatureSet find(FeatureSet srcFeature, List<FeatureSet> candidates) {
       
    double minDist = Double.POSITIVE_INFINITY;
    double curDist;
    FeatureSet bestCand = null;
   
   
    for (FeatureSet cand : candidates) {
      curDist = this.MSE(srcFeature, cand);
      if (curDist < minDist) {
View Full Code Here

Examples of collage.image.FeatureSet

    int hStep = (int)Math.ceil((double)(img.getHeight())/h);
   
    int xRemaining;
    int yRemaining;
    Rectangle rect;
    FeatureSet fs;
    int img_w = img.getWidth();
    int img_h = img.getHeight();
   
    xRemaining = img.getWidth()-1;
    for (int x = 0; x < img.getWidth(); x += wStep) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.