Package qupath.lib.images.servers
Interface FileFormatInfo.ImageCheckType
- Enclosing class:
- FileFormatInfo
public static interface FileFormatInfo.ImageCheckType
Interface defining some basic image metadata that may be extracted from an image file 
 to help ascertain whether an 
ImageServerBuilder can handle it.- 
Method SummaryModifier and TypeMethodDescriptionGet the image description, as stored in a TIFF, or null if no description is available.getFile()Get a File object representing the local image file - or null if no file could be found.longGet the height of the largest image, if known.longGet the width of the largest image, if known.booleanReturns true if URI is for a local file known/expected to be a BigTIFF image.booleanisNotRGB()Returns true if we can say with reasonable confidence that the image is not RGB.booleanisTiff()Returns true if URI is for a local file known/expected to be a TIFF image.booleanisURL()Return true if URI has a scheme beginning with http.intnImages()Return an estimate of the number of images if known, or -1 if unknown.intReturn the number of images with the largest image size, if known, or -1 if unknown.
- 
Method Details- 
isURLboolean isURL()Return true if URI has a scheme beginning with http.- Returns:
 
- 
isTiffboolean isTiff()Returns true if URI is for a local file known/expected to be a TIFF image.- Returns:
 
- 
isBigTiffboolean isBigTiff()Returns true if URI is for a local file known/expected to be a BigTIFF image.- Returns:
 
- 
getDescriptionString getDescription()Get the image description, as stored in a TIFF, or null if no description is available.- Returns:
 
- 
getFileFile getFile()Get a File object representing the local image file - or null if no file could be found.- Returns:
 
- 
nImagesint nImages()Return an estimate of the number of images if known, or -1 if unknown.Note that the maximum value returned may be less than the total number of images, if scanning the full file risks being prohibitively expensive (this has been found to be the case with some non-standard TIFF images). - Returns:
 
- 
nImagesLargestint nImagesLargest()Return the number of images with the largest image size, if known, or -1 if unknown.This can be used to help distinguish images that contain multiple images where each image is really another z-slice, channel or time point - rather than a macro or label, for example. - Returns:
 
- 
isNotRGBboolean isNotRGB()Returns true if we can say with reasonable confidence that the image is not RGB.This information can be used to prevent readers that only support RGB images from trying to read this one. However, note that it is permissible to return false in cases where the RGB status of the image is unclear. - Returns:
 
- 
getLargestImageWidthlong getLargestImageWidth()Get the width of the largest image, if known.- Returns:
- the width of the largest image, or -1 if this is not known
 
- 
getLargestImageHeightlong getLargestImageHeight()Get the height of the largest image, if known.- Returns:
- the height of the largest image, or -1 if this is not known
 
 
-