주요 콘텐츠

writeRegion

R2026b

Class: ImageAdapter

(Not recommended) Write block of data to region of image

The writeRegion method of the ImageAdapter class is not recommended. Instead of ImageAdapter, use a blockedImage object. For more information, see Version History.

Syntax

writeRegion(adapter,region_start,region_data)

Description

writeRegion(adapter,region_start,region_data) writes a contiguous block of data region_data to the region of the image 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 write, specified as a 2-element vector of positive integers of the form [row column].

Image data, specified as a numeric array.

Tips

  • When you construct a class that inherits from the ImageAdapter class, you can optionally implement this method to enable incremental, region-based writing of images. Image adapter classes that do not implement the writeRegion method are read-only.

Version History

Introduced in R2010a

collapse all

See Also