Examples of Resample


Examples of com.blitline.image.functions.Resample

  public static Rectangle drawRectangle(int x1, int y1, int x2, int y2) {
    return rectangle(x1, y1, x2, y2);
  }

  public static Resample resampleTo(int dpi) {
    return new Resample(dpi);
  }
View Full Code Here

Examples of com.blitline.image.functions.Resample

  public static Rectangle drawRectangle(int x1, int y1, int x2, int y2) {
    return rectangle(x1, y1, x2, y2);
  }

  public static Resample resampleTo(int dpi) {
    return new Resample(dpi);
  }
View Full Code Here

Examples of com.blitline.image.functions.Resample

  public static Rectangle drawRectangle(int x1, int y1, int x2, int y2) {
    return rectangle(x1, y1, x2, y2);
  }

  public static Resample resampleTo(int dpi) {
    return new Resample(dpi);
  }
View Full Code Here

Examples of jm.audio.synth.ReSample

     */
    public void createChain() {
        //define the chain
        SampleIn sin = new SampleIn(this, fileName);

        ReSample reSample = new ReSample(sin, this.baseFreq);
        Volume vol = new Volume(reSample);
        StereoPan span = new StereoPan(vol);
        if (wholeFile) {
            sin.setWholeFile(wholeFile);
            if (output == RENDER) sout = new SampleOut(span);
View Full Code Here

Examples of net.sourceforge.jiu.geometry.Resample

    {
      return in;
    }
    try
    {
      Resample res = new Resample();
      res.setFilter(Resample.FILTER_TYPE_LANCZOS3);
      res.setInputImage(in);
      float thumbRatio = 1.0f;
      float imageRatio = (float)in.getWidth() / (float)in.getHeight();
      int width = maxLength;
      int height = maxLength;
      if (thumbRatio < imageRatio)
      {
        height = (int)(maxLength / imageRatio);
      }
      else
      {
        width = (int)(maxLength * imageRatio);
      }
      //float x = (float)in.getWidth() / maxLength;
      //float y = (float)in.getHeight() / maxLength;
      res.setSize(width, height);
      res.process();
      return res.getOutputImage();
    }
    catch (OperationFailedException ofe)
    {
      return null;
    }
View Full Code Here

Examples of weka.filters.unsupervised.instance.Resample

    boolean    finished;
    PointDouble    result;
    PointDouble    resultOld;
    int      iteration;
    Instances    sample;
    Resample    resample;

    log("Step 1:\n");

    // generate sample?
    if (getSampleSizePercent() == 100) {
      sample = m_Data;
    }
    else {
      log("Generating sample (" + getSampleSizePercent() + "%)");
      resample = new Resample();
      resample.setRandomSeed(getSeed());
      resample.setSampleSizePercent(getSampleSizePercent());
      resample.setInputFormat(m_Data);
      sample = Filter.useFilter(m_Data, resample);
    }
   
    finished                  = false;
    iteration                 = 0;
View Full Code Here

Examples of weka.filters.unsupervised.instance.Resample

    boolean    finished;
    PointDouble    result;
    PointDouble    resultOld;
    int      iteration;
    Instances    sample;
    Resample    resample;

    log("Step 1:\n");

    // generate sample?
    if (getSampleSizePercent() == 100) {
      sample = m_Data;
    }
    else {
      log("Generating sample (" + getSampleSizePercent() + "%)");
      resample = new Resample();
      resample.setRandomSeed(getSeed());
      resample.setSampleSizePercent(getSampleSizePercent());
      resample.setInputFormat(m_Data);
      sample = Filter.useFilter(m_Data, resample);
    }
   
    finished                  = false;
    iteration                 = 0;
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.