Skip to contents

Convert a magick image to a grayscale integer matrix

Usage

to_gray_matrix(img)

Arguments

img

A magick image.

Value

An integer matrix indexed [x, y] (width by height), values 0-255.