class ImageData

Last modified: February 14, 2023

Contents

ImageData

In module gamera.core

There are many ways to initialize ImageData:

  • ImageData(Dim dim, Point offset, Int pixel_type, Int storage_format)
  • ImageData(Rect rect, Int pixel_type, Int storage_format)
pixel_type
An integer value specifying the type of the pixels in the image. See pixel types for more information.
storage_format
An integer value specifying the method used to store the image data. See storage formats for more information.

nrows

(int property get/set)

The number of rows

ncols

(int property get/set)

The number of columns

page_offset_x

(int property get/set)

The x offset in the page for the data

page_offset_y

(int property get/set)

The y offset in the page for the data

stride

(int property get/set)

The length of the data stride

size

(Size property get/set)

The size of the image data

bytes

(int property get/set)

The size of the data in bytes

pixel_type

(int property get/set)

The type of the pixels. See pixel types for more info.

storage_format

(int property get/set)

The format of the storage. See storage formats for more info.