Documentation ¶
Index ¶
- func ContourImage(ctx context.Context, im image.Image, n int, scale float64) (image.Image, error)
- func ContourImageSVG(ctx context.Context, wr io.Writer, im image.Image, n int, scale float64) error
- func NewContourTransformation(ctx context.Context, uri string) (transform.Transformation, error)
- type ContourTransformation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContourImage ¶
ContourImageSVG generate contour data derived from 'im' and draws it to a new `image.Image` instances. The scale and number of contours is adjusted relative to the 'scale' and 'n' values respectively.
func ContourImageSVG ¶
ContourImageSVG generate contour data derived from 'im' and writes to 'wr' as SVG data. The scale and number of contours is adjusted relative to the 'scale' and 'n' values respectively.
func NewContourTransformation ¶
NewContourWriter returns a new `ContourTransformation` instance configure by 'uri' in the form of:
contour://?n={N}&scale={SCALE}
Types ¶
type ContourTransformation ¶
type ContourTransformation struct { transform.Transformation // contains filtered or unexported fields }
ContourTransformation is a struct that implements the `Transformation` interface for replacing the contents of an image with contours derived from its pixel values.
Directories ¶
Path | Synopsis |
---|---|
Package app for running a base image applications that can be imported alongside custom `transform.Transformation` and `gocloud.dev/blob` packages.
|
Package app for running a base image applications that can be imported alongside custom `transform.Transformation` and `gocloud.dev/blob` packages. |
cmd
|
|