Interface DownsampleCalculator


public interface DownsampleCalculator
Interface for classes that can calculate a downsample value to use when requesting pixels from an image.

This is used to support different ways to defining how a resolution could be calculated, e.g. using a fixed value, based upon a target pixel size, or based upon a target image size.

  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Calculate the downsample value to use when requesting a region from the server.
  • Method Details

    • getDownsample

      double getDownsample(ImageServer<?> server, ImageRegion region)
      Calculate the downsample value to use when requesting a region from the server.
      Parameters:
      server - the input server; this must not be null
      region - the region to request; this may be null, indicating that the entire image is requested
      Returns:
      the downsample value to use