Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GrayToBCHW ¶
GrayToBCHW convert an image to a BCHW tensor this function returns an error if:
- dst is not a pointer
- dst's shape is not 4
- dst' second dimension is not 1
- dst's third dimension != i.Bounds().Dy()
- dst's fourth dimension != i.Bounds().Dx()
- dst's type is not float32 or float64 (temporary)
func ImageToBCHW ¶
ImageToBCHW convert an image to a BCHW tensor this function returns an error if:
- dst is not a pointer
- dst's shape is not 4
- dst' second dimension is not 1
- dst's third dimension != i.Bounds().Dy()
- dst's fourth dimension != i.Bounds().Dx()
- dst's type is not float32 or float64 (temporary)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.