Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Data Manipulation > Image Processing & Analysis > Image Filtering & Neighborhood Processing > ImagePartition >

ImagePartition

ImagePartition
partitions an image into an array of ss-pixel subimages.
ImagePartition
partitions an image into an array of subimages of pixel width w and pixel height h.
ImagePartition
uses pixel offsets dw and dh.
  • ImagePartition generates as many ss subimages as possible, dropping incomplete subimages at the edges.
  • In ImagePartition, the following forms can be used for wspec and hspec:
sallow only size s
{s}allow any size up to s
Scaled[a]allow a multiple a of the size
{Scaled[a]}allow any size up to the multiple a of the size
{smin,smax}allow any size through
  • The default setting is Padding->None, which drops subimages at the edges whose sizes are not consistent with .
  • All other standard settings for Padding are also supported.
Partition an image into blocks of size 16 by 16:
Partition into equal-size blocks, dropping some pixels at the borders:
Partition into blocks not larger than the specified size, including all pixels from the image:
Partition an image into blocks of size 16 by 16:
In[1]:=
Click for copyable input
Out[1]=
 
Partition into equal-size blocks, dropping some pixels at the borders:
In[1]:=
Click for copyable input
Out[1]=
 
Partition into blocks not larger than the specified size, including all pixels from the image:
In[1]:=
Click for copyable input
Out[1]=
Specify the partition size using scaled dimensions:
Partition into blocks not larger than the specified scaled dimensions:
Specify different scaled dimensions in horizontal and vertical directions:
Create a mosaic effect by averaging colors in small partitions:
New in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF