Documentation ¶
Index ¶
- Constants
- func DetectVendor(filename string) (string, error)
- func Version() string
- type Slide
- func (slide Slide) AssociatedImageNames() []string
- func (slide Slide) BestLevelForDownsample(downsample float64) int32
- func (slide Slide) Close()
- func (slide Slide) GetAssociatedImage(name string) ([]byte, error)
- func (slide Slide) GetAssociatedImageSize(name string) (int64, int64, error)
- func (slide Slide) LargestLevelDimensions() (int64, int64)
- func (slide Slide) LevelDimensions(level int32) (int64, int64)
- func (slide Slide) LevelDownsample(level int32) float64
- func (slide Slide) PropertyNames() []string
- func (slide Slide) PropertyValue(propName string) string
- func (slide Slide) ReadRegion(x, y int64, level int32, w, h int64) ([]byte, 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 {
Width, Height int64
LevelCount int32
// contains filtered or unexported fields
}
Slide Slides
func Open ¶
Open Don't forget to defer Close. This is an expensive operation, you will want to cache the result.
func (Slide) AssociatedImageNames ¶
Associated images - label, macro, thumbnail
func (Slide) BestLevelForDownsample ¶
BestLevelForDownsample Get the best level to use for a particular downsampling factor
func (Slide) GetAssociatedImage ¶
func (Slide) GetAssociatedImageSize ¶
func (Slide) LargestLevelDimensions ¶
LargestLevelDimensions Get the dimensions of level 0, the largest level (aka get_level0_dimensions)
func (Slide) LevelDimensions ¶
LevelDimensions Get the dimensions of a level.
func (Slide) LevelDownsample ¶
LevelDownsample Get the downsampling factor of the given level
func (Slide) PropertyNames ¶
PropertyNames Get all property names available for this slide
func (Slide) PropertyValue ¶
PropertyValue Get the value for a specific property