Codota Logo
JiffleDescriptor
Code IndexAdd Codota to your IDE (free)

How to use
JiffleDescriptor
in
it.geosolutions.jaiext.jiffleop

Best Java code snippets using it.geosolutions.jaiext.jiffleop.JiffleDescriptor (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: geotools/geotools

JiffleDescriptor.create(
    sources,
    sourceNames,
origin: it.geosolutions.jaiext.jiffle/jt-jiffle-op

  /**
   * Registers the MaskedConvolve operation and its
   * associated image factories across all supported operation modes.
   *
   * @param registry The registry with which to register the operations
   * and their factories.
   */
  public void updateRegistry(OperationRegistry registry) {
    OperationDescriptor op = new JiffleDescriptor();
    registry.registerDescriptor(op);
    String descName = op.getName();
    
    RenderedImageFactory rif = new JiffleRIF();

    registry.registerFactory(RenderedRegistryMode.MODE_NAME,
                 descName,
                 productName,
                 rif);

  }
}
origin: geosolutions-it/jai-ext

@Test
public void testCopyNonDefaults() {
  RenderedImage src = buildTestImage(10, 10);
  RenderedOp op = JiffleDescriptor.create(new RenderedImage[] {src}, new String[] {"a"}, "b",
      "b = a;", null, DataBuffer.TYPE_BYTE, null, null, null);
  assertCopy(src, op, DataBuffer.TYPE_BYTE);
}
origin: geosolutions-it/jai-ext

  /**
   * Registers the MaskedConvolve operation and its
   * associated image factories across all supported operation modes.
   *
   * @param registry The registry with which to register the operations
   * and their factories.
   */
  public void updateRegistry(OperationRegistry registry) {
    OperationDescriptor op = new JiffleDescriptor();
    registry.registerDescriptor(op);
    String descName = op.getName();
    
    RenderedImageFactory rif = new JiffleRIF();

    registry.registerFactory(RenderedRegistryMode.MODE_NAME,
                 descName,
                 productName,
                 rif);

  }
}
origin: geosolutions-it/jai-ext

@Test
public void testCopyDefaults() {
  RenderedImage src = buildTestImage(10, 10);
  RenderedOp op = JiffleDescriptor.create(new RenderedImage[] {src}, null, null,
      "dest = src;", null, null, null, null, null);
  assertCopy(src, op, DataBuffer.TYPE_DOUBLE);
}
origin: geosolutions-it/jai-ext

@Test
public void testCopyRemappedDefaults() {
  RenderedImage src = buildTestImage(10, 10);
  BandTransform transform = (x, y, b) -> 0;
  RenderedOp op = JiffleDescriptor.create(new RenderedImage[] {src}, null, null,
      "dest = src[10];", null, null, null, new BandTransform[] {transform}, null);
  assertCopy(src, op, DataBuffer.TYPE_DOUBLE);
}
origin: geosolutions-it/jai-ext

@Test
public void testSum() {
  RenderedImage src1 = buildTestImage(10, 10);
  RenderedImage src2 = buildTestImage(10, 10);
  RenderedOp op = JiffleDescriptor.create(new RenderedImage[] {src1, src2}, new String[] {"a", "b"}, "res",
      "res = a + b;", null, DataBuffer.TYPE_INT, null, null, null);
  // check same size and expected 
  assertEquals(src1.getMinX(), op.getMinX());
  assertEquals(src1.getWidth(), op.getWidth());
  assertEquals(src1.getMinY(), op.getMinY());
  assertEquals(src1.getHeight(), op.getHeight());
  assertEquals(DataBuffer.TYPE_INT, op.getSampleModel().getDataType());
  RandomIter srcIter = RandomIterFactory.create(src1, null);
  RandomIter opIter = RandomIterFactory.create(op, null);
  for(int y = src1.getMinY(); y < src1.getMinY() + src1.getHeight(); y++) {
    for(int x = src1.getMinX(); x < src1.getMinX() + src1.getWidth(); x++) {
      double expected = srcIter.getSampleDouble(x, y, 0) * 2;
      double actual = opIter.getSampleDouble(x, y, 0);
      assertEquals(expected, actual, 0d);
    }
  }
}
it.geosolutions.jaiext.jiffleopJiffleDescriptor

Javadoc

Jiffle operation.

Most used methods

  • create
    RenderedOp creation method that takes all the parameters, passes them to the ParameterBlockJAI and t
  • <init>

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • JButton (javax.swing)
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now