openslide

package module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2023 License: MIT Imports: 7 Imported by: 0

README

openslide

Just a Go wrapper around parts of the brilliant openslide libraries. See the og libs here: https://github.com/openslide

Building

MacOS

  • brew install openslide
  • Test like:
# fix your path based on the version installed by brew
CGO_CFLAGS="-g -Wall -I/usr/local/Cellar/openslide/3.4.1_7/include/openslide" CGO_LDFLAGS="-L. -lopenslide" go test .
  • Build it like:
# adjust to your version and path etc
CGO_CFLAGS="-g -Wall -I/usr/local/Cellar/openslide/3.4.1_7/include/openslide" CGO_LDFLAGS="-L. -lopenslide" go build openslide.go

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NOT_FOUND_ERROR = fmt.Errorf("OpenSlideErr: Not Found")
View Source
var NOT_FOUND_OR_SUPPORTED_ERROR = fmt.Errorf("OpenSlideErr: Format or File Not Supported or Found!")
View Source
var NOT_SUPPORTED_ERROR = fmt.Errorf("OpenSlideErr: Format Not Supported")

Functions

func NewRGBAImageFromRegionInLevel

func NewRGBAImageFromRegionInLevel(osr *C.openslide_t, level int, x, y, width, height int64) (*image.RGBA, error)

func WSI added in v0.0.3

func WSI(pathToFile string) (*C.openslide_t, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL