Documentation |
Many toolbox functions can operate on multi-dimensional arrays and, consequently, can operate on image sequences. (For more information, see What is an Image Sequence?.) For example, if you pass a multi-dimensional array to the imtransform function, it applies the same 2-D transformation to all 2-D planes along the higher dimension.
Some toolbox functions that accept multi-dimensional arrays, however, do not by default interpret an m-by-n-by-p or an m-by-n-by-3-by-p array as an image sequence. To use these functions with image sequences, you must use particular syntax and be aware of other limitations. The following table lists these toolbox functions and provides guidelines about how to use them to process image sequences. For information about displaying image sequences, see View Image Sequences in Video Viewer App.
Function | Image Sequence Dimensions | Guideline When Used with an Image Sequence |
---|---|---|
m-by-n-by-p only | Must use the bwlabeln(BW,conn) syntax with a 2-D connectivity. | |
m-by-n-by-p or | PSF argument can be either 1-D or 2-D. | |
m-by-n-by-p or | PSF argument can be either 1-D or 2-D. | |
m-by-n-by-p or | PSF argument can be either 1-D or 2-D. | |
m-by-n-by-p only | nhood argument must be 2-D. | |
m-by-n-by-p or | Image sequences must be the same size. | |
m-by-n-by-p or | Image sequences must be the same size. Cannot add scalar to image sequence. | |
m-by-n-by-p only | SE argument must be 2-D. | |
m-by-n-by-p only | SE argument must be 2-D. | |
m-by-n-by-p only | SE argument must be 2-D. | |
m-by-n-by-p or | Image sequences must be the same size. | |
m-by-n-by-p only | SE argument must be 2-D. | |
m-by-n-by-p only | Must use the imextendedmax(I,h,conn) syntax with a 2-D connectivity. | |
m-by-n-by-p only | Must use the imextendedmin(I,h,conn) syntax with a 2-D connectivity. | |
m-by-n-by-p or | With grayscale images, h can be 2-D. With truecolor images (RGB), h can be 2-D or 3-D. | |
m-by-n-by-p only | Must use the imhmax(I,h,conn) syntax with a 2-D connectivity. | |
m-by-n-by-p only | Must use the imhmin(I,h,conn) syntax with a 2-D connectivity. | |
m-by-n-by-p or | Image sequences must be the same size. | |
m-by-n-by-p or | Image sequences must be the same size. | |
m-by-n-by-p only | SE argument must be 2-D. | |
m-by-n-by-p only | Must use the imextendedmax(I,conn) syntax with a 2-D connectivity. | |
m-by-n-by-p only | Must use the imextendedmin(I,conn) syntax with a 2-D connectivity. | |
m-by-n-by-p or | Image sequences must be the same size. | |
m-by-n-by-p only | SE argument must be 2-D. | |
imwarp | m-by-n-by-p or | TFORM argument must be 2-D. |
m-by-n-by-p or | PADSIZE argument must be a two-element vector. | |
m-by-n-by-p only | NHOOD argument must be 2-D. | |
m-by-n-by-p only | NHOOD argument must be 2-D. | |
m-by-n-by-p or |
| |
m-by-n-by-p only | Must use watershed(I,conn) syntax with a 2-D connectivity. |