imwrite

Convenience wrapper for imwrite with Slice type.

  1. bool imwrite(in string path, size_t width, size_t height, ImageFormat format, BitDepth depth, ubyte[] data)
  2. bool imwrite(in Image image, in string path)
  3. bool imwrite(Slice!(kind, packs, T*) slice, ImageFormat format, in string path)
    bool
    imwrite
    (
    SliceKind kind
    size_t[] packs
    T
    )
    (
    Slice!(kind, packs, T*) slice
    ,,
    in string path
    )

Parameters

slice
Type: Slice!(kind, packs, T*)

Slice of the image data;

format

Explicit definition of the image format.

path
Type: string

Path where the image will be written.

Return Value

Type: bool

Status of the writing as bool.

Meta