Documentation ¶
Index ¶
- Constants
- func DetectVendor(filename string) (string, error)
- func Version() string
- type Slide
- func (slide Slide) AssociatedImageDimensions() map[string][2]int
- func (slide Slide) AssociatedImageNames() []string
- func (slide Slide) BestLevelForDownsample(downsample float64) int
- func (slide Slide) Close()
- func (slide Slide) GetSpacing() ([2]float64, error)
- func (slide Slide) GetThumbnail(size int) (image.Image, error)
- func (slide Slide) LargestLevelDimensions() [2]int
- func (slide Slide) LevelCount() int
- func (slide Slide) LevelDimensions(level int) [2]int
- func (slide Slide) LevelDownsample(level int) float64
- func (slide Slide) LevelDownsamples() []float64
- func (slide Slide) Properties() map[string]string
- func (slide Slide) PropertyNames() []string
- func (slide Slide) PropertyValue(propName string) string
- func (slide Slide) ReadAssociatedImage(associatedName string) (image.Image, error)
- func (slide Slide) ReadRegion(x, y int, level int, w, h int) (image.Image, error)
Constants ¶
const PropBackgroundColor = "openslide.background-color"
PropBackgroundColor The name of the property containing a slide's background color, if any. It is represented as an RGB hex triplet.
const PropBoundsHeight = "openslide.bounds-height"
PropBoundsHeight The name of the property containing the height of the rectangle bounding the non-empty region of the slide, if available.
const PropBoundsWidth = "openslide.bounds-width"
PropBoundsWidth The name of the property containing the width of the rectangle bounding the non-empty region of the slide, if available.
const PropBoundsX = "openslide.bounds-x"
PropBoundsX The name of the property containing the X coordinate of the rectangle bounding the non-empty region of the slide, if available.
const PropBoundsY = "openslide.bounds-y"
PropBoundsY The name of the property containing the Y coordinate of the rectangle bounding the non-empty region of the slide, if available.
const PropMPPX = "openslide.mpp-x"
PropMPPX The name of the property containing the number of microns per pixel in the X dimension of level 0, if known.
const PropMPPY = "openslide.mpp-y"
PropMPPY The name of the property containing the number of microns per pixel in the Y dimension of level 0, if known.
const PropObjectivePower = "openslide.objective-power"
PropObjectivePower The name of the property containing a slide's objective power, if known.
Variables ¶
This section is empty.
Functions ¶
func DetectVendor ¶
DetectVendor Quickly determine whether a whole slide image is recognized.
Types ¶
type Slide ¶
type Slide struct {
// contains filtered or unexported fields
}
Slide struct holding the OpenSlide pointer.
func Open ¶
Open Get the Slide object referring to an OpenSlide image. Do not forget to defer opening the slide. This is an expensive operation, you will want to cache the result.
func (Slide) AssociatedImageDimensions ¶ added in v0.0.2
AssociatedImageDimensions Get the dimensions of the associated images
func (Slide) AssociatedImageNames ¶ added in v0.0.2
AssociatedImageNames Get the names of the associated images
func (Slide) BestLevelForDownsample ¶
BestLevelForDownsample Get the best level to use for a particular downsampling factor
func (Slide) GetSpacing ¶
GetSpacing Get the spacing of the slide
func (Slide) GetThumbnail ¶
GetThumbnail Get thumbnail of the image
func (Slide) LargestLevelDimensions ¶
LargestLevelDimensions Get the dimensions of level 0, the largest level (aka get_level0_dimensions).
func (Slide) LevelCount ¶
LevelCount Get the number of levels in the whole slide image.
func (Slide) LevelDimensions ¶
LevelDimensions Get the dimensions of a level.
func (Slide) LevelDownsample ¶
LevelDownsample Get the downsampling factor of the given level
func (Slide) LevelDownsamples ¶
LevelDownsamples Get the downsampling factors for all levels
func (Slide) Properties ¶
Properties Get all properties as a map.
func (Slide) PropertyNames ¶
PropertyNames Get all property names available for this slide.
func (Slide) PropertyValue ¶
PropertyValue Get the value for a specific property.
func (Slide) ReadAssociatedImage ¶ added in v0.0.2
ReadAssociatedImage Read an associated image as an RGBA image.