ImageSplit: Splict image into small patches

Description Usage Arguments Value

View source: R/Rfunctions.R

Description

Splict an image matrix A of size M by N into overlapped small patches of size m by n. Total of (M-m+1)(N-n+1) patches.

Usage

1
ImageSplit(A, m, n, stepsize = 1)

Arguments

A

An M by N matrix.

m, n

Size of the small patches (m by n).

stepsize

(optional) The stepsize when splicting the image. Default is 1

Value

A (mn) by (M-m+1)(N-n+1) matrix, each column of which is a vectorized small patch.


GSCAD documentation built on Oct. 6, 2017, 5:04 p.m.

Related to ImageSplit in GSCAD...