Main Content

readRegion

Class: ImageAdapter

Read region of image

Syntax

data = readRegion(adapter,region_start, region_size)

Description

data = readRegion(adapter,region_start, region_size) reads an image region of size region_size with top-left pixel at coordinate region_start.

Input Arguments

expand all

Image adapter, specified as an instance of an ImageAdapter.

Top-left coordinates of the region to read, specified as a 2-element vector of positive integers of the form [row column].

Size of the region to read, specified as a 2-element vector of positive integers of the form [numrows numcolumns].

Output Arguments

expand all

Image data, returned as a numeric array of size region_size.

Attributes

Abstracttrue

To learn about attributes of methods, see Method Attributes.

Tips

  • When you construct a class that inherits from the ImageAdapter class, you must implement this method.

Version History

Introduced in R2010a