Class OMEPixelParser.Builder

java.lang.Object
qupath.lib.images.servers.bioformats.OMEPixelParser.Builder
Enclosing class:
OMEPixelParser

public static class OMEPixelParser.Builder extends Object
Builder for instances of OMEPixelParser.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • isInterleaved

      public OMEPixelParser.Builder isInterleaved(boolean isInterleaved)
      Parameters:
      isInterleaved - whether pixel values are interleaved
      Returns:
      the current builder
    • pixelType

      public OMEPixelParser.Builder pixelType(PixelType pixelType)
      Parameters:
      pixelType - the bit-depth of the image pixels
      Returns:
      the current builder
    • byteOrder

      public OMEPixelParser.Builder byteOrder(ByteOrder byteOrder)
      Parameters:
      byteOrder - the byte order of each pixel
      Returns:
      the current builder
    • effectiveNChannels

      public OMEPixelParser.Builder effectiveNChannels(int effectiveNChannels)
      Parameters:
      effectiveNChannels - the effective size of the C dimension of the image. This is not always the number of channels, for example RGB values can be stored in one effective channel
      Returns:
      the current builder
    • normalizeFloats

      public OMEPixelParser.Builder normalizeFloats(boolean normalizeFloats)
      Parameters:
      normalizeFloats - whether float data should be normalized
      Returns:
      the current builder
    • samplesPerPixel

      public OMEPixelParser.Builder samplesPerPixel(int[] samplesPerPixel)
      Parameters:
      samplesPerPixel - an array containing the number of samples per pixel for each channel. For example, samplesPerPixel[i] should contain the number of samples per pixel for channel i
      Returns:
      the current builder
    • build

      public OMEPixelParser build()
      Creates a new OMEPixelParser instance.
      Returns:
      the current builder