ImageReCon: Combine patches of image into full image

Description Usage Arguments Value

View source: R/Rfunctions.R

Description

Suppose an image matrix A of size M by N is splited into (M-m+1)(N-n+1) overlapped small patches of size m by n. Given a matrix B of size (mn) by (M-m+1)(N-n+1) , where each column of B is a vectorized small patch, this function try to reconstruct the full image A.

Usage

1
ImageReCon(B, mm, nn, m, n, stepsize = 1)

Arguments

B

An (mn) by (M-m+1)(N-n+1) matrix.

mm, nn

Full image of size (mm by nn).

m, n

Size of the small patches (m by n).

stepsize

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

Value

A mm by nn matrix


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

Related to ImageReCon in GSCAD...