This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.

Neighborhood and Block Processing

Define neighborhoods and blocks for filtering and I/O operations


blockprocDistinct block processing for image
bestblkDetermine optimal block size for block processing
nlfilterGeneral sliding-neighborhood operations
col2imRearrange matrix columns into blocks
colfiltColumnwise neighborhood operations
im2colRearrange image blocks into columns


ImageAdapterInterface for image I/O


Neighborhood or Block Processing: An Overview

Divide an image into sections, called blocks or neighborhoods, to reduce the memory needed to process the image.

Sliding Neighborhood Operations

A sliding neighborhood operation is performed one pixel at a time using information about the pixel’s neighborhood.

Distinct Block Processing

Distinct block processing divides an image into nonoverlapping rectangular sections that can be processed individually.

Block Size and Performance

Using larger block sizes reduces overall computation time but requires more memory to process each block.

Use Columnwise Processing to Speed Up Sliding Neighborhood or Distinct Block Operations

Reshape sliding neighborhoods and distinct blocks to reduce the execution time of processing an image.

Perform Block Processing on Image Files in Unsupported Formats

To work with image data in file formats not supported by block processing functions, construct a class that manages files based on region.

Was this topic helpful?