Tabnine Logo
InterpolationTable.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
javax.media.jai.InterpolationTable
constructor

Best Java code snippets using javax.media.jai.InterpolationTable.<init> (Showing top 2 results out of 315)

origin: senbox-org/s1tbx

private void constructInterpolationTable(String interpolationMethod) {
  // construct interpolation LUT
  SimpleLUT lut = new SimpleLUT(interpolationMethod);
  lut.constructLUT();
  int kernelLength = lut.getKernelLength();
  // get LUT and cast it to float for JAI
  double[] lutArrayDoubles = lut.getKernelAsArray();
  float lutArrayFloats[] = new float[lutArrayDoubles.length];
  int i = 0;
  for (double lutElement : lutArrayDoubles) {
    lutArrayFloats[i++] = (float) lutElement;
  }
  // construct interpolation table for JAI resampling
  final int subsampleBits = 7;
  final int precisionBits = 32;
  int padding = kernelLength / 2 - 1;
  interpTable = new InterpolationTable(padding, kernelLength, subsampleBits, precisionBits, lutArrayFloats);
}
origin: senbox-org/s1tbx

private void constructInterpolationTable(String interpolationMethod) {
  // construct interpolation LUT
  SimpleLUT lut = new SimpleLUT(interpolationMethod);
  lut.constructLUT();
  int kernelLength = lut.getKernelLength();
  // get LUT and cast it to float for JAI
  double[] lutArrayDoubles = lut.getKernelAsArray();
  float lutArrayFloats[] = new float[lutArrayDoubles.length];
  int i = 0;
  for (double lutElement : lutArrayDoubles) {
    lutArrayFloats[i++] = (float) lutElement;
  }
  // construct interpolation table for JAI resampling
  final int subsampleBits = 7;
  final int precisionBits = 32;
  int padding = kernelLength / 2 - 1;
  interpTable = new InterpolationTable(padding, kernelLength, subsampleBits, precisionBits, lutArrayFloats);
}
javax.media.jaiInterpolationTable<init>

Popular methods of InterpolationTable

  • getPrecisionBits
  • getHorizontalTableData
  • getHorizontalTableDataDouble
  • getHorizontalTableDataFloat
  • getVerticalTableData
  • getVerticalTableDataDouble
  • getVerticalTableDataFloat

Popular in Java

  • Creating JSON documents from java classes using gson
  • onCreateOptionsMenu (Activity)
  • findViewById (Activity)
  • putExtra (Intent)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • JFileChooser (javax.swing)
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now