Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Giffer ¶
type Giffer struct {
// contains filtered or unexported fields
}
Giffer contains a gif and the delay. It is used to append image.Images to a gif. So that it will eventually be able encode it to a writer
func NewGiffer ¶
NewGiffer is an extention to the gif package from google. loopcount = -1 = one run, 0 = infinity, n = n loops delay is in 1/100 seconds
func (*Giffer) MakeGrayGif ¶
MakeGrayGif will take an array of images and make a gif out if it
type ImageV2 ¶
type ImageV2 struct {
// contains filtered or unexported fields
}
ImageV2 is a wrapper for an img.Image. It is made so that it can be used in the Encoder interface.
func UpgradeImagetoV2 ¶
UpgradeImagetoV2 upgrades an image.Image to an ImageV2 so it can be use the encoder interface
func (*ImageV2) ColorModel ¶
ColorModel returns the colormodel for image
type Imager ¶
type Imager struct {
// contains filtered or unexported fields
}
Imager takes tensors and to the best its ability turn it into an image.Image
func MakeImager ¶
MakeImager makes an imager
func (*Imager) ByBatches ¶
func (im *Imager) ByBatches(handle *cudnn.Handler, x *layers.Tensor, h, w uint) ([]image.Image, error)
ByBatches will return the images by batches if h xor w is zero then the ration will be kept. if both are zero then the ratio is not
func (*Imager) TileBatches ¶
func (im *Imager) TileBatches(handle *cudnn.Handler, x *layers.Tensor, h, w, hstride, wstride int32) (image.Image, error)
TileBatches will take the batches and lay place them withing the HWC space like tiles. Channel dim is limited to 1-4. If c=1: [r,r,r,255]; If c=2: [r,g,avg(r,g),255]; c=3: [r,g,b,255]; c=4: [r,g,b,a];