This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.


Class: ImageAdapter

Read region of image


data = adapter.readRegion(region_start, region_size)


data = adapter.readRegion(region_start, region_size) reads a region of the image. region_start and region_size define a rectangular region in the image. region_start, a two-element vector, specifies the [row col] of the first pixel (minimum-row, minimum-column) of the region. region_size, a two-element vector, specifies the size of the requested region in [rows cols]. When you construct a class that inherits from the ImageAdapter class, implement this method.

Was this topic helpful?