Class OMEPixelParser.Builder
java.lang.Object
qupath.lib.images.servers.bioformats.OMEPixelParser.Builder
- Enclosing class:
OMEPixelParser
Builder for instances of
OMEPixelParser
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates a newOMEPixelParser
instance.effectiveNChannels
(int effectiveNChannels) isInterleaved
(boolean isInterleaved) normalizeFloats
(boolean normalizeFloats) samplesPerPixel
(int[] samplesPerPixel)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
isInterleaved
- Parameters:
isInterleaved
- whether pixel values are interleaved- Returns:
- the current builder
-
pixelType
- Parameters:
pixelType
- the bit-depth of the image pixels- Returns:
- the current builder
-
byteOrder
- Parameters:
byteOrder
- the byte order of each pixel- Returns:
- the current builder
-
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
- Parameters:
normalizeFloats
- whether float data should be normalized- Returns:
- the current builder
-
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
Creates a newOMEPixelParser
instance.- Returns:
- the current builder
-