javax.media.jai.Interpolation.getSubsampleBitsV()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(5.4k)|赞(0)|评价(0)|浏览(95)

本文整理了Java中javax.media.jai.Interpolation.getSubsampleBitsV()方法的一些代码示例,展示了Interpolation.getSubsampleBitsV()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Interpolation.getSubsampleBitsV()方法的具体详情如下:
包路径:javax.media.jai.Interpolation
类名称:Interpolation
方法名:getSubsampleBitsV

Interpolation.getSubsampleBitsV介绍

暂无

代码示例

代码示例来源:origin: geotools/geotools

final int yfrac = (int) ((y - y0) * (1 << interpolation.getSubsampleBitsV()));
dest[band] = interpolation.interpolate(samples, xfrac, yfrac);

代码示例来源:origin: geotools/geotools

@Test
public void testInterpolationBilinear() {
  // make sure the class is registered and assigned
  Interpolation result = Converters.convert("InterpolationBilinear(2)", INTERPOLATION_CLASS);
  assertNotNull(result);
  assertSame(result.getClass(), InterpolationBilinear.class);
  assertSame(result.getSubsampleBitsH(), 2);
  assertSame(result.getSubsampleBitsV(), 2);
  result = Converters.convert("InterpolationBilinear(4)", INTERPOLATION_CLASS);
  assertNotNull(result);
  assertSame(result.getClass(), InterpolationBilinear.class);
  assertSame(result.getSubsampleBitsH(), 4);
  assertSame(result.getSubsampleBitsV(), 4);
  result = Converters.convert("InterpolationBilinear", INTERPOLATION_CLASS);
  assertNotNull(result);
  assertSame(result.getClass(), InterpolationBilinear.class);
  assertSame(result.getSubsampleBitsH(), 8);
  assertSame(result.getSubsampleBitsV(), 8);
  // test case sensiteveness
  assertNull(Converters.convert("interpolationBilinear", INTERPOLATION_CLASS));
  assertNull(Converters.convert("Interpolationbilinear", INTERPOLATION_CLASS));
  assertNull(Converters.convert("interpolationbilinear", INTERPOLATION_CLASS));
}

代码示例来源:origin: geotools/geotools

@Test
public void testInterpolationBicubic() {
  // make sure the class is registered and assigned
  Interpolation result = Converters.convert("InterpolationBicubic(2)", INTERPOLATION_CLASS);
  assertNotNull(result);
  assertSame(result.getClass(), InterpolationBicubic.class);
  assertSame(result.getSubsampleBitsH(), 2);
  assertSame(result.getSubsampleBitsV(), 2);
  result = Converters.convert("InterpolationBicubic(4)", INTERPOLATION_CLASS);
  assertNotNull(result);
  assertSame(result.getClass(), InterpolationBicubic.class);
  assertSame(result.getSubsampleBitsH(), 4);
  assertSame(result.getSubsampleBitsV(), 4);
  result = Converters.convert("InterpolationBicubic", INTERPOLATION_CLASS);
  assertNull(result);
  // test case sensiteveness
  assertNull(Converters.convert("interpolationBicubic(2)", INTERPOLATION_CLASS));
  assertNull(Converters.convert("Interpolationbicubic(2)", INTERPOLATION_CLASS));
  assertNull(Converters.convert("interpolationbicubic(2)", INTERPOLATION_CLASS));
}

代码示例来源:origin: geotools/geotools

@Test
  public void testInterpolationBicubic2() {

    // make sure the class is registered and assigned
    Interpolation result = Converters.convert("InterpolationBicubic2(2)", INTERPOLATION_CLASS);
    assertNotNull(result);
    assertSame(result.getClass(), InterpolationBicubic2.class);
    assertSame(result.getSubsampleBitsH(), 2);
    assertSame(result.getSubsampleBitsV(), 2);

    result = Converters.convert("InterpolationBicubic2(4)", INTERPOLATION_CLASS);
    assertNotNull(result);
    assertSame(result.getClass(), InterpolationBicubic2.class);
    assertSame(result.getSubsampleBitsH(), 2);
    assertSame(result.getSubsampleBitsV(), 2);

    // missing subsamplebits
    result = Converters.convert("InterpolationBicubic2", INTERPOLATION_CLASS);
    assertNull(result);

    // test case sensiteveness
    assertNull(Converters.convert("interpolationBicubic2(2)", INTERPOLATION_CLASS));
    assertNull(Converters.convert("Interpolationbicubic2(2)", INTERPOLATION_CLASS));
    assertNull(Converters.convert("interpolationbicubic2(2)", INTERPOLATION_CLASS));
  }
}

代码示例来源:origin: geotools/geotools

int precV = 1 << interp.getSubsampleBitsV();

代码示例来源:origin: geotools/geotools

int precV = 1 << interp.getSubsampleBitsV();

代码示例来源:origin: geotools/geotools

int precV = 1 << interp.getSubsampleBitsV();

代码示例来源:origin: geotools/geotools

int precV = 1 << interp.getSubsampleBitsV();

代码示例来源:origin: org.geotools/gt-coverage

assert j == samples.length;
final int xfrac = (int) ((x-x0) * (1 << interpolation.getSubsampleBitsH()));
final int yfrac = (int) ((y-y0) * (1 << interpolation.getSubsampleBitsV()));
dest[band] = interpolation.interpolate(samples, xfrac, yfrac);

代码示例来源:origin: org.geotools/gt2-coverage

assert j == samples.length;
final int xfrac = (int) ((x-x0) * (1 << interpolation.getSubsampleBitsH()));
final int yfrac = (int) ((y-y0) * (1 << interpolation.getSubsampleBitsV()));
dest[band] = interpolation.interpolate(samples, xfrac, yfrac);

代码示例来源:origin: org.geoserver.extension/gs-wps-core

int precV = 1 << interp.getSubsampleBitsV();

代码示例来源:origin: org.geoserver.extension/gs-wps-core

int precV = 1 << interp.getSubsampleBitsV();

代码示例来源:origin: org.geoserver.extension/gs-wps-core

int precV = 1 << interp.getSubsampleBitsV();

代码示例来源:origin: org.geoserver.extension/wps-core

int precV = 1 << interp.getSubsampleBitsV();

代码示例来源:origin: org.geotools/gt-process-raster

int precV = 1 << interp.getSubsampleBitsV();

代码示例来源:origin: org.geoserver.extension/wps-core

int precV = 1 << interp.getSubsampleBitsV();

代码示例来源:origin: org.geotools/gt-process-raster

int precV = 1 << interp.getSubsampleBitsV();

代码示例来源:origin: org.geoserver.extension/wps-core

int precV = 1 << interp.getSubsampleBitsV();

代码示例来源:origin: org.geotools/gt-process-raster

int precV = 1 << interp.getSubsampleBitsV();

代码示例来源:origin: org.geoserver.extension/wps-core

int precV = 1 << interp.getSubsampleBitsV();

相关文章