Package JDescriptors.fr.lip6.color

Examples of JDescriptors.fr.lip6.color.ColorVQDescriptorCreator


  public static void main(String[] args) {
   
    ColorVQDescriptorCreator c = ColorVQDescriptorCreator.getInstance();
   
    //honeycomb patches
    HoneycombDetector detector = new HoneycombDetector(12, 12);
    c.setDetector(detector);
   
    int x = 10, y = 6, z = 4;
//    RGBColorQuantizer q =new RGBColorQuantizer(x, y, z);
    IHSColorQuantizer q = new IHSColorQuantizer(x, y, z);
View Full Code Here


   
    ColorVQDescriptorCreator c = ColorVQDescriptorCreator.getInstance();
    //System.out.println(" s = " + s + " ; r = " + s + " ; cut = " + cut);
   
    //Descriptor creator
    HoneycombDetector detector = new HoneycombDetector(s, r);
    c.setDetector(detector);
    IHSColorQuantizer q = new IHSColorQuantizer(I, H, S);
    c.setQuantizer(q);
    c.setNormalize(false);
   
View Full Code Here

    String descOut = args[1];
   
   
    GaborDescriptorCreator creator = new GaborDescriptorCreator();
   
    Detector detector = new HoneycombDetector(6, 9);
    creator.setDetector(detector);
   
    long tim = System.currentTimeMillis();
    ArrayList<GaborDescriptor> listOfDesc = creator.createDescriptors(im);
    System.out.println("time : "+(System.currentTimeMillis()-tim));
View Full Code Here

      System.out.println("low level counting : "+counting);
   
    int i = 0;
    //creation extracteur de gaborettes
    GaborDescriptorCreator creator = new GaborDescriptorCreator();
    Detector detector = new HoneycombDetector(spacing, scaling);
    creator.setDetector(detector);
    creator.setOrientation(orientation);
    creator.setCounting(counting);
   
    //processing all files
View Full Code Here

    }
   
    ColorVQDescriptorCreator c = ColorVQDescriptorCreator.getInstance();
   
    //honeycomb patches
    HoneycombDetector detector = new HoneycombDetector(12, 12);
    c.setDetector(detector);
   
    int x = 8, y = 6, z = 3;
//    RGBColorQuantizer q = new RGBColorQuantizer(x, y, z);
    IHSColorQuantizer q = new IHSColorQuantizer(x, y, z);
View Full Code Here

      System.out.println("low level counting : "+counting);
   
    int i = 0;
    //creation extracteur de gaborettes
    MacroGaborDescriptorCreator creator = new MacroGaborDescriptorCreator();
    Detector detector = new HoneycombDetector(spacing, scaling);
    creator.setDetector(detector);
    creator.setOrientation(orientation);
    creator.setCounting(counting);
   
    //processing all files
View Full Code Here

    double temp = 0;
   
    ColorVQDescriptorCreator c = ColorVQDescriptorCreator.getInstance();
   
    //Descriptor creator
    HoneycombDetector detector = new HoneycombDetector(s, r);
    c.setDetector(detector);
    IHSColorQuantizer q = new IHSColorQuantizer(I, H, S);
    c.setQuantizer(q);
    c.setNormalize(false);
    try{
View Full Code Here

      for(int j = 0; j < dimension ; j++)
      {
        point[j] = Float.parseFloat(bodyTokens.nextToken());
      }

      SIFTDescriptor sift = new SIFTDescriptor();
      sift.setD(point);
      sift.setXmin((int) (x-s));
      sift.setXmax((int) (x+s));
      sift.setYmin((int) (y-s));
      sift.setYmax((int) (y+s));
      sift.setShape("CIRCLE");
      list.add(sift);
    }


    iStream.close();
View Full Code Here

        System.out.println("normalizing "+s);
        ArrayList<Descriptor> list = DescriptorReader.readFile(inDir+"/"+s);
       
        for(Descriptor d : list)
        {
          GaborDescriptor gd = (GaborDescriptor)d;
          double D[] = gd.getD();
         
          for(int i = 0 ; i < D.length; i++)
          {
            D[i] -= meanDesc[i];
            D[i] /= meanSquareDesc[i];
View Full Code Here

  {
    String im = args[0];
    String descOut = args[1];
   
   
    GaborDescriptorCreator creator = new GaborDescriptorCreator();
   
    Detector detector = new HoneycombDetector(6, 9);
    creator.setDetector(detector);
   
    long tim = System.currentTimeMillis();
    ArrayList<GaborDescriptor> listOfDesc = creator.createDescriptors(im);
    System.out.println("time : "+(System.currentTimeMillis()-tim));
   
//    System.out.println(XMLWriter.writeXMLString(listOfDesc));
    try {
      XMLWriter.writeXMLFile(descOut, listOfDesc, true);
    } catch (IOException e) {
      e.printStackTrace();
    }
   
    double[] mean = creator.getMeanGabor();
    for(int i = 0; i < mean.length; i++)
    {
      mean[i] /= creator.getNbProcessedDescriptors();
    }
    double std[] = creator.getStdGabor();
    for(int i = 0 ; i < std.length; i++)
    {
      std[i] = Math.sqrt(std[i]/creator.getNbProcessedDescriptors() - mean[i]*mean[i]);
    }
 
    System.out.println("nbDescs : "+creator.getNbProcessedDescriptors());
    System.out.println(" mean : "+Arrays.toString(mean));
    System.out.println(" std : "+Arrays.toString(std));
  }
View Full Code Here

TOP

Related Classes of JDescriptors.fr.lip6.color.ColorVQDescriptorCreator

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.