= 1024" x-on:close-sidebar="sidebar=window.innerWidth >= 1024 && true">
ON THIS PAGE
package torch
-
torch.core
-
-
torch.toplevel
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Image writing
buffer
simply is an alias to a bigarray with c_layout. Two kind of pixel buffers are manipulated:
- int8 for images with 8-bit channels
- float32 for images with floating point channels
Content of an image with c
channels of width w
and height h
is represented as a contiguous sequence of items such that:
- channels are interleaved
- each pixel is made of
c
items - each line is made of
w
pixels - image is made of
h
lines
type 'kind buffer = ('a, 'b, Bigarray.c_layout) Bigarray.Array1.t constraint 'kind = ('a, 'b) Bigarray.kind
type float32 = (float, Bigarray.float32_elt) Bigarray.kind
type int8 = (int, Bigarray.int8_unsigned_elt) Bigarray.kind
ON THIS PAGE